rust/compiler/rustc_ast/src
Michael Goulet e0409200d9
Rollup merge of #97856 - compiler-errors:bad-let-suggestions, r=estebank
Don't suggest adding `let` in certain `if` conditions

Avoid being too eager to suggest `let` in an `if` condition with an `=`, namely when the LHS of the `=` isn't even valid as a pattern (to a first degree approximation).

This heustic I came up with kinda sucks. Let me know if it needs to be refined.
2022-06-08 13:32:20 -07:00
..
attr Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
expand Make allocator_kind a query. 2021-06-20 11:52:51 +02:00
util Add do yeet expressions to allow experimentation in nightly 2022-04-30 17:40:27 -07:00
ast_traits.rs rustc_parse: Move AST -> TokenStream conversion logic to rustc_ast 2022-05-22 12:01:07 +03:00
ast.rs Rollup merge of #97856 - compiler-errors:bad-let-suggestions, r=estebank 2022-06-08 13:32:20 -07:00
entry.rs Fix ICE when main is declared in an extern block 2021-06-09 23:14:02 -04:00
lib.rs Fully stabilize NLL 2022-06-03 17:16:41 -04:00
mut_visit.rs Merge crate and restricted visibilities 2022-05-21 17:02:55 -04:00
node_id.rs Use LocalExpnId where possible. 2021-07-17 19:41:02 +02:00
ptr.rs Use delayed error handling for Encodable and Encoder infallible. 2022-06-08 07:01:26 +10:00
token.rs Revert #96682. 2022-06-02 11:22:16 +10:00
tokenstream.rs Use delayed error handling for Encodable and Encoder infallible. 2022-06-08 07:01:26 +10:00
visit.rs Introduce LifetimeCtxt. 2022-05-20 12:25:05 +02:00