diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2019-10-03 16:25:37 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-03 16:25:37 -0700 |
| commit | da0afc163848ea0530bee2099bfd79fc40bbf39a (patch) | |
| tree | 3e7e1765509ca1b5a42a88fcf61ea5d9c760946d /src/libsyntax | |
| parent | f7ee31e3d784324397c448677d230cc2f3161e3c (diff) | |
| parent | d1f95ef3c53df238afdeaee9c9fab35ab5dacc18 (diff) | |
| download | rust-da0afc163848ea0530bee2099bfd79fc40bbf39a.tar.gz rust-da0afc163848ea0530bee2099bfd79fc40bbf39a.zip | |
Rollup merge of #64675 - Centril:deprecate-plugin, r=oli-obk
Deprecate `#![plugin]` & `#[plugin_registrar]` This PR deprecates `#![plugin]` and `#[plugin_registrar]`. ~A removal deadline is set: 1.44.0. This will be in 9 months from now and should give everyone who is still relying on the feature ample time to rid themselves of this dependency.~ cc https://github.com/rust-lang/rust/issues/29597 r? @Mark-Simulacrum
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate/builtin_attrs.rs | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/libsyntax/feature_gate/builtin_attrs.rs b/src/libsyntax/feature_gate/builtin_attrs.rs index d14afc6deaa..80a80ff0a0d 100644 --- a/src/libsyntax/feature_gate/builtin_attrs.rs +++ b/src/libsyntax/feature_gate/builtin_attrs.rs @@ -278,10 +278,23 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ ), // Plugins: - ungated!(plugin_registrar, Normal, template!(Word)), - gated!( - plugin, CrateLevel, template!(List: "name|name(args)"), - "compiler plugins are experimental and possibly buggy", + ( + sym::plugin_registrar, Normal, template!(Word), + Gated( + Stability::Deprecated("https://github.com/rust-lang/rust/issues/29597", None), + sym::plugin_registrar, + "compiler plugins are deprecated", + cfg_fn!(plugin_registrar) + ) + ), + ( + sym::plugin, CrateLevel, template!(List: "name|name(args)"), + Gated( + Stability::Deprecated("https://github.com/rust-lang/rust/issues/29597", None), + sym::plugin, + "compiler plugins are deprecated", + cfg_fn!(plugin) + ) ), // Testing: |
