mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
clean up pr 104954
This commit is contained in:
@@ -282,7 +282,7 @@ fn make_base_error(
|
||||
"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((
|
||||
|
||||
+1
-2
@@ -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;
|
||||
+1
-1
@@ -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
|
||||
Reference in New Issue
Block a user