about summary refs log tree commit diff
path: root/compiler/rustc_passes/src
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-09-11 21:42:28 +0200
committerMara Bos <m-ou.se@m-ou.se>2020-09-11 21:42:28 +0200
commit14cc17759de0863e85eea46c0f5bfcc362d1bfe8 (patch)
tree3a523eadb17affec211037acc02d478f5142ab8b /compiler/rustc_passes/src
parent1c1bfba84a92e0fe8bf1eb85e8c3e3d10caf07cb (diff)
downloadrust-14cc17759de0863e85eea46c0f5bfcc362d1bfe8.tar.gz
rust-14cc17759de0863e85eea46c0f5bfcc362d1bfe8.zip
Improve `ineffective_unstable_trait_impl` error message.
Diffstat (limited to 'compiler/rustc_passes/src')
-rw-r--r--compiler/rustc_passes/src/stability.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_passes/src/stability.rs b/compiler/rustc_passes/src/stability.rs
index 4eb983365ff..4ca52f405fb 100644
--- a/compiler/rustc_passes/src/stability.rs
+++ b/compiler/rustc_passes/src/stability.rs
@@ -561,10 +561,10 @@ impl Visitor<'tcx> for Checker<'tcx> {
                                 INEFFECTIVE_UNSTABLE_TRAIT_IMPL,
                                 item.hir_id,
                                 span,
-                                |lint| lint.build(
-                                    "An `#[unstable]` annotation here has no effect. \
-                                    See issue #55436 <https://github.com/rust-lang/rust/issues/55436> for more information.",
-                                ).emit()
+                                |lint| lint
+                                    .build("an `#[unstable]` annotation here has no effect")
+                                    .note("see issue #55436 <https://github.com/rust-lang/rust/issues/55436> for more information")
+                                    .emit()
                             );
                         }
                     }