Uh oh!
There was an error while loading. Please reload this page.
Provide suggestion on missing let in binding statement - #100111
Conversation
rust-highfive
commented
Aug 3, 2022
(rust-highfive has picked a reviewer for you, use r? to override) |
estebank
commented
Aug 3, 2022
compiler-errors
commented
Aug 3, 2022
Only side-effect is that now type ascription in LHS will fail during AST validation phase instead of later (I'm guessing AST lowering?). But that's fine, an error will be emitted regardless. I wonder if we should just gate all type ascription behind a feature error during ast validation, but that might have some strange consequences on diagnostics. @bors r+ |
bors
commented
Aug 3, 2022
…rrors Provide suggestion on missing `let` in binding statement Fixrust-lang#78907. Fallout from the type ascription syntax.
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#98877 (Set llvm configs when building lld) - rust-lang#100068 (Fix backwards-compatibility check for tests with `+whole-archive`) - rust-lang#100083 (rustdoc: use a more compact encoding for source-files.js) - rust-lang#100102 (Fix typo) - rust-lang#100104 (Remove more Clean trait implementations) - rust-lang#100105 (Add regression test for rust-lang#90871) - rust-lang#100107 (fix trailing whitespace in error message) - rust-lang#100111 (Provide suggestion on missing `let` in binding statement) - rust-lang#100119 (FilesTimes support does not build for ESP-IDF) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
estebank
commented
Aug 4, 2022
This is already the case, in
I've thought about doing so. The problem with doing that for features that affect the syntax is that then we'd never exercise those codepaths as much as we have these, which would make the stabilization process much more traumatic in the regressions caused. That being said, type ascription has no quick path to stabilization, so that's what we should have done back in 2015. Now, I feel we've sunk enough resources in handling most of these that I'm ok with it remaining as is (and even try to stabilize it!), but damn if I don't hate this syntax for its proximity to other valid syntax!. |
Fix#78907.
Fallout from the type ascription syntax.