diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-11-21 15:44:16 +0000 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-11-24 19:15:52 +0100 |
| commit | 41e8d152dc5abb5a706999ada8b059d3420af8f3 (patch) | |
| tree | 2dae41c4e26e0195b5bd3472beac0445c8014915 /tests/ui/fmt | |
| parent | 4fd68eb47bad1c121417ac4450b2f0456150db86 (diff) | |
| download | rust-41e8d152dc5abb5a706999ada8b059d3420af8f3.tar.gz rust-41e8d152dc5abb5a706999ada8b059d3420af8f3.zip | |
Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
Diffstat (limited to 'tests/ui/fmt')
| -rw-r--r-- | tests/ui/fmt/closing-brace-as-fill.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/fmt/format-args-capture-from-pm-first-arg-macro.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/fmt/format-raw-string-error.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/fmt/ifmt-unimpl.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/fmt/ifmt-unknown-trait.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/fmt/issue-104142.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/fmt/issue-75307.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/fmt/issue-86085.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/fmt/issue-89173.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/fmt/issue-91556.stderr | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/tests/ui/fmt/closing-brace-as-fill.stderr b/tests/ui/fmt/closing-brace-as-fill.stderr index aa1e5aff652..70068fa3aad 100644 --- a/tests/ui/fmt/closing-brace-as-fill.stderr +++ b/tests/ui/fmt/closing-brace-as-fill.stderr @@ -8,5 +8,5 @@ LL | println!("Hello, world! {0:}<3", 2); | = note: the character `'}'` is interpreted as a fill character because of the `:` that precedes it -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/fmt/format-args-capture-from-pm-first-arg-macro.stderr b/tests/ui/fmt/format-args-capture-from-pm-first-arg-macro.stderr index bb6a14d88b3..950dea721e2 100644 --- a/tests/ui/fmt/format-args-capture-from-pm-first-arg-macro.stderr +++ b/tests/ui/fmt/format-args-capture-from-pm-first-arg-macro.stderr @@ -8,5 +8,5 @@ LL | format_string_proc_macro::bad_format_args_captures!(); = note: to avoid ambiguity, `format_args!` cannot capture variables when the format string is expanded from a macro = note: this error originates in the macro `concat` (in Nightly builds, run with -Z macro-backtrace for more info) -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/fmt/format-raw-string-error.stderr b/tests/ui/fmt/format-raw-string-error.stderr index 8d61950d8c2..090ca9353a7 100644 --- a/tests/ui/fmt/format-raw-string-error.stderr +++ b/tests/ui/fmt/format-raw-string-error.stderr @@ -6,5 +6,5 @@ LL | println!(r#"\'\'\'\'\'\'\'\'\'\'\'\'\'\'}"#); | = note: if you intended to print `}`, you can escape it using `}}` -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/fmt/ifmt-unimpl.stderr b/tests/ui/fmt/ifmt-unimpl.stderr index 4c0ac52865d..c0650ff17c5 100644 --- a/tests/ui/fmt/ifmt-unimpl.stderr +++ b/tests/ui/fmt/ifmt-unimpl.stderr @@ -21,6 +21,6 @@ note: required by a bound in `core::fmt::rt::Argument::<'a>::new_upper_hex` --> $SRC_DIR/core/src/fmt/rt.rs:LL:COL = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) -error: aborting due to previous error +error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0277`. diff --git a/tests/ui/fmt/ifmt-unknown-trait.stderr b/tests/ui/fmt/ifmt-unknown-trait.stderr index 459432bf4e4..66147ae45fa 100644 --- a/tests/ui/fmt/ifmt-unknown-trait.stderr +++ b/tests/ui/fmt/ifmt-unknown-trait.stderr @@ -15,5 +15,5 @@ LL | format!("{:notimplemented}", "3"); - `x`, which uses the `LowerHex` trait - `X`, which uses the `UpperHex` trait -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/fmt/issue-104142.stderr b/tests/ui/fmt/issue-104142.stderr index d41644faa28..690ccb8d08b 100644 --- a/tests/ui/fmt/issue-104142.stderr +++ b/tests/ui/fmt/issue-104142.stderr @@ -6,5 +6,5 @@ LL | \"\'}、"# | = note: if you intended to print `}`, you can escape it using `}}` -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/fmt/issue-75307.stderr b/tests/ui/fmt/issue-75307.stderr index c5b0b11e7d0..986e805d4f9 100644 --- a/tests/ui/fmt/issue-75307.stderr +++ b/tests/ui/fmt/issue-75307.stderr @@ -4,5 +4,5 @@ error: 3 positional arguments in format string, but there is 1 argument LL | format!(r"{}{}{}", named_arg=1); | ^^^^^^ - -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/fmt/issue-86085.stderr b/tests/ui/fmt/issue-86085.stderr index ee7d8a5cc23..f325a3ce293 100644 --- a/tests/ui/fmt/issue-86085.stderr +++ b/tests/ui/fmt/issue-86085.stderr @@ -7,5 +7,5 @@ LL | format ! ( concat ! ( r#"lJÆ�.�"# , "r} {}" ) ) ; = note: if you intended to print `}`, you can escape it using `}}` = note: this error originates in the macro `concat` (in Nightly builds, run with -Z macro-backtrace for more info) -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/fmt/issue-89173.stderr b/tests/ui/fmt/issue-89173.stderr index ddeb769eadc..62ca8862d21 100644 --- a/tests/ui/fmt/issue-89173.stderr +++ b/tests/ui/fmt/issue-89173.stderr @@ -14,5 +14,5 @@ LL | print!("%0*x", width, num); | ^^^^ = note: printf formatting is not supported; see the documentation for `std::fmt` -error: aborting due to previous error +error: aborting due to 1 previous error diff --git a/tests/ui/fmt/issue-91556.stderr b/tests/ui/fmt/issue-91556.stderr index dbd5aef458b..beab3db0d94 100644 --- a/tests/ui/fmt/issue-91556.stderr +++ b/tests/ui/fmt/issue-91556.stderr @@ -7,5 +7,5 @@ LL | let _ = format!(concat!("{0}𝖳𝖾𝗌𝗍{"), i); = note: if you intended to print `{`, you can escape it using `{{` = note: this error originates in the macro `concat` (in Nightly builds, run with -Z macro-backtrace for more info) -error: aborting due to previous error +error: aborting due to 1 previous error |
