File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,17 @@ fn clean_lib(
203203 }
204204 } ;
205205
206+ if lib. plugin == Some ( true ) {
207+ warnings. push ( format ! (
208+ "support for rustc plugins has been removed from rustc. \
209+ library `{}` should not specify `plugin = true`",
210+ name_or_panic( lib)
211+ ) ) ;
212+ warnings. push ( format ! (
213+ "support for `plugin = true` will be removed from cargo in the future"
214+ ) ) ;
215+ }
216+
206217 // Per the Macros 1.1 RFC:
207218 //
208219 // > Initially if a crate is compiled with the `proc-macro` crate type
Original file line number Diff line number Diff line change @@ -896,6 +896,8 @@ fn plugin_build_script_right_arch() {
896896 . arg ( cross_compile:: alternate ( ) )
897897 . with_stderr (
898898 "\
899+ [WARNING] support for rustc plugins has been removed from rustc. library `foo` should not specify `plugin = true`
900+ [WARNING] support for `plugin = true` will be removed from cargo in the future
899901[COMPILING] foo v0.0.1 ([..])
900902[RUNNING] `rustc [..] build.rs [..]`
901903[RUNNING] `[..]/build-script-build`
Original file line number Diff line number Diff line change @@ -378,6 +378,11 @@ fn proc_macro_crate_type_warning_plugin() {
378378 . build ( ) ;
379379
380380 foo. cargo ( "check" )
381+ . with_stderr_contains (
382+ "[WARNING] support for rustc plugins has been removed from rustc. \
383+ library `foo` should not specify `plugin = true`")
384+ . with_stderr_contains (
385+ "[WARNING] support for `plugin = true` will be removed from cargo in the future" )
381386 . with_stderr_contains (
382387 "[WARNING] proc-macro library `foo` should not specify `plugin = true`" )
383388 . with_stderr_contains (
You can’t perform that action at this time.
0 commit comments