You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.note = `doc` attribute `{$path}` no longer functions; see issue #44136 <https://github.com/rust-lang/rust/issues/44136>
251
+
.label = no longer functions
252
+
.help = you may want to use `doc(document_private_items)`
253
+
.no_op_note = `doc({$path})` is now a no-op
254
+
255
+
passes_doc_test_unknown_plugins =
256
+
unknown `doc` attribute `{$path}`
257
+
.note = `doc` attribute `{$path}` no longer functions; see issue #44136 <https://github.com/rust-lang/rust/issues/44136> and CVE-2018-1000622 <https://nvd.nist.gov/vuln/detail/CVE-2018-1000622>
258
+
.label = no longer functions
259
+
.no_op_note = `doc({$path})` is now a no-op
260
+
248
261
passes_doc_test_unknown_spotlight =
249
262
unknown `doc` attribute `{$path}`
250
263
.note = `doc(spotlight)` was renamed to `doc(notable_trait)`
dcx.struct_span_warn(sp,format!("the `#![doc({name})]` attribute is deprecated"));
386
-
msg.note(
387
-
"see issue #44136 <https://github.com/rust-lang/rust/issues/44136> \
388
-
for more information",
389
-
);
390
-
391
-
if name == "no_default_passes"{
392
-
msg.help("`#![doc(no_default_passes)]` no longer functions; you may want to use `#![doc(document_private_items)]`");
393
-
}elseif name.starts_with("passes"){
394
-
msg.help("`#![doc(passes = \"...\")]` no longer functions; you may want to use `#![doc(document_private_items)]`");
395
-
}elseif name.starts_with("plugins"){
396
-
msg.warn("`#![doc(plugins = \"...\")]` no longer functions; see CVE-2018-1000622 <https://nvd.nist.gov/vuln/detail/CVE-2018-1000622>");
397
-
}
398
-
399
-
msg.emit();
400
-
}
401
-
402
383
// Process all of the crate attributes, extracting plugin metadata along
403
384
// with the passes which we are supposed to run.
404
385
for attr in krate.module.attrs.lists(sym::doc){
405
-
let dcx = ctxt.sess().dcx();
406
-
407
386
let name = attr.name_or_empty();
408
-
// `plugins = "..."`, `no_default_passes`, and `passes = "..."` have no effect
409
-
if attr.is_word() && name == sym::no_default_passes {
Copy file name to clipboardExpand all lines: tests/rustdoc-ui/deprecated-attrs.stderr
+19-16Lines changed: 19 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -3,32 +3,35 @@ warning: the `passes` flag no longer functions
3
3
= note: see issue #44136 <https://github.com/rust-lang/rust/issues/44136> for more information
4
4
= help: you may want to use --document-private-items
5
5
6
-
warning: the `#![doc(no_default_passes)]` attribute is deprecated
= note: see issue #44136 <https://github.com/rust-lang/rust/issues/44136> for more information
13
-
= help: `#![doc(no_default_passes)]` no longer functions; you may want to use `#![doc(document_private_items)]`
12
+
= note: `doc` attribute `no_default_passes` no longer functions; see issue #44136 <https://github.com/rust-lang/rust/issues/44136>
13
+
= help: you may want to use `doc(document_private_items)`
14
+
= note: `doc(no_default_passes)` is now a no-op
15
+
= note: `#[deny(invalid_doc_attributes)]` on by default
14
16
15
-
warning: the `#![doc(passes = "...")]` attribute is deprecated
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no longer functions
20
22
|
21
-
= note: see issue #44136 <https://github.com/rust-lang/rust/issues/44136> for more information
22
-
= help: `#![doc(passes = "...")]` no longer functions; you may want to use `#![doc(document_private_items)]`
23
+
= note: `doc` attribute `passes` no longer functions; see issue #44136 <https://github.com/rust-lang/rust/issues/44136>
24
+
= help: you may want to use `doc(document_private_items)`
25
+
= note: `doc(passes)` is now a no-op
23
26
24
-
warning: the `#![doc(plugins = "...")]` attribute is deprecated
25
-
--> $DIR/deprecated-attrs.rs:13:8
27
+
error: unknown `doc` attribute `plugins`
28
+
--> $DIR/deprecated-attrs.rs:17:8
26
29
|
27
30
LL | #![doc(plugins = "xxx")]
28
-
| ^^^^^^^^^^^^^^^
31
+
| ^^^^^^^^^^^^^^^ no longer functions
29
32
|
30
-
= note: see issue #44136 <https://github.com/rust-lang/rust/issues/44136> for more information
31
-
= warning: `#![doc(plugins = "...")]` no longer functions; see CVE-2018-1000622 <https://nvd.nist.gov/vuln/detail/CVE-2018-1000622>
33
+
= note: `doc` attribute `plugins` no longer functions; see issue #44136 <https://github.com/rust-lang/rust/issues/44136> and CVE-2018-1000622 <https://nvd.nist.gov/vuln/detail/CVE-2018-1000622>
0 commit comments