Skip to content

Commit

Permalink
drop unnecessary "warning" from warning text
Browse files Browse the repository at this point in the history
  • Loading branch information
QuietMisdreavus committed May 14, 2018
1 parent bb6224b commit 10ac995
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librustdoc/lib.rs
Expand Up @@ -649,7 +649,7 @@ where R: 'static + Send,
let diag = core::new_handler(error_format, None);

fn report_deprecated_attr(name: &str, diag: &errors::Handler) {
let mut msg = diag.struct_warn(&format!("WARNING: the `#![doc({})]` attribute is \
let mut msg = diag.struct_warn(&format!("the `#![doc({})]` attribute is \
considered deprecated", name));
msg.warn("please see https://github.com/rust-lang/rust/issues/44136");

Expand Down
4 changes: 2 additions & 2 deletions src/test/rustdoc-ui/deprecated-attrs.stderr
@@ -1,9 +1,9 @@
warning: WARNING: the `#![doc(no_default_passes)]` attribute is considered deprecated
warning: the `#![doc(no_default_passes)]` attribute is considered deprecated
|
= warning: please see https://github.com/rust-lang/rust/issues/44136
= help: you may want to use `#![doc(document_private_items)]`

warning: WARNING: the `#![doc(passes = "...")]` attribute is considered deprecated
warning: the `#![doc(passes = "...")]` attribute is considered deprecated
|
= warning: please see https://github.com/rust-lang/rust/issues/44136

0 comments on commit 10ac995

Please sign in to comment.