From 10ac9950249f19e6ea02410cb955764b998d1912 Mon Sep 17 00:00:00 2001 From: QuietMisdreavus Date: Mon, 14 May 2018 15:33:59 -0500 Subject: [PATCH] drop unnecessary "warning" from warning text --- src/librustdoc/lib.rs | 2 +- src/test/rustdoc-ui/deprecated-attrs.stderr | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index ad810a917282..2c08bfa9a744 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -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"); diff --git a/src/test/rustdoc-ui/deprecated-attrs.stderr b/src/test/rustdoc-ui/deprecated-attrs.stderr index 4aabc1f2fefa..77ba4b2a2b67 100644 --- a/src/test/rustdoc-ui/deprecated-attrs.stderr +++ b/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