Remove let_chains feature

This commit is contained in:
Cameron Steffen
2025-06-29 13:06:21 -05:00
parent ed2d759783
commit dc9879cb3d
39 changed files with 1053 additions and 1194 deletions

View File

@@ -4117,7 +4117,7 @@ impl MutVisitor for CondChecker<'_> {
LetChainsPolicy::AlwaysAllowed => (),
LetChainsPolicy::EditionDependent { current_edition } => {
if !current_edition.at_least_rust_2024() || !span.at_least_rust_2024() {
self.parser.psess.gated_spans.gate(sym::let_chains, span);
self.parser.dcx().emit_err(errors::LetChainPre2024 { span });
}
}
}