diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-02-28 22:51:35 -0500 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-03-02 11:38:07 -0500 |
| commit | d5c300b1f2e9a6f7f05b2fa51ca2b4d011d289f4 (patch) | |
| tree | c0c371de2ebc85a92b6f6f4ef37cef9e40ff6129 /compiler/rustc_passes/src | |
| parent | 44c2794976986677c4f5524f63562d02e0e53d57 (diff) | |
| download | rust-d5c300b1f2e9a6f7f05b2fa51ca2b4d011d289f4.tar.gz rust-d5c300b1f2e9a6f7f05b2fa51ca2b4d011d289f4.zip | |
Report that `doc(plugins)` doesn't work using diagnostics instead of `println!`
This also adds a test for the output and fixes `rustc_attr` to properly know that `plugins` is a valid attribute.
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/check_attr.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index afd1642bbd5..d0ab0d657d9 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -559,7 +559,8 @@ impl CheckAttrVisitor<'tcx> { sym::masked, sym::no_default_passes, // deprecated sym::no_inline, - sym::passes, // deprecated + sym::passes, // deprecated + sym::plugins, // removed, but rustdoc warns about it itself sym::primitive, sym::spotlight, sym::test, |
