Rollup merge of #149505 - reddevilmidzy:fix, r=WaffleLapkin
Update the comment in the add_typo_suggestion function
This comment was added to 089810a1cb. However, the test for the comment was moved elsewhere in https://github.com/rust-lang/rust/pull/145897.
This commit is contained in:
commit
453fca50ef
1 changed files with 1 additions and 1 deletions
|
|
@ -1902,7 +1902,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
|
|||
if span.overlaps(def_span) {
|
||||
// Don't suggest typo suggestion for itself like in the following:
|
||||
// error[E0423]: expected function, tuple struct or tuple variant, found struct `X`
|
||||
// --> $DIR/issue-64792-bad-unicode-ctor.rs:3:14
|
||||
// --> $DIR/unicode-string-literal-syntax-error-64792.rs:4:14
|
||||
// |
|
||||
// LL | struct X {}
|
||||
// | ----------- `X` defined here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue