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:
Matthias Krüger 2025-12-01 18:35:12 +01:00 committed by GitHub
commit 453fca50ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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