summary refs log tree commit diff
path: root/compiler/rustc_ast/src/util/classify.rs
AgeCommit message (Collapse)AuthorLines
2023-09-11Move let expression checking to parsingMatthew Jasper-1/+1
There was an incomplete version of the check in parsing and a second version in AST validation. This meant that some, but not all, invalid uses were allowed inside macros/disabled cfgs. It also means that later passes have a hard time knowing when the let expression is in a valid location, sometimes causing ICEs. - Add a field to ExprKind::Let in AST/HIR to mark whether it's in a valid location. - Suppress later errors and MIR construction for invalid let expressions.
2023-03-12Remove `box_syntax` from AST and use in toolsclubby789-1/+0
2022-12-01Make inline const block `ExprWithBlock`Gary Guo-0/+1
2022-11-17Box `ExprKind::{Closure,MethodCall}`, and `QSelf` in expressions, types, and ↵Nicholas Nethercote-1/+3
patterns.
2021-08-30Handle let-else initializer edge case errorsCameron Steffen-0/+27
2020-12-24use matches!() macro in more placesMatthias Krüger-9/+9
2020-08-30mv compiler to compiler/mark-0/+25