Skip to content

Commit 5c462a3

Browse files
committedNov 3, 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 #29597.
1 parent ab161d1 commit 5c462a3

File tree

101 files changed

+57
-1712
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
-1712
lines changed
 

‎Cargo.lock

-17
Original file line numberDiff line numberDiff line change
@@ -3796,7 +3796,6 @@ dependencies = [
37963796
"rustc_monomorphize",
37973797
"rustc_parse",
37983798
"rustc_passes",
3799-
"rustc_plugin_impl",
38003799
"rustc_privacy",
38013800
"rustc_query_system",
38023801
"rustc_resolve",
@@ -4085,7 +4084,6 @@ dependencies = [
40854084
"rustc_monomorphize",
40864085
"rustc_parse",
40874086
"rustc_passes",
4088-
"rustc_plugin_impl",
40894087
"rustc_privacy",
40904088
"rustc_query_impl",
40914089
"rustc_query_system",
@@ -4395,21 +4393,6 @@ dependencies = [
43954393
"tracing",
43964394
]
43974395

4398-
[[package]]
4399-
name = "rustc_plugin_impl"
4400-
version = "0.0.0"
4401-
dependencies = [
4402-
"libloading 0.7.4",
4403-
"rustc_ast",
4404-
"rustc_errors",
4405-
"rustc_fluent_macro",
4406-
"rustc_lint",
4407-
"rustc_macros",
4408-
"rustc_metadata",
4409-
"rustc_session",
4410-
"rustc_span",
4411-
]
4412-
44134396
[[package]]
44144397
name = "rustc_privacy"
44154398
version = "0.0.0"

‎compiler/rustc_codegen_cranelift/scripts/test_rustc_tests.sh

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ rm -r tests/run-make/split-debuginfo # same
6868
rm -r tests/run-make/symbols-include-type-name # --emit=asm not supported
6969
rm -r tests/run-make/target-specs # i686 not supported by Cranelift
7070
rm -r tests/run-make/mismatching-target-triples # same
71-
rm -r tests/run-make/use-extern-for-plugins # same
7271
rm tests/ui/asm/x86_64/issue-82869.rs # vector regs in inline asm not yet supported
7372
rm tests/ui/asm/x86_64/issue-96797.rs # const and sym inline asm operands don't work entirely correctly
7473

0 commit comments

Comments
 (0)