Skip to content

Commit 37b2813

Browse files
committed
Auto merge of #118138 - Nilstrieb:one-previous-error, r=WaffleLapkin
Fixes error count display is different when there's only one error left Supersedes #114759 ### What did I do? I did the small change in `rustc_errors` by hand. Then I did the other changes in `/compiler` by hand, those were just find replace on `*.rs` in the workspace. The changes in run-make are find replace for `run-make` in the workspace. All other changes are blessed using `x test TEST --bless`. I blessed the tests that were blessed in #114759. ### how to review this nightmare ping bors with an `r+`. You should check that my logic is sound and maybe quickly scroll through the diff, but fully verifying it seems fairly hard to impossible. I did my best to do this correctly. Thank you `@adrianEffe` for bringing this up and your initial implementation. cc `@flip1995,` you said you want to do a subtree sync asap cc `@RalfJung` maybe you want to do a quick subtree sync afterwards as well for Miri r? `@WaffleLapkin`
2 parents 0f696e5 + c73d392 commit 37b2813

File tree

5,757 files changed

+5766
-5759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,757 files changed

+5766
-5759
lines changed

Diff for: compiler/rustc_errors/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ impl HandlerInner {
14651465
};
14661466
let errors = match self.deduplicated_err_count {
14671467
0 => Cow::from(""),
1468-
1 => Cow::from("aborting due to previous error"),
1468+
1 => Cow::from("aborting due to 1 previous error"),
14691469
count => Cow::from(format!("aborting due to {count} previous errors")),
14701470
};
14711471
if self.treat_err_as_bug() {

Diff for: compiler/rustc_hir_typeck/src/expr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
19271927
/// 8 | foo::Foo {};
19281928
/// | ^^^^^^^^ missing `you_can_use_this_field`
19291929
///
1930-
/// error: aborting due to previous error
1930+
/// error: aborting due to 1 previous error
19311931
/// ```
19321932
fn report_missing_fields(
19331933
&self,
@@ -2044,7 +2044,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
20442044
/// 8 | foo::Foo {};
20452045
/// | ^^^^^^^^
20462046
///
2047-
/// error: aborting due to previous error
2047+
/// error: aborting due to 1 previous error
20482048
/// ```
20492049
fn report_private_fields(
20502050
&self,

Diff for: library/core/src/intrinsics/mir.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
//! 27 | | )
194194
//! | |_____- binding declared here but left uninitialized
195195
//!
196-
//! error: aborting due to previous error
196+
//! error: aborting due to 1 previous error
197197
//!
198198
//! For more information about this error, try `rustc --explain E0381`.
199199
//! ```

Diff for: src/tools/clippy/tests/ui-internal/default_deprecation_reason.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ LL | #![deny(clippy::internal)]
1818
= note: `#[deny(clippy::default_deprecation_reason)]` implied by `#[deny(clippy::internal)]`
1919
= note: this error originates in the macro `declare_deprecated_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
2020

21-
error: aborting due to previous error
21+
error: aborting due to 1 previous error
2222

Diff for: src/tools/clippy/tests/ui-internal/default_lint.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ LL | #![deny(clippy::internal)]
1717
= note: `#[deny(clippy::default_lint)]` implied by `#[deny(clippy::internal)]`
1818
= note: this error originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
1919

20-
error: aborting due to previous error
20+
error: aborting due to 1 previous error
2121

Diff for: src/tools/clippy/tests/ui-internal/lint_without_lint_pass.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ LL | #![deny(clippy::internal)]
1717
= note: `#[deny(clippy::lint_without_lint_pass)]` implied by `#[deny(clippy::internal)]`
1818
= note: this error originates in the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
1919

20-
error: aborting due to previous error
20+
error: aborting due to 1 previous error
2121

Diff for: src/tools/clippy/tests/ui-internal/outer_expn_data.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ LL | #![deny(clippy::internal)]
1111
| ^^^^^^^^^^^^^^^^
1212
= note: `#[deny(clippy::outer_expn_expn_data)]` implied by `#[deny(clippy::internal)]`
1313

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

Diff for: src/tools/clippy/tests/ui-toml/bad_toml/conf_bad_toml.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ error: error reading Clippy's configuration file: expected `.`, `=`
44
LL | fn this_is_obviously(not: a, toml: file) {
55
| ^
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

Diff for: src/tools/clippy/tests/ui-toml/bad_toml_type/conf_bad_type.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ error: error reading Clippy's configuration file: invalid type: integer `42`, ex
44
LL | disallowed-names = 42
55
| ^^
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

Diff for: src/tools/clippy/tests/ui-toml/conf_deprecated_key/conf_deprecated_key.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ LL | fn cognitive_complexity() {
2020
= note: `-D clippy::cognitive-complexity` implied by `-D warnings`
2121
= help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`
2222

23-
error: aborting due to previous error; 2 warnings emitted
23+
error: aborting due to 1 previous error; 2 warnings emitted
2424

Diff for: src/tools/clippy/tests/ui-toml/decimal_literal_representation/decimal_literal_representation.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | let _ = 16777215;
77
= note: `-D clippy::decimal-literal-representation` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::decimal_literal_representation)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui-toml/disallowed_names_replace/disallowed_names.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | let ducks = ["quack", "quack"];
77
= note: `-D clippy::disallowed-names` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::disallowed_names)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui-toml/disallowed_script_idents/disallowed_script_idents.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | let カウンタ = 10;
77
= note: `-D clippy::disallowed-script-idents` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::disallowed_script_idents)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui-toml/doc_valid_idents_append/doc_markdown.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ help: try
1111
LL | /// `TestItemThingyOfCoolness` might sound cool but is not on the list and should be linted.
1212
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1313

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

Diff for: src/tools/clippy/tests/ui-toml/duplicated_keys/duplicated_keys.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ error: error reading Clippy's configuration file: duplicate key `cognitive-compl
44
LL | cognitive-complexity-threshold = 4
55
| ^
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

Diff for: src/tools/clippy/tests/ui-toml/duplicated_keys_deprecated/duplicated_keys.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ warning: error reading Clippy's configuration file: deprecated field `cyclomatic
1010
LL | cyclomatic-complexity-threshold = 3
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

13-
error: aborting due to previous error; 1 warning emitted
13+
error: aborting due to 1 previous error; 1 warning emitted
1414

Diff for: src/tools/clippy/tests/ui-toml/duplicated_keys_deprecated_2/duplicated_keys.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ warning: error reading Clippy's configuration file: deprecated field `cyclomatic
1010
LL | cyclomatic-complexity-threshold = 3
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

13-
error: aborting due to previous error; 1 warning emitted
13+
error: aborting due to 1 previous error; 1 warning emitted
1414

Diff for: src/tools/clippy/tests/ui-toml/enum_variant_size/enum_variant_size.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ help: consider boxing the large fields to reduce the total size of the enum
1717
LL | B(Box<[u8; 501]>),
1818
| ~~~~~~~~~~~~~~
1919

20-
error: aborting due to previous error
20+
error: aborting due to 1 previous error
2121

Diff for: src/tools/clippy/tests/ui-toml/fn_params_excessive_bools/test.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ LL | fn g(_: bool, _: bool) {}
88
= note: `-D clippy::fn-params-excessive-bools` implied by `-D warnings`
99
= help: to override `-D warnings` add `#[allow(clippy::fn_params_excessive_bools)]`
1010

11-
error: aborting due to previous error
11+
error: aborting due to 1 previous error
1212

Diff for: src/tools/clippy/tests/ui-toml/ifs_same_cond/ifs_same_cond.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ LL | if x.get() {
1212
= note: `-D clippy::ifs-same-cond` implied by `-D warnings`
1313
= help: to override `-D warnings` add `#[allow(clippy::ifs_same_cond)]`
1414

15-
error: aborting due to previous error
15+
error: aborting due to 1 previous error
1616

Diff for: src/tools/clippy/tests/ui-toml/impl_trait_in_params/impl_trait_in_params.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ help: add a type parameter
1111
LL | fn t<{ /* Generic name */ }: Trait>(_: impl Trait);
1212
| +++++++++++++++++++++++++++++++
1313

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

Diff for: src/tools/clippy/tests/ui-toml/invalid_min_rust_version/invalid_min_rust_version.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ error: error reading Clippy's configuration file: not a valid Rust version
44
LL | msrv = "invalid.version"
55
| ^^^^^^^^^^^^^^^^^
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

Diff for: src/tools/clippy/tests/ui-toml/large_futures/large_futures.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | should_warn().await;
77
= note: `-D clippy::large-futures` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::large_futures)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui-toml/large_stack_frames/large_stack_frames.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ LL | | }
1111
= note: `-D clippy::large-stack-frames` implied by `-D warnings`
1212
= help: to override `-D warnings` add `#[allow(clippy::large_stack_frames)]`
1313

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

Diff for: src/tools/clippy/tests/ui-toml/large_types_passed_by_value/large_types_passed_by_value.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | fn f2(_v: [u8; 513]) {}
77
= note: `-D clippy::large-types-passed-by-value` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::large_types_passed_by_value)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui-toml/manual_let_else/manual_let_else.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ LL | | };
1111
= note: `-D clippy::manual-let-else` implied by `-D warnings`
1212
= help: to override `-D warnings` add `#[allow(clippy::manual_let_else)]`
1313

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

Diff for: src/tools/clippy/tests/ui-toml/max_suggested_slice_pattern_length/index_refutable_slice.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ help: and replace the index expressions here
1818
LL | println!("{}", slice_7);
1919
| ~~~~~~~
2020

21-
error: aborting due to previous error
21+
error: aborting due to 1 previous error
2222

Diff for: src/tools/clippy/tests/ui-toml/min_rust_version/min_rust_version.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | let _: Option<u64> = Some(&16).map(|b| *b);
77
= note: `-D clippy::map-clone` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::map_clone)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui-toml/result_large_err/result_large_err.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ LL | fn f2() -> Result<(), [u8; 512]> {
88
= note: `-D clippy::result-large-err` implied by `-D warnings`
99
= help: to override `-D warnings` add `#[allow(clippy::result_large_err)]`
1010

11-
error: aborting due to previous error
11+
error: aborting due to 1 previous error
1212

Diff for: src/tools/clippy/tests/ui-toml/semicolon_block/semicolon_inside_block.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ LL ~ unit_fn_block();
1515
LL ~ }
1616
|
1717

18-
error: aborting due to previous error
18+
error: aborting due to 1 previous error
1919

Diff for: src/tools/clippy/tests/ui-toml/struct_excessive_bools/test.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ LL | | }
1010
= note: `-D clippy::struct-excessive-bools` implied by `-D warnings`
1111
= help: to override `-D warnings` add `#[allow(clippy::struct_excessive_bools)]`
1212

13-
error: aborting due to previous error
13+
error: aborting due to 1 previous error
1414

Diff for: src/tools/clippy/tests/ui-toml/too_large_for_stack/boxed_local.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | fn f(x: Box<[u8; 500]>) {}
77
= note: `-D clippy::boxed-local` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::boxed_local)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui-toml/too_large_for_stack/useless_vec.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | let x = vec![0u8; 500];
77
= note: `-D clippy::useless-vec` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::useless_vec)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui-toml/too_many_arguments/too_many_arguments.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | fn too_many(p1: u8, p2: u8, p3: u8, p4: u8, p5: u8, p6: u8, p7: u8, p8: u8,
77
= note: `-D clippy::too-many-arguments` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::too_many_arguments)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui-toml/type_complexity/type_complexity.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | fn f2(_: (u8, (u8, (u8, (u8, (u8, (u8, u8))))))) {}
77
= note: `-D clippy::type-complexity` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::type_complexity)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui-toml/type_repetition_in_bounds/main.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ LL | T: Unpin + PartialEq,
88
= note: `-D clippy::type-repetition-in-bounds` implied by `-D warnings`
99
= help: to override `-D warnings` add `#[allow(clippy::type_repetition_in_bounds)]`
1010

11-
error: aborting due to previous error
11+
error: aborting due to 1 previous error
1212

Diff for: src/tools/clippy/tests/ui-toml/unnecessary_box_returns/unnecessary_box_returns.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ LL | fn f() -> Box<[u8; 64]> {
88
= note: `-D clippy::unnecessary-box-returns` implied by `-D warnings`
99
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_box_returns)]`
1010

11-
error: aborting due to previous error
11+
error: aborting due to 1 previous error
1212

Diff for: src/tools/clippy/tests/ui-toml/verbose_bit_mask/verbose_bit_mask.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | let _ = v & 0b111111 == 0;
77
= note: `-D clippy::verbose-bit-mask` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::verbose_bit_mask)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui-toml/wildcard_imports/wildcard_imports.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | use prelude::*;
77
= note: `-D clippy::wildcard-imports` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::wildcard_imports)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui/borrow_deref_ref_unfixable.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ help: if you would like to deref, try using `&**`
1515
LL | let x: &str = &**s;
1616
| ~~~~
1717

18-
error: aborting due to previous error
18+
error: aborting due to 1 previous error
1919

Diff for: src/tools/clippy/tests/ui/char_lit_as_u8.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ LL | let _ = '❤' as u8;
88
= note: `-D clippy::char-lit-as-u8` implied by `-D warnings`
99
= help: to override `-D warnings` add `#[allow(clippy::char_lit_as_u8)]`
1010

11-
error: aborting due to previous error
11+
error: aborting due to 1 previous error
1212

Diff for: src/tools/clippy/tests/ui/cognitive_complexity_attr_used.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ LL | fn kaboom() {
88
= note: `-D clippy::cognitive-complexity` implied by `-D warnings`
99
= help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`
1010

11-
error: aborting due to previous error
11+
error: aborting due to 1 previous error
1212

Diff for: src/tools/clippy/tests/ui/copy_iterator.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ LL | | }
1414
= note: `-D clippy::copy-iterator` implied by `-D warnings`
1515
= help: to override `-D warnings` add `#[allow(clippy::copy_iterator)]`
1616

17-
error: aborting due to previous error
17+
error: aborting due to 1 previous error
1818

Diff for: src/tools/clippy/tests/ui/crashes/ice-10148.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ LL | println!(with_span!(""something ""));
99
= note: `-D clippy::println-empty-string` implied by `-D warnings`
1010
= help: to override `-D warnings` add `#[allow(clippy::println_empty_string)]`
1111

12-
error: aborting due to previous error
12+
error: aborting due to 1 previous error
1313

Diff for: src/tools/clippy/tests/ui/crashes/ice-11422.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ LL - fn gen() -> impl PartialOrd + PartialEq + Debug {}
1212
LL + fn gen() -> impl PartialOrd + Debug {}
1313
|
1414

15-
error: aborting due to previous error
15+
error: aborting due to 1 previous error
1616

Diff for: src/tools/clippy/tests/ui/crashes/ice-2774.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ LL - pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
1212
LL + pub fn add_barfoos_to_foos(bars: &HashSet<&Bar>) {
1313
|
1414

15-
error: aborting due to previous error
15+
error: aborting due to 1 previous error
1616

Diff for: src/tools/clippy/tests/ui/crashes/ice-3717.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ help: ...and use generic constructor
1818
LL | let _: HashSet<usize> = HashSet::default();
1919
| ~~~~~~~~~~~~~~~~~~
2020

21-
error: aborting due to previous error
21+
error: aborting due to 1 previous error
2222

Diff for: src/tools/clippy/tests/ui/crashes/ice-3891.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ LL | 1x;
66
|
77
= help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.)
88

9-
error: aborting due to previous error
9+
error: aborting due to 1 previous error
1010

Diff for: src/tools/clippy/tests/ui/crashes/ice-5497.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ LL | const OOB: i32 = [1][1] + T::OOB;
66
|
77
= note: `#[deny(unconditional_panic)]` on by default
88

9-
error: aborting due to previous error
9+
error: aborting due to 1 previous error
1010

Diff for: src/tools/clippy/tests/ui/crashes/ice-5835.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | /// 位
77
= note: `-D clippy::tabs-in-doc-comments` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::tabs_in_doc_comments)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui/crashes/ice-5872.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ LL | let _ = vec![1, 2, 3].into_iter().collect::<Vec<_>>().is_empty();
77
= note: `-D clippy::needless-collect` implied by `-D warnings`
88
= help: to override `-D warnings` add `#[allow(clippy::needless_collect)]`
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

Diff for: src/tools/clippy/tests/ui/crashes/ice-6254.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ LL | FOO_REF_REF => {},
1111
= note: `-D indirect-structural-match` implied by `-D warnings`
1212
= help: to override `-D warnings` add `#[allow(indirect_structural_match)]`
1313

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

Diff for: src/tools/clippy/tests/ui/crashes/ice-6255.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ LL | define_other_core!();
99
|
1010
= note: this error originates in the macro `define_other_core` (in Nightly builds, run with -Z macro-backtrace for more info)
1111

12-
error: aborting due to previous error
12+
error: aborting due to 1 previous error
1313

Diff for: src/tools/clippy/tests/ui/crashes/ice-6256.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ LL | let f = |x: &dyn TT| x.func();
99
| | let's call the lifetime of this reference `'1`
1010
| `x` is a reference that is only valid in the closure body
1111

12-
error: aborting due to previous error
12+
error: aborting due to 1 previous error
1313

1414
For more information about this error, try `rustc --explain E0521`.

0 commit comments

Comments
 (0)