Improve ineffective_unstable_trait_impl
error message.
This commit is contained in:
parent
1c1bfba84a
commit
14cc17759d
3 changed files with 7 additions and 6 deletions
|
@ -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()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue