File tree 4 files changed +18
-6
lines changed
compiler/rustc_passes/src
4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -559,7 +559,8 @@ impl CheckAttrVisitor<'tcx> {
559
559
sym:: masked,
560
560
sym:: no_default_passes, // deprecated
561
561
sym:: no_inline,
562
- sym:: passes, // deprecated
562
+ sym:: passes, // deprecated
563
+ sym:: plugins, // removed, but rustdoc warns about it itself
563
564
sym:: primitive,
564
565
sym:: spotlight,
565
566
sym:: test,
Original file line number Diff line number Diff line change @@ -572,6 +572,8 @@ crate fn run_global_ctxt(
572
572
573
573
if name == "no_default_passes" {
574
574
msg. help ( "you may want to use `#![doc(document_private_items)]`" ) ;
575
+ } else if name. starts_with ( "plugins" ) {
576
+ msg. warn ( "`#![doc(plugins = \" ...\" )]` no longer functions; see CVE-2018-1000622 <https://nvd.nist.gov/vuln/detail/CVE-2018-1000622>" ) ;
575
577
}
576
578
577
579
msg. emit ( ) ;
@@ -618,10 +620,6 @@ crate fn run_global_ctxt(
618
620
}
619
621
sym:: plugins => {
620
622
report_deprecated_attr ( "plugins = \" ...\" " , diag, attr. span ( ) ) ;
621
- eprintln ! (
622
- "WARNING: `#![doc(plugins = \" ...\" )]` \
623
- no longer functions; see CVE-2018-1000622"
624
- ) ;
625
623
continue ;
626
624
}
627
625
_ => continue ,
Original file line number Diff line number Diff line change 11
11
//~| NOTE see issue #44136
12
12
//~| WARNING ignoring unknown pass
13
13
//~| NOTE `collapse-docs` pass was removed
14
+ #![ doc( plugins = "xxx" ) ]
15
+ //~^ WARNING attribute is deprecated
16
+ //~| NOTE see issue #44136
17
+ //~| WARNING no longer functions; see CVE
Original file line number Diff line number Diff line change @@ -29,5 +29,14 @@ LL | #![doc(passes = "collapse-docs unindent-comments")]
29
29
|
30
30
= note: the `collapse-docs` pass was removed in #80261 <https://github.com/rust-lang/rust/pull/80261>
31
31
32
- warning: 4 warnings emitted
32
+ warning: the `#![doc(plugins = "...")]` attribute is deprecated
33
+ --> $DIR/deprecated-attrs.rs:14:8
34
+ |
35
+ LL | #![doc(plugins = "xxx")]
36
+ | ^^^^^^^^^^^^^^^
37
+ |
38
+ = note: see issue #44136 <https://github.com/rust-lang/rust/issues/44136> for more information
39
+ = warning: `#![doc(plugins = "...")]` no longer functions; see CVE-2018-1000622 <https://nvd.nist.gov/vuln/detail/CVE-2018-1000622>
40
+
41
+ warning: 5 warnings emitted
33
42
You can’t perform that action at this time.
0 commit comments