Uh oh!
There was an error while loading. Please reload this page.
Bail out when encountering likely missing turbofish in parser - #64192
Conversation
When encountering a likely intended turbofish without `::`, bubble up the diagnostic instead of emitting it to allow the parser to recover more gracefully and avoid uneccessary type errors that are likely to be wrong.
estebank
commented
Sep 5, 2019
r? @Centril |
Centril
commented
Sep 5, 2019
@bors r+ |
bors
commented
Sep 5, 2019
📌 Commit afcf9b2 has been approved by |
This comment has been minimized.
This comment has been minimized.
estebank
commented
Sep 5, 2019
@Centril please take a look at the test change I made. I'm confident it is ok to not care about how we pprint incorrect expressions, but you might disagree :) |
Centril
commented
Sep 6, 2019
Hmm; why is this producing incorrect expressions to pretty print in the first place? |
estebank
commented
Sep 6, 2019
Its a test that generates chained expressions programmatically. I could make a couple of changes to avoid creating chained comparisons but didn't look at the code closely enough to figure it out. |
Centril
commented
Sep 6, 2019
@bors r=petrochenkov |
bors
commented
Sep 6, 2019
📌 Commit dc613c6 has been approved by |
…chenkov Bail out when encountering likely missing turbofish in parser When encountering a likely intended turbofish without `::`, bubble up the diagnostic instead of emitting it to allow the parser to recover more gracefully and avoid uneccessary type errors that are likely to be wrong. Fixrust-lang#61329.
Rollup of 10 pull requests Successful merges: - #63919 (Use hygiene for AST passes) - #63927 (Filter linkcheck spurious failure) - #64149 (rustc_codegen_llvm: give names to non-alloca variable values.) - #64192 (Bail out when encountering likely missing turbofish in parser) - #64231 (Move the HIR CFG to `rustc_ast_borrowck`) - #64233 (Correct pluralisation of various diagnostic messages) - #64236 (reduce visibility) - #64240 (Include compiler-rt in the source tarball) - #64241 ([doc] Added more prereqs and note about default directory) - #64243 (Move injection of attributes from command line to `libsyntax_ext`) Failed merges: r? @ghost
bors
commented
Sep 7, 2019
☔ The latest upstream changes (presumably #64246) made this pull request unmergeable. Please resolve the merge conflicts. |
When encountering a likely intended turbofish without
::, bubbleup the diagnostic instead of emitting it to allow the parser to recover
more gracefully and avoid uneccessary type errors that are likely to be
wrong.
Fix#61329.