Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0fcfd98

Browse files
committedOct 4, 2023
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 36aab8d commit 0fcfd98

File tree

101 files changed

+57
-1692
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+57
-1692
lines changed
 

‎Cargo.lock

-17
Original file line numberDiff line numberDiff line change
@@ -3666,7 +3666,6 @@ dependencies = [
36663666
"rustc_monomorphize",
36673667
"rustc_parse",
36683668
"rustc_passes",
3669-
"rustc_plugin_impl",
36703669
"rustc_privacy",
36713670
"rustc_query_system",
36723671
"rustc_resolve",
@@ -3956,7 +3955,6 @@ dependencies = [
39563955
"rustc_monomorphize",
39573956
"rustc_parse",
39583957
"rustc_passes",
3959-
"rustc_plugin_impl",
39603958
"rustc_privacy",
39613959
"rustc_query_impl",
39623960
"rustc_query_system",
@@ -4266,21 +4264,6 @@ dependencies = [
42664264
"tracing",
42674265
]
42684266

4269-
[[package]]
4270-
name = "rustc_plugin_impl"
4271-
version = "0.0.0"
4272-
dependencies = [
4273-
"libloading 0.7.4",
4274-
"rustc_ast",
4275-
"rustc_errors",
4276-
"rustc_fluent_macro",
4277-
"rustc_lint",
4278-
"rustc_macros",
4279-
"rustc_metadata",
4280-
"rustc_session",
4281-
"rustc_span",
4282-
]
4283-
42844267
[[package]]
42854268
name = "rustc_privacy"
42864269
version = "0.0.0"

‎compiler/rustc_codegen_cranelift/scripts/test_rustc_tests.sh

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ rm -r tests/run-make/split-debuginfo # same
7676
rm -r tests/run-make/symbols-include-type-name # --emit=asm not supported
7777
rm -r tests/run-make/target-specs # i686 not supported by Cranelift
7878
rm -r tests/run-make/mismatching-target-triples # same
79-
rm -r tests/run-make/use-extern-for-plugins # same
8079

8180
# requires LTO
8281
rm -r tests/run-make/cdylib

0 commit comments

Comments
 (0)
Please sign in to comment.