Skip to content

Commit c95dceb

Browse files
committed
clean up pr 104954
1 parent 2585bce commit c95dceb

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

compiler/rustc_resolve/src/late/diagnostics.rs

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

src/test/ui/suggestions/seggest_print_over_printf.rs src/test/ui/suggestions/suggest_print_over_printf.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// Suggest to a user to use the print macros
2-
// instead to use the printf.
1+
// Suggest print macro when user erroneously uses printf
32

43
fn main() {
54
let x = 4;

src/test/ui/suggestions/seggest_print_over_printf.stderr src/test/ui/suggestions/suggest_print_over_printf.stderr

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

0 commit comments

Comments
 (0)