1
Fork 0

Rollup merge of #88850 - matthiaskrgr:identical_conv, r=jackh726

don't convert types into identical types

example: let x: String = String::new().into();
This commit is contained in:
Jubilee 2021-09-11 08:23:46 -07:00 committed by GitHub
commit 2a8ad06689
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -2345,7 +2345,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
);
err.span_suggestion(
generics.where_clause.tail_span_for_suggestion(),
"consider adding a where clause".into(),
"consider adding a where clause",
suggestion,
Applicability::MaybeIncorrect,
);