Rollup merge of #105038 - Rageking8:clean-up-pr-104954, r=compiler-errors

Clean up pr 104954

UI test filename typo fix and a simple comment rewording. Thanks.

CC `@vincenzopalazzo` (you spelled your name wrongly in the FIXME)

r? `@estebank`
This commit is contained in:
Matthias Krüger 2022-11-29 05:24:25 +01:00 committed by GitHub
commit 789b70dc2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View file

@ -282,7 +282,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> {
"you may want to use a bool value instead",
format!("{}", item_typo),
))
// FIXME(vicnenzopalazzo): make the check smarter,
// FIXME(vincenzopalazzo): make the check smarter,
// and maybe expand with levenshtein distance checks
} else if item_str.as_str() == "printf" {
Some((

View file

@ -1,5 +1,4 @@
// Suggest to a user to use the print macros
// instead to use the printf.
// Suggest print macro when user erroneously uses printf
fn main() {
let x = 4;

View file

@ -1,5 +1,5 @@
error[E0425]: cannot find function `printf` in this scope
--> $DIR/seggest_print_over_printf.rs:6:5
--> $DIR/suggest_print_over_printf.rs:5:5
|
LL | printf("%d", x);
| ^^^^^^ not found in this scope