Skip to content

Commit 6eaf3f8

Browse files
committed
Remove support for compiler plugins.
They've been deprecated for four years. This commit includes the following changes. - It eliminates the `rustc_plugin_impl` crate. - It changes the language used for lints in `compiler/rustc_driver_impl/src/lib.rs` and `compiler/rustc_lint/src/context.rs`. External lints are now called "loaded" lints, rather than "plugins" to avoid confusion with the old plugins. This only has a tiny effect on the output of `-W help`. - E0457 and E0498 are no longer used. - E0463 is narrowed, now only relating to unfound crates, not plugins. - The `plugin` feature was moved from "active" to "removed". - It removes the entire plugins chapter from the unstable book. - It removes quite a few tests, mostly all of those in `tests/ui-fulldeps/plugin/`. Closes rust-lang#29597.
1 parent d204713 commit 6eaf3f8

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

crates/hir-def/src/attr/builtin.rs

-18
Original file line numberDiff line numberDiff line change
@@ -262,24 +262,6 @@ pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
262262
naked_functions, experimental!(naked)
263263
),
264264

265-
// Plugins:
266-
// BuiltinAttribute {
267-
// name: sym::plugin,
268-
// only_local: false,
269-
// type_: CrateLevel,
270-
// template: template!(List: "name"),
271-
// duplicates: DuplicatesOk,
272-
// gate: Gated(
273-
// Stability::Deprecated(
274-
// "https://github.com/rust-lang/rust/pull/64675",
275-
// Some("may be removed in a future compiler version"),
276-
// ),
277-
// sym::plugin,
278-
// "compiler plugins are deprecated",
279-
// cfg_fn!(plugin)
280-
// ),
281-
// },
282-
283265
// Testing:
284266
gated!(
285267
test_runner, CrateLevel, template!(List: "path"), ErrorFollowing, custom_test_frameworks,

0 commit comments

Comments
 (0)