Practice diagnostic message convention
This commit is contained in:
parent
77f1e504a9
commit
3818981ca1
63 changed files with 167 additions and 168 deletions
|
@ -124,7 +124,7 @@ impl<'tcx> LateLintPass<'tcx> for ArrayIntoIter {
|
|||
let mut diag = lint.build(&format!(
|
||||
"this method call resolves to `<&{} as IntoIterator>::into_iter` \
|
||||
(due to backwards compatibility), \
|
||||
but will resolve to <{} as IntoIterator>::into_iter in Rust 2021.",
|
||||
but will resolve to <{} as IntoIterator>::into_iter in Rust 2021",
|
||||
target, target,
|
||||
));
|
||||
diag.span_suggestion(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue