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`
This commit is contained in:
bors 2023-11-24 21:40:54 +00:00
commit 37b2813a7b
5757 changed files with 5766 additions and 5759 deletions

View File

@ -1465,7 +1465,7 @@ impl HandlerInner {
};
let errors = match self.deduplicated_err_count {
0 => Cow::from(""),
1 => Cow::from("aborting due to previous error"),
1 => Cow::from("aborting due to 1 previous error"),
count => Cow::from(format!("aborting due to {count} previous errors")),
};
if self.treat_err_as_bug() {

View File

@ -1927,7 +1927,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
/// 8 | foo::Foo {};
/// | ^^^^^^^^ missing `you_can_use_this_field`
///
/// error: aborting due to previous error
/// error: aborting due to 1 previous error
/// ```
fn report_missing_fields(
&self,
@ -2044,7 +2044,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
/// 8 | foo::Foo {};
/// | ^^^^^^^^
///
/// error: aborting due to previous error
/// error: aborting due to 1 previous error
/// ```
fn report_private_fields(
&self,

View File

@ -193,7 +193,7 @@
//! 27 | | )
//! | |_____- binding declared here but left uninitialized
//!
//! error: aborting due to previous error
//! error: aborting due to 1 previous error
//!
//! For more information about this error, try `rustc --explain E0381`.
//! ```

View File

@ -18,5 +18,5 @@ LL | #![deny(clippy::internal)]
= note: `#[deny(clippy::default_deprecation_reason)]` implied by `#[deny(clippy::internal)]`
= note: this error originates in the macro `declare_deprecated_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -17,5 +17,5 @@ LL | #![deny(clippy::internal)]
= note: `#[deny(clippy::default_lint)]` implied by `#[deny(clippy::internal)]`
= 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)
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -17,5 +17,5 @@ LL | #![deny(clippy::internal)]
= note: `#[deny(clippy::lint_without_lint_pass)]` implied by `#[deny(clippy::internal)]`
= note: this error originates in the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -11,5 +11,5 @@ LL | #![deny(clippy::internal)]
| ^^^^^^^^^^^^^^^^
= note: `#[deny(clippy::outer_expn_expn_data)]` implied by `#[deny(clippy::internal)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -4,5 +4,5 @@ error: error reading Clippy's configuration file: expected `.`, `=`
LL | fn this_is_obviously(not: a, toml: file) {
| ^
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -4,5 +4,5 @@ error: error reading Clippy's configuration file: invalid type: integer `42`, ex
LL | disallowed-names = 42
| ^^
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -20,5 +20,5 @@ LL | fn cognitive_complexity() {
= note: `-D clippy::cognitive-complexity` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`
error: aborting due to previous error; 2 warnings emitted
error: aborting due to 1 previous error; 2 warnings emitted

View File

@ -7,5 +7,5 @@ LL | let _ = 16777215;
= note: `-D clippy::decimal-literal-representation` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::decimal_literal_representation)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | let ducks = ["quack", "quack"];
= note: `-D clippy::disallowed-names` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::disallowed_names)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | let カウンタ = 10;
= note: `-D clippy::disallowed-script-idents` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::disallowed_script_idents)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -11,5 +11,5 @@ help: try
LL | /// `TestItemThingyOfCoolness` might sound cool but is not on the list and should be linted.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -4,5 +4,5 @@ error: error reading Clippy's configuration file: duplicate key `cognitive-compl
LL | cognitive-complexity-threshold = 4
| ^
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -10,5 +10,5 @@ warning: error reading Clippy's configuration file: deprecated field `cyclomatic
LL | cyclomatic-complexity-threshold = 3
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error; 1 warning emitted
error: aborting due to 1 previous error; 1 warning emitted

View File

@ -10,5 +10,5 @@ warning: error reading Clippy's configuration file: deprecated field `cyclomatic
LL | cyclomatic-complexity-threshold = 3
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error; 1 warning emitted
error: aborting due to 1 previous error; 1 warning emitted

View File

@ -17,5 +17,5 @@ help: consider boxing the large fields to reduce the total size of the enum
LL | B(Box<[u8; 501]>),
| ~~~~~~~~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -8,5 +8,5 @@ LL | fn g(_: bool, _: bool) {}
= note: `-D clippy::fn-params-excessive-bools` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::fn_params_excessive_bools)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -12,5 +12,5 @@ LL | if x.get() {
= note: `-D clippy::ifs-same-cond` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::ifs_same_cond)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -11,5 +11,5 @@ help: add a type parameter
LL | fn t<{ /* Generic name */ }: Trait>(_: impl Trait);
| +++++++++++++++++++++++++++++++
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -4,5 +4,5 @@ error: error reading Clippy's configuration file: not a valid Rust version
LL | msrv = "invalid.version"
| ^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | should_warn().await;
= note: `-D clippy::large-futures` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::large_futures)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -11,5 +11,5 @@ LL | | }
= note: `-D clippy::large-stack-frames` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::large_stack_frames)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | fn f2(_v: [u8; 513]) {}
= note: `-D clippy::large-types-passed-by-value` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::large_types_passed_by_value)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -11,5 +11,5 @@ LL | | };
= note: `-D clippy::manual-let-else` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::manual_let_else)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -18,5 +18,5 @@ help: and replace the index expressions here
LL | println!("{}", slice_7);
| ~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | let _: Option<u64> = Some(&16).map(|b| *b);
= note: `-D clippy::map-clone` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::map_clone)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -8,5 +8,5 @@ LL | fn f2() -> Result<(), [u8; 512]> {
= note: `-D clippy::result-large-err` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::result_large_err)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -15,5 +15,5 @@ LL ~ unit_fn_block();
LL ~ }
|
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -10,5 +10,5 @@ LL | | }
= note: `-D clippy::struct-excessive-bools` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::struct_excessive_bools)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | fn f(x: Box<[u8; 500]>) {}
= note: `-D clippy::boxed-local` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::boxed_local)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | let x = vec![0u8; 500];
= note: `-D clippy::useless-vec` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::useless_vec)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | fn too_many(p1: u8, p2: u8, p3: u8, p4: u8, p5: u8, p6: u8, p7: u8, p8: u8,
= note: `-D clippy::too-many-arguments` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::too_many_arguments)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | fn f2(_: (u8, (u8, (u8, (u8, (u8, (u8, u8))))))) {}
= note: `-D clippy::type-complexity` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::type_complexity)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -8,5 +8,5 @@ LL | T: Unpin + PartialEq,
= note: `-D clippy::type-repetition-in-bounds` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::type_repetition_in_bounds)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -8,5 +8,5 @@ LL | fn f() -> Box<[u8; 64]> {
= note: `-D clippy::unnecessary-box-returns` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_box_returns)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | let _ = v & 0b111111 == 0;
= note: `-D clippy::verbose-bit-mask` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::verbose_bit_mask)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | use prelude::*;
= note: `-D clippy::wildcard-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::wildcard_imports)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -15,5 +15,5 @@ help: if you would like to deref, try using `&**`
LL | let x: &str = &**s;
| ~~~~
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -8,5 +8,5 @@ LL | let _ = '❤' as u8;
= note: `-D clippy::char-lit-as-u8` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::char_lit_as_u8)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -8,5 +8,5 @@ LL | fn kaboom() {
= note: `-D clippy::cognitive-complexity` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -14,5 +14,5 @@ LL | | }
= note: `-D clippy::copy-iterator` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::copy_iterator)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -9,5 +9,5 @@ LL | println!(with_span!(""something ""));
= note: `-D clippy::println-empty-string` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::println_empty_string)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -12,5 +12,5 @@ LL - fn gen() -> impl PartialOrd + PartialEq + Debug {}
LL + fn gen() -> impl PartialOrd + Debug {}
|
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -12,5 +12,5 @@ LL - pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
LL + pub fn add_barfoos_to_foos(bars: &HashSet<&Bar>) {
|
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -18,5 +18,5 @@ help: ...and use generic constructor
LL | let _: HashSet<usize> = HashSet::default();
| ~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -6,5 +6,5 @@ LL | 1x;
|
= help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.)
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -6,5 +6,5 @@ LL | const OOB: i32 = [1][1] + T::OOB;
|
= note: `#[deny(unconditional_panic)]` on by default
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | /// 位
= note: `-D clippy::tabs-in-doc-comments` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::tabs_in_doc_comments)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | let _ = vec![1, 2, 3].into_iter().collect::<Vec<_>>().is_empty();
= note: `-D clippy::needless-collect` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_collect)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -11,5 +11,5 @@ LL | FOO_REF_REF => {},
= note: `-D indirect-structural-match` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(indirect_structural_match)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -9,5 +9,5 @@ LL | define_other_core!();
|
= note: this error originates in the macro `define_other_core` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -9,6 +9,6 @@ LL | let f = |x: &dyn TT| x.func();
| | let's call the lifetime of this reference `'1`
| `x` is a reference that is only valid in the closure body
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0521`.

View File

@ -7,5 +7,5 @@ LL | if let Ok(_) = Ok::<_, ()>(A::<String>::default()) {}
= note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::redundant_pattern_matching)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -8,5 +8,5 @@ LL | unsafe { 0 };
= note: `-D clippy::undocumented-unsafe-blocks` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::undocumented_unsafe_blocks)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -13,5 +13,5 @@ LL | | }
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::enum_variant_names)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | let _ = s[1..].splitn(2, '.').next()?;
= note: `-D clippy::needless-splitn` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_splitn)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | let _: () = FN();
= note: `-D clippy::let-unit-value` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::let_unit_value)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | things.iter().find(|p| is_thing_ready(p)).is_some()
= note: `-D clippy::search-is-some` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::search_is_some)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -9,5 +9,5 @@ LL | const UNINIT: core::mem::MaybeUninit<core::cell::Cell<&'static ()>> = core:
= note: `-D clippy::declare-interior-mutable-const` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::declare_interior_mutable_const)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -4,5 +4,5 @@ error: malformed `path` attribute input
LL | #[path = foo!()]
| ^^^^^^^^^^^^^^^^ help: must be of the form: `#[path = "file"]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -15,5 +15,5 @@ LL - fn baz<'a>(&'a self) -> impl Foo + 'a {
LL + fn baz(&self) -> impl Foo + '_ {
|
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -12,5 +12,5 @@ LL | struct Foo<'a>(&'a [(); 100]);
= note: `-D clippy::needless-pass-by-value` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_pass_by_value)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | println!("{}", crate::unhygienic::MESSAGE);
= note: `-D clippy::crate-in-macro-def` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::crate_in_macro_def)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -11,5 +11,5 @@ LL | | b = a;
= note: `-D clippy::almost-swapped` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::almost_swapped)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -8,5 +8,5 @@ LL | main();
= note: `-D clippy::main-recursion` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::main_recursion)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -8,5 +8,5 @@ LL | pub fn as_ref(self) -> &'static str {
= note: `-D clippy::wrong-self-convention` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::wrong_self_convention)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | /// Calls ['bar'] uselessly
= note: `-D clippy::doc-link-with-quotes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::doc_link_with_quotes)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | --x;
= note: `-D clippy::double-neg` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::double_neg)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | fn join_the_dark_side(darth: i32, _darth: i32) {}
= note: `-D clippy::duplicate-underscore-argument` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::duplicate_underscore_argument)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -8,5 +8,5 @@ LL | enum Empty {}
= note: `-D clippy::empty-enum` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::empty_enum)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -17,5 +17,5 @@ LL + foo();
LL + }
|
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | std::process::exit(4);
= note: `-D clippy::exit` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::exit)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | std::process::exit(3);
= note: `-D clippy::exit` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::exit)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -14,5 +14,5 @@ LL | | .next();
= note: `-D clippy::filter-map-next` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::filter_map_next)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -12,5 +12,5 @@ help: make this a doc comment by removing one `/`
LL + /// borked doc comment on the first line. doesn't combust!
|
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -13,5 +13,5 @@ LL | | }
= note: `-D clippy::too-many-lines` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::too_many_lines)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -18,5 +18,5 @@ help: and replace the index expressions here
LL | println!("{}", slice_0);
| ~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -14,5 +14,5 @@ LL | | });
= note: `-D clippy::inspect-for-each` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::inspect_for_each)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -4,5 +4,5 @@ error: expected `,`, found `a`
LL | println!("{}" a);
| ^ expected `,`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -10,5 +10,5 @@ note: the lint level is defined here
LL | #![deny(clippy::while_let_on_iterator)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -10,5 +10,5 @@ LL | fn in_submodule() {}
= note: `-D clippy::items-after-test-module` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::items_after_test_module)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -16,5 +16,5 @@ LL | macro_rules! should_lint {
= help: to override `-D warnings` add `#[allow(clippy::items_after_test_module)]`
= help: move the items to before the test module was defined
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -4,6 +4,6 @@ error[E0423]: expected value, found macro `vec`
LL | for _ in vec.iter().next() {}
| ^^^ not a value
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0423`.

View File

@ -22,5 +22,5 @@ LL | _C,
= note: `-D clippy::manual-non-exhaustive` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::manual_non_exhaustive)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -8,5 +8,5 @@ LL | println!("{:?}", x.map_err(|_| Errors::Ignored));
= note: `-D clippy::map-err-ignore` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::map_err_ignore)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -8,5 +8,5 @@ LL | inline!(std::mem::replace($s, Default::default()));
= help: to override `-D warnings` add `#[allow(clippy::mem_replace_with_default)]`
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | let _ = v.iter().filter(|&x| *x < 0).next();
= note: `-D clippy::filter-next` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::filter_next)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -12,5 +12,5 @@ LL | let iter = (0..10);
= note: `-D clippy::filter-next` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::filter_next)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -11,5 +11,5 @@ LL | | fn main() {}
= note: `-D clippy::missing-docs-in-private-items` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::missing_docs_in_private_items)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | while b.load(Ordering::Acquire) {}
= note: `-D clippy::missing-spin-loop` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::missing_spin_loop)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | let mut value = value_mutex.lock().unwrap();
= note: `-D clippy::mut-mutex-lock` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::mut_mutex_lock)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | fn call_with_mut_self(self: &mut Self) {}
= note: `-D clippy::needless-arbitrary-self-type` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_arbitrary_self_type)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | if y & !x {
= note: `-D clippy::needless-bitwise-bool` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_bitwise_bool)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -9,5 +9,5 @@ LL | | }
= note: `-D clippy::needless-else` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_else)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -29,5 +29,5 @@ help: ...and replace `return` with `continue`
LL | continue;
| ~~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | x.as_ref().take();
= note: `-D clippy::needless-option-take` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_option_take)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | return Err(())?;
= note: `-D clippy::needless-return-with-question-mark` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_return_with_question_mark)]`
error: aborting due to previous error
error: aborting due to 1 previous error

View File

@ -7,5 +7,5 @@ LL | S { a: 1, b: 1, ..base };
= note: `-D clippy::needless-update` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_update)]`
error: aborting due to previous error
error: aborting due to 1 previous error

Some files were not shown because too many files have changed in this diff Show More