diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-10-04 05:02:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-04 05:02:07 +0200 |
| commit | 4ed2291624d227b105754a87a5f74cd9f884839e (patch) | |
| tree | 4a763263ebcb58764cdb1bff5c4a8f49957ba1fb /compiler/rustc_ast_passes/src | |
| parent | 3e293634e2e500153d5d8b4b609539b69af9951d (diff) | |
| parent | 7815641be0751ea3e2ac034585207632035af2ee (diff) | |
| download | rust-4ed2291624d227b105754a87a5f74cd9f884839e.tar.gz rust-4ed2291624d227b105754a87a5f74cd9f884839e.zip | |
Rollup merge of #116393 - compiler-errors:auto-bad, r=WaffleLapkin
Emit feature gate *warning* for `auto` traits pre-expansion Auto traits were introduced before we were more careful about not stabilizing new syntax pre-expansion. This is a more conservative step in the general direction we want to go in https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/Removal.20of.20.60auto.20trait.60.20syntax. Fixes #116121
Diffstat (limited to 'compiler/rustc_ast_passes/src')
| -rw-r--r-- | compiler/rustc_ast_passes/src/feature_gate.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast_passes/src/feature_gate.rs b/compiler/rustc_ast_passes/src/feature_gate.rs index 62dc7ae58a2..5d279943f1e 100644 --- a/compiler/rustc_ast_passes/src/feature_gate.rs +++ b/compiler/rustc_ast_passes/src/feature_gate.rs @@ -603,6 +603,7 @@ pub fn check_crate(krate: &ast::Crate, sess: &Session, features: &Features) { "exclusive range pattern syntax is experimental" ); gate_all_legacy_dont_use!(try_blocks, "`try` blocks are unstable"); + gate_all_legacy_dont_use!(auto_traits, "`auto` traits are unstable"); visit::walk_crate(&mut visitor, krate); } |
