diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index a49284eb55a4..86e77d404ff5 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -21,7 +21,7 @@ use std::io::prelude::*; use std::io; use std::rc::Rc; use term; -use std::collections::HashMap; +use std::collections::{HashMap, HashSet}; use std::cmp::min; use unicode_width; @@ -107,6 +107,7 @@ pub struct EmitterWriter { cm: Option>, short_message: bool, teach: bool, + error_codes: HashSet, } struct FileWithAnnotatedLines { @@ -115,6 +116,33 @@ struct FileWithAnnotatedLines { multiline_depth: usize, } +impl Drop for EmitterWriter { + fn drop(&mut self) { + if !self.short_message && !self.error_codes.is_empty() { + let mut error_codes = self.error_codes.clone().into_iter().collect::>(); + error_codes.sort(); + if error_codes.len() > 1 { + let limit = if error_codes.len() > 9 { 9 } else { error_codes.len() }; + writeln!(self.dst, + "You've got a few errors: {}{}", + error_codes[..limit].join(", "), + if error_codes.len() > 9 { "..." } else { "" } + ).expect("failed to give tips..."); + writeln!(self.dst, + "If you want more information on an error, try using \ + \"rustc --explain {}\"", + &error_codes[0]).expect("failed to give tips..."); + } else { + writeln!(self.dst, + "If you want more information on this error, try using \ + \"rustc --explain {}\"", + &error_codes[0]).expect("failed to give tips..."); + } + self.dst.flush().expect("failed to emit errors"); + } + } +} + impl EmitterWriter { pub fn stderr(color_config: ColorConfig, code_map: Option>, @@ -128,6 +156,7 @@ impl EmitterWriter { cm: code_map, short_message, teach, + error_codes: HashSet::new(), } } else { EmitterWriter { @@ -135,6 +164,7 @@ impl EmitterWriter { cm: code_map, short_message, teach, + error_codes: HashSet::new(), } } } @@ -149,6 +179,7 @@ impl EmitterWriter { cm: code_map, short_message, teach, + error_codes: HashSet::new(), } } @@ -975,12 +1006,14 @@ impl EmitterWriter { if primary_span != &&DUMMY_SP { (cm.lookup_char_pos(primary_span.lo()), cm) } else { - emit_to_destination(&buffer.render(), level, &mut self.dst, self.short_message)?; + emit_to_destination(&buffer.render(), level, &mut self.dst, self.short_message, + &mut self.error_codes)?; return Ok(()); } } else { // If we don't have span information, emit and exit - emit_to_destination(&buffer.render(), level, &mut self.dst, self.short_message)?; + emit_to_destination(&buffer.render(), level, &mut self.dst, self.short_message, + &mut self.error_codes)?; return Ok(()); }; if let Ok(pos) = @@ -1153,7 +1186,8 @@ impl EmitterWriter { } // final step: take our styled buffer, render it, then output it - emit_to_destination(&buffer.render(), level, &mut self.dst, self.short_message)?; + emit_to_destination(&buffer.render(), level, &mut self.dst, self.short_message, + &mut self.error_codes)?; Ok(()) @@ -1241,7 +1275,8 @@ impl EmitterWriter { let msg = format!("and {} other candidates", suggestions.len() - MAX_SUGGESTIONS); buffer.puts(row_num, 0, &msg, Style::NoStyle); } - emit_to_destination(&buffer.render(), level, &mut self.dst, self.short_message)?; + emit_to_destination(&buffer.render(), level, &mut self.dst, self.short_message, + &mut self.error_codes)?; } Ok(()) } @@ -1269,7 +1304,7 @@ impl EmitterWriter { draw_col_separator_no_space(&mut buffer, 0, max_line_num_len + 1); } match emit_to_destination(&buffer.render(), level, &mut self.dst, - self.short_message) { + self.short_message, &mut self.error_codes) { Ok(()) => (), Err(e) => panic!("failed to emit error: {}", e) } @@ -1362,7 +1397,8 @@ fn overlaps(a1: &Annotation, a2: &Annotation, padding: usize) -> bool { fn emit_to_destination(rendered_buffer: &Vec>, lvl: &Level, dst: &mut Destination, - short_message: bool) + short_message: bool, + error_codes: &mut HashSet) -> io::Result<()> { use lock; @@ -1383,6 +1419,9 @@ fn emit_to_destination(rendered_buffer: &Vec>, for part in line { dst.apply_style(lvl.clone(), part.style)?; write!(dst, "{}", part.text)?; + if !short_message && part.text.len() == 12 && part.text.starts_with("error[E") { + error_codes.insert(part.text[6..11].to_owned()); + } dst.reset_attrs()?; } if !short_message { diff --git a/src/test/ui-fulldeps/lint-plugin-forbid-attrs.stderr b/src/test/ui-fulldeps/lint-plugin-forbid-attrs.stderr index 459be9db578a..b9d166589b0e 100644 --- a/src/test/ui-fulldeps/lint-plugin-forbid-attrs.stderr +++ b/src/test/ui-fulldeps/lint-plugin-forbid-attrs.stderr @@ -21,3 +21,4 @@ error[E0453]: allow(test_lint) overruled by outer forbid(test_lint) error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0453" diff --git a/src/test/ui-fulldeps/proc-macro/signature.stderr b/src/test/ui-fulldeps/proc-macro/signature.stderr index 2beb0aac8626..b89f67d90698 100644 --- a/src/test/ui-fulldeps/proc-macro/signature.stderr +++ b/src/test/ui-fulldeps/proc-macro/signature.stderr @@ -12,3 +12,4 @@ error[E0308]: mismatched types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/anonymous-higher-ranked-lifetime.stderr b/src/test/ui/anonymous-higher-ranked-lifetime.stderr index 4bd3b684b7ba..96ae2afe220f 100644 --- a/src/test/ui/anonymous-higher-ranked-lifetime.stderr +++ b/src/test/ui/anonymous-higher-ranked-lifetime.stderr @@ -154,3 +154,4 @@ note: required by `h2` error: aborting due to 11 previous errors +If you want more information on this error, try using "rustc --explain E0631" diff --git a/src/test/ui/arbitrary-self-types-not-object-safe.stderr b/src/test/ui/arbitrary-self-types-not-object-safe.stderr index f258488ee2fb..fa8b82b8a9bf 100644 --- a/src/test/ui/arbitrary-self-types-not-object-safe.stderr +++ b/src/test/ui/arbitrary-self-types-not-object-safe.stderr @@ -17,3 +17,4 @@ error[E0038]: the trait `Foo` cannot be made into an object error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0038" diff --git a/src/test/ui/asm-out-assign-imm.stderr b/src/test/ui/asm-out-assign-imm.stderr index cf5486fec5f9..90104e649720 100644 --- a/src/test/ui/asm-out-assign-imm.stderr +++ b/src/test/ui/asm-out-assign-imm.stderr @@ -9,3 +9,4 @@ error[E0384]: cannot assign twice to immutable variable `x` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0384" diff --git a/src/test/ui/associated-const-impl-wrong-lifetime.stderr b/src/test/ui/associated-const-impl-wrong-lifetime.stderr index ab0e1003a9e1..6ec274ac4f9c 100644 --- a/src/test/ui/associated-const-impl-wrong-lifetime.stderr +++ b/src/test/ui/associated-const-impl-wrong-lifetime.stderr @@ -15,3 +15,4 @@ note: the lifetime 'a as defined on the impl at 17:1... error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/associated-const-impl-wrong-type.stderr b/src/test/ui/associated-const-impl-wrong-type.stderr index a2afe905cb50..e741aa742c17 100644 --- a/src/test/ui/associated-const-impl-wrong-type.stderr +++ b/src/test/ui/associated-const-impl-wrong-type.stderr @@ -9,3 +9,4 @@ error[E0326]: implemented const `BAR` has an incompatible type for trait error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0326" diff --git a/src/test/ui/associated-type-projection-from-multiple-supertraits.stderr b/src/test/ui/associated-type-projection-from-multiple-supertraits.stderr index 6215c1dc089d..b924fbaeb39f 100644 --- a/src/test/ui/associated-type-projection-from-multiple-supertraits.stderr +++ b/src/test/ui/associated-type-projection-from-multiple-supertraits.stderr @@ -42,3 +42,5 @@ error[E0221]: ambiguous associated type `Color` in bounds of `C` error: aborting due to 4 previous errors +You've got a few errors: E0191, E0221 +If you want more information on an error, try using "rustc --explain E0191" diff --git a/src/test/ui/associated-types-ICE-when-projecting-out-of-err.stderr b/src/test/ui/associated-types-ICE-when-projecting-out-of-err.stderr index 1a49cc7a283b..b18199611277 100644 --- a/src/test/ui/associated-types-ICE-when-projecting-out-of-err.stderr +++ b/src/test/ui/associated-types-ICE-when-projecting-out-of-err.stderr @@ -6,3 +6,4 @@ error[E0277]: the trait bound `(): Add` is not satisfied error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/associated-types-in-ambiguous-context.stderr b/src/test/ui/associated-types-in-ambiguous-context.stderr index b0196234bda0..33b83b787ad0 100644 --- a/src/test/ui/associated-types-in-ambiguous-context.stderr +++ b/src/test/ui/associated-types-in-ambiguous-context.stderr @@ -24,3 +24,4 @@ error[E0223]: ambiguous associated type error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0223" diff --git a/src/test/ui/attr-usage-repr.stderr b/src/test/ui/attr-usage-repr.stderr index b9c012630e9f..6ab0e0029c99 100644 --- a/src/test/ui/attr-usage-repr.stderr +++ b/src/test/ui/attr-usage-repr.stderr @@ -40,3 +40,4 @@ error[E0517]: attribute should be applied to struct error: aborting due to 5 previous errors +If you want more information on this error, try using "rustc --explain E0517" diff --git a/src/test/ui/augmented-assignments.stderr b/src/test/ui/augmented-assignments.stderr index 0367270d1667..d3d3e0b6dd3d 100644 --- a/src/test/ui/augmented-assignments.stderr +++ b/src/test/ui/augmented-assignments.stderr @@ -20,3 +20,5 @@ error[E0382]: use of moved value: `x` error: aborting due to 2 previous errors +You've got a few errors: E0382, E0596 +If you want more information on an error, try using "rustc --explain E0382" diff --git a/src/test/ui/binary-op-on-double-ref.stderr b/src/test/ui/binary-op-on-double-ref.stderr index 4a2490bac91a..64897fadaa63 100644 --- a/src/test/ui/binary-op-on-double-ref.stderr +++ b/src/test/ui/binary-op-on-double-ref.stderr @@ -9,3 +9,4 @@ error[E0369]: binary operation `%` cannot be applied to type `&&{integer}` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0369" diff --git a/src/test/ui/blind-item-item-shadow.stderr b/src/test/ui/blind-item-item-shadow.stderr index d3588be26697..227e157cf9fa 100644 --- a/src/test/ui/blind-item-item-shadow.stderr +++ b/src/test/ui/blind-item-item-shadow.stderr @@ -15,3 +15,4 @@ help: You can use `as` to change the binding name of the import error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0255" diff --git a/src/test/ui/block-result/block-must-not-have-result-do.stderr b/src/test/ui/block-result/block-must-not-have-result-do.stderr index d4024f41c26f..8c8e30a7262a 100644 --- a/src/test/ui/block-result/block-must-not-have-result-do.stderr +++ b/src/test/ui/block-result/block-must-not-have-result-do.stderr @@ -9,3 +9,4 @@ error[E0308]: mismatched types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/block-result/block-must-not-have-result-res.stderr b/src/test/ui/block-result/block-must-not-have-result-res.stderr index 20c7dc416f3b..b64a0c62a1ab 100644 --- a/src/test/ui/block-result/block-must-not-have-result-res.stderr +++ b/src/test/ui/block-result/block-must-not-have-result-res.stderr @@ -11,3 +11,4 @@ error[E0308]: mismatched types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/block-result/block-must-not-have-result-while.stderr b/src/test/ui/block-result/block-must-not-have-result-while.stderr index 888a64c1bb1a..4b0c4bb776c0 100644 --- a/src/test/ui/block-result/block-must-not-have-result-while.stderr +++ b/src/test/ui/block-result/block-must-not-have-result-while.stderr @@ -9,3 +9,4 @@ error[E0308]: mismatched types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/block-result/consider-removing-last-semi.stderr b/src/test/ui/block-result/consider-removing-last-semi.stderr index 453f3879f4ba..3e434a0ca3ff 100644 --- a/src/test/ui/block-result/consider-removing-last-semi.stderr +++ b/src/test/ui/block-result/consider-removing-last-semi.stderr @@ -28,3 +28,4 @@ error[E0308]: mismatched types error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/block-result/issue-11714.stderr b/src/test/ui/block-result/issue-11714.stderr index 946d18048944..3b6fd3365830 100644 --- a/src/test/ui/block-result/issue-11714.stderr +++ b/src/test/ui/block-result/issue-11714.stderr @@ -15,3 +15,4 @@ error[E0308]: mismatched types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/block-result/issue-13428.stderr b/src/test/ui/block-result/issue-13428.stderr index 22bbb2aadf61..fbf3c6bd40a1 100644 --- a/src/test/ui/block-result/issue-13428.stderr +++ b/src/test/ui/block-result/issue-13428.stderr @@ -31,3 +31,4 @@ error[E0308]: mismatched types error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/block-result/issue-13624.stderr b/src/test/ui/block-result/issue-13624.stderr index cd8c28cd2cfa..e6e1cfdc3ab1 100644 --- a/src/test/ui/block-result/issue-13624.stderr +++ b/src/test/ui/block-result/issue-13624.stderr @@ -20,3 +20,4 @@ error[E0308]: mismatched types error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/block-result/issue-20862.stderr b/src/test/ui/block-result/issue-20862.stderr index 3b4f514de7dc..f2d98a1bb74e 100644 --- a/src/test/ui/block-result/issue-20862.stderr +++ b/src/test/ui/block-result/issue-20862.stderr @@ -17,3 +17,5 @@ error[E0618]: expected function, found `()` error: aborting due to 2 previous errors +You've got a few errors: E0308, E0618 +If you want more information on an error, try using "rustc --explain E0308" diff --git a/src/test/ui/block-result/issue-22645.stderr b/src/test/ui/block-result/issue-22645.stderr index c6113ae0c9f6..57e500dba825 100644 --- a/src/test/ui/block-result/issue-22645.stderr +++ b/src/test/ui/block-result/issue-22645.stderr @@ -22,3 +22,5 @@ error[E0308]: mismatched types error: aborting due to 2 previous errors +You've got a few errors: E0277, E0308 +If you want more information on an error, try using "rustc --explain E0277" diff --git a/src/test/ui/block-result/issue-3563.stderr b/src/test/ui/block-result/issue-3563.stderr index c3d5f21b0a51..6b9fef6cba6e 100644 --- a/src/test/ui/block-result/issue-3563.stderr +++ b/src/test/ui/block-result/issue-3563.stderr @@ -8,3 +8,4 @@ error[E0599]: no method named `b` found for type `&Self` in the current scope error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/block-result/issue-5500.stderr b/src/test/ui/block-result/issue-5500.stderr index 29dbd5a8cf59..bbe0e883cc71 100644 --- a/src/test/ui/block-result/issue-5500.stderr +++ b/src/test/ui/block-result/issue-5500.stderr @@ -11,3 +11,4 @@ error[E0308]: mismatched types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/block-result/unexpected-return-on-unit.stderr b/src/test/ui/block-result/unexpected-return-on-unit.stderr index 3881bb462580..39d55aced3a2 100644 --- a/src/test/ui/block-result/unexpected-return-on-unit.stderr +++ b/src/test/ui/block-result/unexpected-return-on-unit.stderr @@ -17,3 +17,4 @@ help: try adding a return type error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/bogus-tag.stderr b/src/test/ui/bogus-tag.stderr index 49dedcd07427..d57c5cbde5ff 100644 --- a/src/test/ui/bogus-tag.stderr +++ b/src/test/ui/bogus-tag.stderr @@ -9,3 +9,4 @@ error[E0599]: no variant named `hsl` found for type `color` in the current scope error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/borrowck/borrowck-box-insensitivity.stderr b/src/test/ui/borrowck/borrowck-box-insensitivity.stderr index 88e8490843d3..1df7be00a787 100644 --- a/src/test/ui/borrowck/borrowck-box-insensitivity.stderr +++ b/src/test/ui/borrowck/borrowck-box-insensitivity.stderr @@ -161,3 +161,5 @@ error[E0502]: cannot borrow `a.y` as mutable because `a.x.x` is also borrowed as error: aborting due to 16 previous errors +You've got a few errors: E0382, E0502, E0503, E0505 +If you want more information on an error, try using "rustc --explain E0382" diff --git a/src/test/ui/borrowck/borrowck-closures-two-mut.stderr b/src/test/ui/borrowck/borrowck-closures-two-mut.stderr index 0ec744f4a078..a9d585e332e3 100644 --- a/src/test/ui/borrowck/borrowck-closures-two-mut.stderr +++ b/src/test/ui/borrowck/borrowck-closures-two-mut.stderr @@ -150,3 +150,4 @@ error[E0499]: cannot borrow `x` as mutable more than once at a time (Mir) error: aborting due to 10 previous errors +If you want more information on this error, try using "rustc --explain E0499" diff --git a/src/test/ui/borrowck/borrowck-escaping-closure-error-1.stderr b/src/test/ui/borrowck/borrowck-escaping-closure-error-1.stderr index cc0bd15c489e..9dca165c0222 100644 --- a/src/test/ui/borrowck/borrowck-escaping-closure-error-1.stderr +++ b/src/test/ui/borrowck/borrowck-escaping-closure-error-1.stderr @@ -12,3 +12,4 @@ help: to force the closure to take ownership of `books` (and any other reference error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0373" diff --git a/src/test/ui/borrowck/borrowck-escaping-closure-error-2.stderr b/src/test/ui/borrowck/borrowck-escaping-closure-error-2.stderr index f8963c175c8a..6becf90214f1 100644 --- a/src/test/ui/borrowck/borrowck-escaping-closure-error-2.stderr +++ b/src/test/ui/borrowck/borrowck-escaping-closure-error-2.stderr @@ -12,3 +12,4 @@ help: to force the closure to take ownership of `books` (and any other reference error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0373" diff --git a/src/test/ui/borrowck/borrowck-in-static.stderr b/src/test/ui/borrowck/borrowck-in-static.stderr index 6e47c46cdec9..cafc608d794c 100644 --- a/src/test/ui/borrowck/borrowck-in-static.stderr +++ b/src/test/ui/borrowck/borrowck-in-static.stderr @@ -8,3 +8,4 @@ error[E0507]: cannot move out of captured outer variable in an `Fn` closure error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0507" diff --git a/src/test/ui/borrowck/borrowck-move-error-with-note.stderr b/src/test/ui/borrowck/borrowck-move-error-with-note.stderr index c16c80345d51..b4edd80bfe74 100644 --- a/src/test/ui/borrowck/borrowck-move-error-with-note.stderr +++ b/src/test/ui/borrowck/borrowck-move-error-with-note.stderr @@ -34,3 +34,5 @@ error[E0507]: cannot move out of borrowed content error: aborting due to 3 previous errors +You've got a few errors: E0507, E0509 +If you want more information on an error, try using "rustc --explain E0507" diff --git a/src/test/ui/borrowck/borrowck-move-out-of-vec-tail.stderr b/src/test/ui/borrowck/borrowck-move-out-of-vec-tail.stderr index f99bbb20ccdf..2199c3ca45c0 100644 --- a/src/test/ui/borrowck/borrowck-move-out-of-vec-tail.stderr +++ b/src/test/ui/borrowck/borrowck-move-out-of-vec-tail.stderr @@ -15,3 +15,4 @@ error[E0508]: cannot move out of type `[Foo]`, a non-copy slice error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0508" diff --git a/src/test/ui/borrowck/borrowck-reinit.stderr b/src/test/ui/borrowck/borrowck-reinit.stderr index f36ed0505152..4f212e7d79e3 100644 --- a/src/test/ui/borrowck/borrowck-reinit.stderr +++ b/src/test/ui/borrowck/borrowck-reinit.stderr @@ -20,3 +20,4 @@ error[E0382]: use of moved value: `x` (Mir) error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0382" diff --git a/src/test/ui/borrowck/borrowck-report-with-custom-diagnostic.stderr b/src/test/ui/borrowck/borrowck-report-with-custom-diagnostic.stderr index fb6917141fc9..27e34fde2440 100644 --- a/src/test/ui/borrowck/borrowck-report-with-custom-diagnostic.stderr +++ b/src/test/ui/borrowck/borrowck-report-with-custom-diagnostic.stderr @@ -36,3 +36,5 @@ error[E0499]: cannot borrow `x` as mutable more than once at a time error: aborting due to 3 previous errors +You've got a few errors: E0499, E0502 +If you want more information on an error, try using "rustc --explain E0499" diff --git a/src/test/ui/borrowck/borrowck-vec-pattern-nesting.stderr b/src/test/ui/borrowck/borrowck-vec-pattern-nesting.stderr index 899ffb446b96..2c3509e99023 100644 --- a/src/test/ui/borrowck/borrowck-vec-pattern-nesting.stderr +++ b/src/test/ui/borrowck/borrowck-vec-pattern-nesting.stderr @@ -80,3 +80,5 @@ error[E0508]: cannot move out of type `[std::boxed::Box]`, a non-copy sli error: aborting due to 8 previous errors +You've got a few errors: E0506, E0508 +If you want more information on an error, try using "rustc --explain E0506" diff --git a/src/test/ui/borrowck/immutable-arg.stderr b/src/test/ui/borrowck/immutable-arg.stderr index 40e1878f7321..68aeae30e717 100644 --- a/src/test/ui/borrowck/immutable-arg.stderr +++ b/src/test/ui/borrowck/immutable-arg.stderr @@ -16,3 +16,4 @@ error[E0384]: cannot assign to immutable argument `_x` (Mir) error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0384" diff --git a/src/test/ui/borrowck/issue-41962.stderr b/src/test/ui/borrowck/issue-41962.stderr index 13305fd96562..377171510c98 100644 --- a/src/test/ui/borrowck/issue-41962.stderr +++ b/src/test/ui/borrowck/issue-41962.stderr @@ -54,3 +54,4 @@ error[E0382]: use of moved value: `maybe.0` (Mir) error: aborting due to 5 previous errors +If you want more information on this error, try using "rustc --explain E0382" diff --git a/src/test/ui/borrowck/mut-borrow-in-loop.stderr b/src/test/ui/borrowck/mut-borrow-in-loop.stderr index 2b614561d826..755765a0383f 100644 --- a/src/test/ui/borrowck/mut-borrow-in-loop.stderr +++ b/src/test/ui/borrowck/mut-borrow-in-loop.stderr @@ -27,3 +27,4 @@ error[E0499]: cannot borrow `*arg` as mutable more than once at a time error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0499" diff --git a/src/test/ui/borrowck/mut-borrow-outside-loop.stderr b/src/test/ui/borrowck/mut-borrow-outside-loop.stderr index 716edd21982e..2064129ab749 100644 --- a/src/test/ui/borrowck/mut-borrow-outside-loop.stderr +++ b/src/test/ui/borrowck/mut-borrow-outside-loop.stderr @@ -21,3 +21,4 @@ error[E0499]: cannot borrow `inner_void` as mutable more than once at a time error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0499" diff --git a/src/test/ui/borrowck/regions-bound-missing-bound-in-impl.stderr b/src/test/ui/borrowck/regions-bound-missing-bound-in-impl.stderr index e8323247af99..435640769dd5 100644 --- a/src/test/ui/borrowck/regions-bound-missing-bound-in-impl.stderr +++ b/src/test/ui/borrowck/regions-bound-missing-bound-in-impl.stderr @@ -46,3 +46,5 @@ error[E0276]: impl has stricter requirements than trait error: aborting due to 4 previous errors +You've got a few errors: E0195, E0276, E0308 +If you want more information on an error, try using "rustc --explain E0195" diff --git a/src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.stderr b/src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.stderr index 6aa0846f53e2..69f4742424b5 100644 --- a/src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.stderr +++ b/src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.stderr @@ -9,3 +9,4 @@ error[E0507]: cannot move out of captured outer variable in an `Fn` closure error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0507" diff --git a/src/test/ui/cast-as-bool.stderr b/src/test/ui/cast-as-bool.stderr index 346ebf07fc3f..cdf4d30ee4c3 100644 --- a/src/test/ui/cast-as-bool.stderr +++ b/src/test/ui/cast-as-bool.stderr @@ -8,3 +8,4 @@ error[E0054]: cannot cast as `bool` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0054" diff --git a/src/test/ui/cast-errors-issue-43825.stderr b/src/test/ui/cast-errors-issue-43825.stderr index db0a33e927fa..0f0a5054b515 100644 --- a/src/test/ui/cast-errors-issue-43825.stderr +++ b/src/test/ui/cast-errors-issue-43825.stderr @@ -6,3 +6,4 @@ error[E0425]: cannot find value `error` in this scope error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0425" diff --git a/src/test/ui/cast-rfc0401-2.stderr b/src/test/ui/cast-rfc0401-2.stderr index 1febe6a618fd..2262ae8338b0 100644 --- a/src/test/ui/cast-rfc0401-2.stderr +++ b/src/test/ui/cast-rfc0401-2.stderr @@ -8,3 +8,4 @@ error[E0054]: cannot cast as `bool` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0054" diff --git a/src/test/ui/cast-to-unsized-trait-object-suggestion.stderr b/src/test/ui/cast-to-unsized-trait-object-suggestion.stderr index 55d41848b17a..b2a73a86bb1a 100644 --- a/src/test/ui/cast-to-unsized-trait-object-suggestion.stderr +++ b/src/test/ui/cast-to-unsized-trait-object-suggestion.stderr @@ -16,3 +16,4 @@ error[E0620]: cast to unsized type: `std::boxed::Box<{integer}>` as `std::marker error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0620" diff --git a/src/test/ui/casts-differing-anon.stderr b/src/test/ui/casts-differing-anon.stderr index 8db6854dba9b..ccaa6e845b8f 100644 --- a/src/test/ui/casts-differing-anon.stderr +++ b/src/test/ui/casts-differing-anon.stderr @@ -8,3 +8,4 @@ error[E0606]: casting `*mut impl std::fmt::Debug+?Sized` as `*mut impl std::fmt: error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0606" diff --git a/src/test/ui/casts-issue-46365.stderr b/src/test/ui/casts-issue-46365.stderr index ce3c8593a97c..1b24d82be2d8 100644 --- a/src/test/ui/casts-issue-46365.stderr +++ b/src/test/ui/casts-issue-46365.stderr @@ -6,3 +6,4 @@ error[E0412]: cannot find type `Ipsum` in this scope error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0412" diff --git a/src/test/ui/changing-crates.stderr b/src/test/ui/changing-crates.stderr index 50287fa3fde9..ba93d78a9707 100644 --- a/src/test/ui/changing-crates.stderr +++ b/src/test/ui/changing-crates.stderr @@ -11,3 +11,4 @@ error[E0460]: found possibly newer version of crate `a` which `b` depends on error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0460" diff --git a/src/test/ui/check_match/issue-35609.stderr b/src/test/ui/check_match/issue-35609.stderr index 1fc1d05636e9..018d35b7c718 100644 --- a/src/test/ui/check_match/issue-35609.stderr +++ b/src/test/ui/check_match/issue-35609.stderr @@ -48,3 +48,4 @@ error[E0004]: non-exhaustive patterns: `Some(B)`, `Some(C)`, `Some(D)` and 2 mor error: aborting due to 8 previous errors +If you want more information on this error, try using "rustc --explain E0004" diff --git a/src/test/ui/closure-expected-type/expect-region-supply-region.stderr b/src/test/ui/closure-expected-type/expect-region-supply-region.stderr index 5c612522d9a3..876e7b488a40 100644 --- a/src/test/ui/closure-expected-type/expect-region-supply-region.stderr +++ b/src/test/ui/closure-expected-type/expect-region-supply-region.stderr @@ -84,3 +84,4 @@ error: borrowed data cannot be stored outside of its closure error: aborting due to 5 previous errors +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/closure_context/issue-26046-fn-mut.stderr b/src/test/ui/closure_context/issue-26046-fn-mut.stderr index 77ce1176b5cd..791cdb46231b 100644 --- a/src/test/ui/closure_context/issue-26046-fn-mut.stderr +++ b/src/test/ui/closure_context/issue-26046-fn-mut.stderr @@ -11,3 +11,4 @@ error[E0525]: expected a closure that implements the `Fn` trait, but this closur error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0525" diff --git a/src/test/ui/closure_context/issue-26046-fn-once.stderr b/src/test/ui/closure_context/issue-26046-fn-once.stderr index 4eed4461ebaf..98579a282172 100644 --- a/src/test/ui/closure_context/issue-26046-fn-once.stderr +++ b/src/test/ui/closure_context/issue-26046-fn-once.stderr @@ -11,3 +11,4 @@ error[E0525]: expected a closure that implements the `Fn` trait, but this closur error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0525" diff --git a/src/test/ui/closure_context/issue-42065.stderr b/src/test/ui/closure_context/issue-42065.stderr index c195940ade6f..05abf4853787 100644 --- a/src/test/ui/closure_context/issue-42065.stderr +++ b/src/test/ui/closure_context/issue-42065.stderr @@ -14,3 +14,4 @@ note: closure cannot be invoked more than once because it moves the variable `di error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0382" diff --git a/src/test/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.stderr b/src/test/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.stderr index a7d52301476c..168aebf13dd8 100644 --- a/src/test/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.stderr +++ b/src/test/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.stderr @@ -8,3 +8,4 @@ error[E0592]: duplicate definitions with name `f` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0592" diff --git a/src/test/ui/codemap_tests/empty_span.stderr b/src/test/ui/codemap_tests/empty_span.stderr index 3474803b00dd..0d9654c8697d 100644 --- a/src/test/ui/codemap_tests/empty_span.stderr +++ b/src/test/ui/codemap_tests/empty_span.stderr @@ -6,3 +6,4 @@ error[E0321]: cross-crate traits with a default impl, like `std::marker::Send`, error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0321" diff --git a/src/test/ui/codemap_tests/huge_multispan_highlight.stderr b/src/test/ui/codemap_tests/huge_multispan_highlight.stderr index bc333bde93c6..f7bcaa64fdd3 100644 --- a/src/test/ui/codemap_tests/huge_multispan_highlight.stderr +++ b/src/test/ui/codemap_tests/huge_multispan_highlight.stderr @@ -9,3 +9,4 @@ error[E0596]: cannot borrow immutable local variable `x` as mutable error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0596" diff --git a/src/test/ui/codemap_tests/issue-11715.stderr b/src/test/ui/codemap_tests/issue-11715.stderr index bd8ffba00d44..c7fc7d4271ab 100644 --- a/src/test/ui/codemap_tests/issue-11715.stderr +++ b/src/test/ui/codemap_tests/issue-11715.stderr @@ -10,3 +10,4 @@ error[E0499]: cannot borrow `x` as mutable more than once at a time error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0499" diff --git a/src/test/ui/codemap_tests/issue-28308.stderr b/src/test/ui/codemap_tests/issue-28308.stderr index c5afa5ec1a4f..87b8f04ad1ff 100644 --- a/src/test/ui/codemap_tests/issue-28308.stderr +++ b/src/test/ui/codemap_tests/issue-28308.stderr @@ -8,3 +8,4 @@ error[E0600]: cannot apply unary operator `!` to type `&'static str` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0600" diff --git a/src/test/ui/codemap_tests/one_line.stderr b/src/test/ui/codemap_tests/one_line.stderr index cfe3d527136a..73ef9219e7e6 100644 --- a/src/test/ui/codemap_tests/one_line.stderr +++ b/src/test/ui/codemap_tests/one_line.stderr @@ -9,3 +9,4 @@ error[E0499]: cannot borrow `v` as mutable more than once at a time error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0499" diff --git a/src/test/ui/codemap_tests/overlapping_inherent_impls.stderr b/src/test/ui/codemap_tests/overlapping_inherent_impls.stderr index 0ccdd2076517..858e3e533493 100644 --- a/src/test/ui/codemap_tests/overlapping_inherent_impls.stderr +++ b/src/test/ui/codemap_tests/overlapping_inherent_impls.stderr @@ -29,3 +29,4 @@ error[E0592]: duplicate definitions with name `baz` error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0592" diff --git a/src/test/ui/codemap_tests/overlapping_spans.stderr b/src/test/ui/codemap_tests/overlapping_spans.stderr index dc801b20dfb9..edb970ffdff8 100644 --- a/src/test/ui/codemap_tests/overlapping_spans.stderr +++ b/src/test/ui/codemap_tests/overlapping_spans.stderr @@ -9,3 +9,4 @@ error[E0509]: cannot move out of type `S`, which implements the `Drop` trait error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0509" diff --git a/src/test/ui/codemap_tests/tab.stderr b/src/test/ui/codemap_tests/tab.stderr index c887821c6d11..cd52f414f64b 100644 --- a/src/test/ui/codemap_tests/tab.stderr +++ b/src/test/ui/codemap_tests/tab.stderr @@ -17,3 +17,5 @@ error[E0308]: mismatched types error: aborting due to 2 previous errors +You've got a few errors: E0308, E0425 +If you want more information on an error, try using "rustc --explain E0308" diff --git a/src/test/ui/codemap_tests/tab_3.stderr b/src/test/ui/codemap_tests/tab_3.stderr index 322020626639..0435aed7c8a1 100644 --- a/src/test/ui/codemap_tests/tab_3.stderr +++ b/src/test/ui/codemap_tests/tab_3.stderr @@ -11,3 +11,4 @@ error[E0382]: use of moved value: `some_vec` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0382" diff --git a/src/test/ui/codemap_tests/two_files.stderr b/src/test/ui/codemap_tests/two_files.stderr index c0cfeef194da..8798081ad6d3 100644 --- a/src/test/ui/codemap_tests/two_files.stderr +++ b/src/test/ui/codemap_tests/two_files.stderr @@ -6,3 +6,4 @@ error[E0404]: expected trait, found type alias `Bar` error: cannot continue compilation due to previous error +If you want more information on this error, try using "rustc --explain E0404" diff --git a/src/test/ui/codemap_tests/unicode_2.stderr b/src/test/ui/codemap_tests/unicode_2.stderr index 9ffd08ca06f8..879553740f3f 100644 --- a/src/test/ui/codemap_tests/unicode_2.stderr +++ b/src/test/ui/codemap_tests/unicode_2.stderr @@ -22,3 +22,4 @@ error[E0425]: cannot find value `a̐é` in this scope error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0425" diff --git a/src/test/ui/coercion-missing-tail-expected-type.stderr b/src/test/ui/coercion-missing-tail-expected-type.stderr index 93f57216ca06..1e327a614a58 100644 --- a/src/test/ui/coercion-missing-tail-expected-type.stderr +++ b/src/test/ui/coercion-missing-tail-expected-type.stderr @@ -26,3 +26,4 @@ error[E0308]: mismatched types error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/coherence-error-suppression.stderr b/src/test/ui/coherence-error-suppression.stderr index 57b746f19e85..ba8ad78ed40b 100644 --- a/src/test/ui/coherence-error-suppression.stderr +++ b/src/test/ui/coherence-error-suppression.stderr @@ -6,3 +6,4 @@ error[E0412]: cannot find type `DoesNotExist` in this scope error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0412" diff --git a/src/test/ui/coherence-impls-copy.stderr b/src/test/ui/coherence-impls-copy.stderr index e5e91df771fd..e77771b43ddb 100644 --- a/src/test/ui/coherence-impls-copy.stderr +++ b/src/test/ui/coherence-impls-copy.stderr @@ -57,3 +57,5 @@ error[E0117]: only traits defined in the current crate can be implemented for ar error: aborting due to 8 previous errors +You've got a few errors: E0117, E0206 +If you want more information on an error, try using "rustc --explain E0117" diff --git a/src/test/ui/coherence-overlap-downstream-inherent.stderr b/src/test/ui/coherence-overlap-downstream-inherent.stderr index aca6800deb5c..45a2bef9dc2c 100644 --- a/src/test/ui/coherence-overlap-downstream-inherent.stderr +++ b/src/test/ui/coherence-overlap-downstream-inherent.stderr @@ -20,3 +20,4 @@ error[E0592]: duplicate definitions with name `f` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0592" diff --git a/src/test/ui/coherence-overlap-downstream.stderr b/src/test/ui/coherence-overlap-downstream.stderr index c94ffd60d261..884afe72d04c 100644 --- a/src/test/ui/coherence-overlap-downstream.stderr +++ b/src/test/ui/coherence-overlap-downstream.stderr @@ -18,3 +18,4 @@ error[E0119]: conflicting implementations of trait `Foo<_>` for type `i32`: error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0119" diff --git a/src/test/ui/coherence-overlap-issue-23516-inherent.stderr b/src/test/ui/coherence-overlap-issue-23516-inherent.stderr index 24d9b26fe9d6..95a034ac8779 100644 --- a/src/test/ui/coherence-overlap-issue-23516-inherent.stderr +++ b/src/test/ui/coherence-overlap-issue-23516-inherent.stderr @@ -11,3 +11,4 @@ error[E0592]: duplicate definitions with name `dummy` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0592" diff --git a/src/test/ui/coherence-overlap-issue-23516.stderr b/src/test/ui/coherence-overlap-issue-23516.stderr index c27e1ad76200..338490862801 100644 --- a/src/test/ui/coherence-overlap-issue-23516.stderr +++ b/src/test/ui/coherence-overlap-issue-23516.stderr @@ -10,3 +10,4 @@ error[E0119]: conflicting implementations of trait `Sweet` for type `std::boxed: error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0119" diff --git a/src/test/ui/coherence-overlap-upstream-inherent.stderr b/src/test/ui/coherence-overlap-upstream-inherent.stderr index db32bcb81c6e..0e398eed792c 100644 --- a/src/test/ui/coherence-overlap-upstream-inherent.stderr +++ b/src/test/ui/coherence-overlap-upstream-inherent.stderr @@ -11,3 +11,4 @@ error[E0592]: duplicate definitions with name `dummy` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0592" diff --git a/src/test/ui/coherence-overlap-upstream.stderr b/src/test/ui/coherence-overlap-upstream.stderr index 9b5b67fe9c7d..c784dbecb9ca 100644 --- a/src/test/ui/coherence-overlap-upstream.stderr +++ b/src/test/ui/coherence-overlap-upstream.stderr @@ -10,3 +10,4 @@ error[E0119]: conflicting implementations of trait `Foo` for type `i16`: error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0119" diff --git a/src/test/ui/command-line-diagnostics.stderr b/src/test/ui/command-line-diagnostics.stderr index 48ca45914c65..fd7f98ea563e 100644 --- a/src/test/ui/command-line-diagnostics.stderr +++ b/src/test/ui/command-line-diagnostics.stderr @@ -8,3 +8,4 @@ error[E0384]: cannot assign twice to immutable variable `x` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0384" diff --git a/src/test/ui/compare-method/proj-outlives-region.stderr b/src/test/ui/compare-method/proj-outlives-region.stderr index e6e93d14b3cf..f695aa759066 100644 --- a/src/test/ui/compare-method/proj-outlives-region.stderr +++ b/src/test/ui/compare-method/proj-outlives-region.stderr @@ -9,3 +9,4 @@ error[E0276]: impl has stricter requirements than trait error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0276" diff --git a/src/test/ui/compare-method/region-extra-2.stderr b/src/test/ui/compare-method/region-extra-2.stderr index 2b8a268fdcc3..59af795be575 100644 --- a/src/test/ui/compare-method/region-extra-2.stderr +++ b/src/test/ui/compare-method/region-extra-2.stderr @@ -9,3 +9,4 @@ error[E0276]: impl has stricter requirements than trait error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0276" diff --git a/src/test/ui/compare-method/region-extra.stderr b/src/test/ui/compare-method/region-extra.stderr index d89b3a921b9e..8941abb6f162 100644 --- a/src/test/ui/compare-method/region-extra.stderr +++ b/src/test/ui/compare-method/region-extra.stderr @@ -9,3 +9,4 @@ error[E0276]: impl has stricter requirements than trait error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0276" diff --git a/src/test/ui/compare-method/region-unrelated.stderr b/src/test/ui/compare-method/region-unrelated.stderr index 156143cd54c4..c5e7cad7cfd5 100644 --- a/src/test/ui/compare-method/region-unrelated.stderr +++ b/src/test/ui/compare-method/region-unrelated.stderr @@ -9,3 +9,4 @@ error[E0276]: impl has stricter requirements than trait error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0276" diff --git a/src/test/ui/compare-method/reordered-type-param.stderr b/src/test/ui/compare-method/reordered-type-param.stderr index 4620248e2efe..9a5cb6267c3f 100644 --- a/src/test/ui/compare-method/reordered-type-param.stderr +++ b/src/test/ui/compare-method/reordered-type-param.stderr @@ -12,3 +12,4 @@ error[E0053]: method `b` has an incompatible type for trait error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0053" diff --git a/src/test/ui/compare-method/trait-bound-on-type-parameter.stderr b/src/test/ui/compare-method/trait-bound-on-type-parameter.stderr index e3a1eb9ee66c..84460922b672 100644 --- a/src/test/ui/compare-method/trait-bound-on-type-parameter.stderr +++ b/src/test/ui/compare-method/trait-bound-on-type-parameter.stderr @@ -9,3 +9,4 @@ error[E0276]: impl has stricter requirements than trait error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0276" diff --git a/src/test/ui/compare-method/traits-misc-mismatch-1.stderr b/src/test/ui/compare-method/traits-misc-mismatch-1.stderr index ba5284eb6530..74b529aab03c 100644 --- a/src/test/ui/compare-method/traits-misc-mismatch-1.stderr +++ b/src/test/ui/compare-method/traits-misc-mismatch-1.stderr @@ -63,3 +63,4 @@ error[E0276]: impl has stricter requirements than trait error: aborting due to 7 previous errors +If you want more information on this error, try using "rustc --explain E0276" diff --git a/src/test/ui/compare-method/traits-misc-mismatch-2.stderr b/src/test/ui/compare-method/traits-misc-mismatch-2.stderr index 983d87d5b88d..97f96c7a6a5d 100644 --- a/src/test/ui/compare-method/traits-misc-mismatch-2.stderr +++ b/src/test/ui/compare-method/traits-misc-mismatch-2.stderr @@ -9,3 +9,4 @@ error[E0276]: impl has stricter requirements than trait error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0276" diff --git a/src/test/ui/const-deref-ptr.stderr b/src/test/ui/const-deref-ptr.stderr index 60f9a3a37ba9..d702d942107b 100644 --- a/src/test/ui/const-deref-ptr.stderr +++ b/src/test/ui/const-deref-ptr.stderr @@ -6,3 +6,4 @@ error[E0396]: raw pointers cannot be dereferenced in statics error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0396" diff --git a/src/test/ui/const-eval-overflow-2.stderr b/src/test/ui/const-eval-overflow-2.stderr index a9d29d010719..fa8ddaaf43dc 100644 --- a/src/test/ui/const-eval-overflow-2.stderr +++ b/src/test/ui/const-eval-overflow-2.stderr @@ -12,3 +12,4 @@ note: for pattern here error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0080" diff --git a/src/test/ui/const-eval-overflow-4.stderr b/src/test/ui/const-eval-overflow-4.stderr index 98c6ae1b9bca..a02a587d0fdb 100644 --- a/src/test/ui/const-eval-overflow-4.stderr +++ b/src/test/ui/const-eval-overflow-4.stderr @@ -14,3 +14,4 @@ error[E0080]: constant evaluation error error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0080" diff --git a/src/test/ui/const-eval-span.stderr b/src/test/ui/const-eval-span.stderr index e64af57a1864..0caa87d22a21 100644 --- a/src/test/ui/const-eval-span.stderr +++ b/src/test/ui/const-eval-span.stderr @@ -9,3 +9,4 @@ error[E0308]: mismatched types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/const-eval/issue-43197.stderr b/src/test/ui/const-eval/issue-43197.stderr index 82baab620ffa..c2fe2ff367ef 100644 --- a/src/test/ui/const-eval/issue-43197.stderr +++ b/src/test/ui/const-eval/issue-43197.stderr @@ -26,3 +26,4 @@ error[E0080]: constant evaluation error error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0080" diff --git a/src/test/ui/const-expr-addr-operator.stderr b/src/test/ui/const-expr-addr-operator.stderr index f6587c703bd7..b501a552a2e6 100644 --- a/src/test/ui/const-expr-addr-operator.stderr +++ b/src/test/ui/const-expr-addr-operator.stderr @@ -12,3 +12,4 @@ note: for pattern here error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0080" diff --git a/src/test/ui/const-fn-error.stderr b/src/test/ui/const-fn-error.stderr index 4f4f8b5ad009..a66453c4e62f 100644 --- a/src/test/ui/const-fn-error.stderr +++ b/src/test/ui/const-fn-error.stderr @@ -38,3 +38,5 @@ note: for constant expression here error: aborting due to 4 previous errors +You've got a few errors: E0015, E0016, E0019, E0080 +If you want more information on an error, try using "rustc --explain E0015" diff --git a/src/test/ui/const-fn-mismatch.stderr b/src/test/ui/const-fn-mismatch.stderr index 4f6a98fb8eb0..17872f90bb8e 100644 --- a/src/test/ui/const-fn-mismatch.stderr +++ b/src/test/ui/const-fn-mismatch.stderr @@ -6,3 +6,4 @@ error[E0379]: trait fns cannot be declared const error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0379" diff --git a/src/test/ui/const-fn-not-in-trait.stderr b/src/test/ui/const-fn-not-in-trait.stderr index d23bf3b411b2..2246e01711e8 100644 --- a/src/test/ui/const-fn-not-in-trait.stderr +++ b/src/test/ui/const-fn-not-in-trait.stderr @@ -12,3 +12,4 @@ error[E0379]: trait fns cannot be declared const error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0379" diff --git a/src/test/ui/const-len-underflow-separate-spans.stderr b/src/test/ui/const-len-underflow-separate-spans.stderr index 6e6c2130e1cc..8678bc48d4b0 100644 --- a/src/test/ui/const-len-underflow-separate-spans.stderr +++ b/src/test/ui/const-len-underflow-separate-spans.stderr @@ -20,3 +20,4 @@ note: for constant expression here error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0080" diff --git a/src/test/ui/const-pattern-irrefutable.stderr b/src/test/ui/const-pattern-irrefutable.stderr index af48b7736381..d2bba1ca29f8 100644 --- a/src/test/ui/const-pattern-irrefutable.stderr +++ b/src/test/ui/const-pattern-irrefutable.stderr @@ -18,3 +18,4 @@ error[E0005]: refutable pattern in local binding: `_` not covered error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0005" diff --git a/src/test/ui/const-pattern-not-const-evaluable.stderr b/src/test/ui/const-pattern-not-const-evaluable.stderr index 5441937e4dd6..9dccf4af6f41 100644 --- a/src/test/ui/const-pattern-not-const-evaluable.stderr +++ b/src/test/ui/const-pattern-not-const-evaluable.stderr @@ -12,3 +12,4 @@ note: for pattern here error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0080" diff --git a/src/test/ui/const-unsized.stderr b/src/test/ui/const-unsized.stderr index ba948643a37b..5946f94f700a 100644 --- a/src/test/ui/const-unsized.stderr +++ b/src/test/ui/const-unsized.stderr @@ -36,3 +36,4 @@ error[E0277]: the trait bound `str: std::marker::Sized` is not satisfied error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/cycle-trait-supertrait-indirect.stderr b/src/test/ui/cycle-trait-supertrait-indirect.stderr index a01565546462..7bc6dd51244f 100644 --- a/src/test/ui/cycle-trait-supertrait-indirect.stderr +++ b/src/test/ui/cycle-trait-supertrait-indirect.stderr @@ -18,3 +18,4 @@ note: ...which then requires computing the supertraits of `C`... error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0391" diff --git a/src/test/ui/deref-suggestion.stderr b/src/test/ui/deref-suggestion.stderr index 4c2896e22073..3b91929ba3bf 100644 --- a/src/test/ui/deref-suggestion.stderr +++ b/src/test/ui/deref-suggestion.stderr @@ -60,3 +60,4 @@ error[E0308]: mismatched types error: aborting due to 5 previous errors +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/derived-errors/issue-31997-1.stderr b/src/test/ui/derived-errors/issue-31997-1.stderr index 732cf9bacbcd..2a0a4c8838dd 100644 --- a/src/test/ui/derived-errors/issue-31997-1.stderr +++ b/src/test/ui/derived-errors/issue-31997-1.stderr @@ -6,3 +6,4 @@ error[E0433]: failed to resolve. Use of undeclared type or module `HashMap` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0433" diff --git a/src/test/ui/did_you_mean/E0178.stderr b/src/test/ui/did_you_mean/E0178.stderr index 4fe8849feef1..29571a8f704e 100644 --- a/src/test/ui/did_you_mean/E0178.stderr +++ b/src/test/ui/did_you_mean/E0178.stderr @@ -24,3 +24,4 @@ error[E0178]: expected a path on the left-hand side of `+`, not `fn() -> Foo` error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0178" diff --git a/src/test/ui/did_you_mean/bad-assoc-pat.stderr b/src/test/ui/did_you_mean/bad-assoc-pat.stderr index 1ca4576d88f6..8ab3bafa6205 100644 --- a/src/test/ui/did_you_mean/bad-assoc-pat.stderr +++ b/src/test/ui/did_you_mean/bad-assoc-pat.stderr @@ -48,3 +48,4 @@ error[E0599]: no associated item named `AssocItem` found for type `(u8,)` in the error: aborting due to 8 previous errors +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/did_you_mean/bad-assoc-ty.stderr b/src/test/ui/did_you_mean/bad-assoc-ty.stderr index c44dc5a04688..9aa6421d47e5 100644 --- a/src/test/ui/did_you_mean/bad-assoc-ty.stderr +++ b/src/test/ui/did_you_mean/bad-assoc-ty.stderr @@ -104,3 +104,5 @@ error[E0223]: ambiguous associated type error: aborting due to 15 previous errors +You've got a few errors: E0121, E0223 +If you want more information on an error, try using "rustc --explain E0121" diff --git a/src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-1.stderr b/src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-1.stderr index 9010de081da4..b1dac9b64b71 100644 --- a/src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-1.stderr +++ b/src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-1.stderr @@ -10,3 +10,4 @@ error[E0277]: the trait bound `Bar: Foo` is not satisfied error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.stderr b/src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.stderr index e9591a64784d..f574ae0fa840 100644 --- a/src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.stderr +++ b/src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.stderr @@ -13,3 +13,4 @@ error[E0277]: the trait bound `Bar: Foo` is not satisfied error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/did_you_mean/issue-31424.stderr b/src/test/ui/did_you_mean/issue-31424.stderr index cd96d28ac98c..725ede6d37b6 100644 --- a/src/test/ui/did_you_mean/issue-31424.stderr +++ b/src/test/ui/did_you_mean/issue-31424.stderr @@ -17,3 +17,4 @@ error[E0596]: cannot borrow immutable argument `self` as mutable error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0596" diff --git a/src/test/ui/did_you_mean/issue-34126.stderr b/src/test/ui/did_you_mean/issue-34126.stderr index a4921046c783..9b290ae99f74 100644 --- a/src/test/ui/did_you_mean/issue-34126.stderr +++ b/src/test/ui/did_you_mean/issue-34126.stderr @@ -9,3 +9,4 @@ error[E0596]: cannot borrow immutable argument `self` as mutable error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0596" diff --git a/src/test/ui/did_you_mean/issue-34337.stderr b/src/test/ui/did_you_mean/issue-34337.stderr index a53d3d7277aa..135d3ad945c6 100644 --- a/src/test/ui/did_you_mean/issue-34337.stderr +++ b/src/test/ui/did_you_mean/issue-34337.stderr @@ -9,3 +9,4 @@ error[E0596]: cannot borrow immutable local variable `key` as mutable error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0596" diff --git a/src/test/ui/did_you_mean/issue-35937.stderr b/src/test/ui/did_you_mean/issue-35937.stderr index cfaff9731704..2a7ffeab737c 100644 --- a/src/test/ui/did_you_mean/issue-35937.stderr +++ b/src/test/ui/did_you_mean/issue-35937.stderr @@ -24,3 +24,5 @@ error[E0594]: cannot assign to field `s.x` of immutable binding error: aborting due to 3 previous errors +You've got a few errors: E0594, E0596 +If you want more information on an error, try using "rustc --explain E0594" diff --git a/src/test/ui/did_you_mean/issue-36798.stderr b/src/test/ui/did_you_mean/issue-36798.stderr index 73319d567bd7..03f71fbb1837 100644 --- a/src/test/ui/did_you_mean/issue-36798.stderr +++ b/src/test/ui/did_you_mean/issue-36798.stderr @@ -6,3 +6,4 @@ error[E0609]: no field `baz` on type `Foo` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0609" diff --git a/src/test/ui/did_you_mean/issue-36798_unknown_field.stderr b/src/test/ui/did_you_mean/issue-36798_unknown_field.stderr index f17672b234fc..f866887433b0 100644 --- a/src/test/ui/did_you_mean/issue-36798_unknown_field.stderr +++ b/src/test/ui/did_you_mean/issue-36798_unknown_field.stderr @@ -8,3 +8,4 @@ error[E0609]: no field `zz` on type `Foo` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0609" diff --git a/src/test/ui/did_you_mean/issue-37139.stderr b/src/test/ui/did_you_mean/issue-37139.stderr index 65de724616d1..a5269c4e1a84 100644 --- a/src/test/ui/did_you_mean/issue-37139.stderr +++ b/src/test/ui/did_you_mean/issue-37139.stderr @@ -9,3 +9,4 @@ error[E0596]: cannot borrow immutable local variable `x` as mutable error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0596" diff --git a/src/test/ui/did_you_mean/issue-38054-do-not-show-unresolved-names.stderr b/src/test/ui/did_you_mean/issue-38054-do-not-show-unresolved-names.stderr index c58958c7f5e3..086ed136ce16 100644 --- a/src/test/ui/did_you_mean/issue-38054-do-not-show-unresolved-names.stderr +++ b/src/test/ui/did_you_mean/issue-38054-do-not-show-unresolved-names.stderr @@ -12,3 +12,4 @@ error[E0432]: unresolved import `Foo1` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0432" diff --git a/src/test/ui/did_you_mean/issue-38147-1.stderr b/src/test/ui/did_you_mean/issue-38147-1.stderr index 6a262b310263..aab6427c1449 100644 --- a/src/test/ui/did_you_mean/issue-38147-1.stderr +++ b/src/test/ui/did_you_mean/issue-38147-1.stderr @@ -8,3 +8,4 @@ error[E0389]: cannot borrow data mutably in a `&` reference error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0389" diff --git a/src/test/ui/did_you_mean/issue-38147-2.stderr b/src/test/ui/did_you_mean/issue-38147-2.stderr index 569bfa11803c..cc52f2a7830e 100644 --- a/src/test/ui/did_you_mean/issue-38147-2.stderr +++ b/src/test/ui/did_you_mean/issue-38147-2.stderr @@ -9,3 +9,4 @@ error[E0596]: cannot borrow borrowed content `*self.s` of immutable binding as m error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0596" diff --git a/src/test/ui/did_you_mean/issue-38147-3.stderr b/src/test/ui/did_you_mean/issue-38147-3.stderr index 75d904d394a8..12282b2fdeec 100644 --- a/src/test/ui/did_you_mean/issue-38147-3.stderr +++ b/src/test/ui/did_you_mean/issue-38147-3.stderr @@ -9,3 +9,4 @@ error[E0596]: cannot borrow borrowed content `*self.s` of immutable binding as m error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0596" diff --git a/src/test/ui/did_you_mean/issue-38147-4.stderr b/src/test/ui/did_you_mean/issue-38147-4.stderr index 33bf2e1160c9..3bc94dfbd638 100644 --- a/src/test/ui/did_you_mean/issue-38147-4.stderr +++ b/src/test/ui/did_you_mean/issue-38147-4.stderr @@ -8,3 +8,4 @@ error[E0389]: cannot borrow data mutably in a `&` reference error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0389" diff --git a/src/test/ui/did_you_mean/issue-39544.stderr b/src/test/ui/did_you_mean/issue-39544.stderr index d8c089806cdf..47b11f707d21 100644 --- a/src/test/ui/did_you_mean/issue-39544.stderr +++ b/src/test/ui/did_you_mean/issue-39544.stderr @@ -98,3 +98,5 @@ error[E0594]: cannot assign to borrowed content `*x.0` of immutable binding error: aborting due to 12 previous errors +You've got a few errors: E0594, E0596 +If you want more information on an error, try using "rustc --explain E0594" diff --git a/src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr b/src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr index 7ca3e8728fd9..b861064399e1 100644 --- a/src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr +++ b/src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr @@ -53,3 +53,4 @@ note: required by `Foo::bar` error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/did_you_mean/issue-40006.stderr b/src/test/ui/did_you_mean/issue-40006.stderr index 88d63cdbb5db..cc4886f3b0f0 100644 --- a/src/test/ui/did_you_mean/issue-40006.stderr +++ b/src/test/ui/did_you_mean/issue-40006.stderr @@ -66,3 +66,4 @@ error[E0038]: the trait `X` cannot be made into an object error: aborting due to 9 previous errors +If you want more information on this error, try using "rustc --explain E0038" diff --git a/src/test/ui/did_you_mean/issue-40823.stderr b/src/test/ui/did_you_mean/issue-40823.stderr index 0b71fc1d306a..e11ed5d4c4ff 100644 --- a/src/test/ui/did_you_mean/issue-40823.stderr +++ b/src/test/ui/did_you_mean/issue-40823.stderr @@ -6,3 +6,4 @@ error[E0596]: cannot borrow immutable borrowed content `*buf` as mutable error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0596" diff --git a/src/test/ui/did_you_mean/issue-42599_available_fields_note.stderr b/src/test/ui/did_you_mean/issue-42599_available_fields_note.stderr index 2c7701e9965d..2891c771a362 100644 --- a/src/test/ui/did_you_mean/issue-42599_available_fields_note.stderr +++ b/src/test/ui/did_you_mean/issue-42599_available_fields_note.stderr @@ -28,3 +28,5 @@ error[E0609]: no field `egregiously_nonexistent_field` on type `submodule::Demo` error: aborting due to 4 previous errors +You've got a few errors: E0560, E0609 +If you want more information on an error, try using "rustc --explain E0560" diff --git a/src/test/ui/did_you_mean/issue-42764.stderr b/src/test/ui/did_you_mean/issue-42764.stderr index 0cc157aa5bb5..748b7165e51a 100644 --- a/src/test/ui/did_you_mean/issue-42764.stderr +++ b/src/test/ui/did_you_mean/issue-42764.stderr @@ -15,3 +15,4 @@ help: try using a variant of the expected type error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/did_you_mean/issue-43871-enum-instead-of-variant.stderr b/src/test/ui/did_you_mean/issue-43871-enum-instead-of-variant.stderr index 5390e541fb71..e10abdbb4f98 100644 --- a/src/test/ui/did_you_mean/issue-43871-enum-instead-of-variant.stderr +++ b/src/test/ui/did_you_mean/issue-43871-enum-instead-of-variant.stderr @@ -30,3 +30,5 @@ error[E0532]: expected tuple struct/variant, found enum `Example` error: aborting due to 3 previous errors +You've got a few errors: E0423, E0532 +If you want more information on an error, try using "rustc --explain E0423" diff --git a/src/test/ui/did_you_mean/recursion_limit.stderr b/src/test/ui/did_you_mean/recursion_limit.stderr index 2bc7e9e46e7c..529c8c11f32a 100644 --- a/src/test/ui/did_you_mean/recursion_limit.stderr +++ b/src/test/ui/did_you_mean/recursion_limit.stderr @@ -23,3 +23,4 @@ note: required by `is_send` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0275" diff --git a/src/test/ui/did_you_mean/recursion_limit_deref.stderr b/src/test/ui/did_you_mean/recursion_limit_deref.stderr index 860c6bb5b909..f78fa4c48b21 100644 --- a/src/test/ui/did_you_mean/recursion_limit_deref.stderr +++ b/src/test/ui/did_you_mean/recursion_limit_deref.stderr @@ -21,3 +21,5 @@ error[E0308]: mismatched types error: aborting due to 3 previous errors +You've got a few errors: E0055, E0308 +If you want more information on an error, try using "rustc --explain E0055" diff --git a/src/test/ui/did_you_mean/trait-object-reference-without-parens-suggestion.stderr b/src/test/ui/did_you_mean/trait-object-reference-without-parens-suggestion.stderr index 325a19eee140..2923d6f760a0 100644 --- a/src/test/ui/did_you_mean/trait-object-reference-without-parens-suggestion.stderr +++ b/src/test/ui/did_you_mean/trait-object-reference-without-parens-suggestion.stderr @@ -20,3 +20,5 @@ error[E0038]: the trait `std::marker::Copy` cannot be made into an object error: aborting due to 3 previous errors +You've got a few errors: E0038, E0178 +If you want more information on an error, try using "rustc --explain E0038" diff --git a/src/test/ui/discrim-overflow-2.stderr b/src/test/ui/discrim-overflow-2.stderr index 660110cd7371..c8c649fd597a 100644 --- a/src/test/ui/discrim-overflow-2.stderr +++ b/src/test/ui/discrim-overflow-2.stderr @@ -64,3 +64,4 @@ error[E0370]: enum discriminant overflowed error: aborting due to 8 previous errors +If you want more information on this error, try using "rustc --explain E0370" diff --git a/src/test/ui/discrim-overflow.stderr b/src/test/ui/discrim-overflow.stderr index 733810006d74..be844013ba14 100644 --- a/src/test/ui/discrim-overflow.stderr +++ b/src/test/ui/discrim-overflow.stderr @@ -64,3 +64,4 @@ error[E0370]: enum discriminant overflowed error: aborting due to 8 previous errors +If you want more information on this error, try using "rustc --explain E0370" diff --git a/src/test/ui/double-import.stderr b/src/test/ui/double-import.stderr index 2a0f9ee34f2b..33fad022116c 100644 --- a/src/test/ui/double-import.stderr +++ b/src/test/ui/double-import.stderr @@ -14,3 +14,4 @@ help: You can use `as` to change the binding name of the import error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0252" diff --git a/src/test/ui/dropck/dropck-eyepatch-extern-crate.stderr b/src/test/ui/dropck/dropck-eyepatch-extern-crate.stderr index 8aa4fba70852..bd7580ca751c 100644 --- a/src/test/ui/dropck/dropck-eyepatch-extern-crate.stderr +++ b/src/test/ui/dropck/dropck-eyepatch-extern-crate.stderr @@ -44,3 +44,4 @@ error[E0597]: `c` does not live long enough error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0597" diff --git a/src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr b/src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr index 2c788e952edb..cb4f3d213987 100644 --- a/src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr +++ b/src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr @@ -22,3 +22,4 @@ error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attri error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0569" diff --git a/src/test/ui/dropck/dropck-eyepatch-reorder.stderr b/src/test/ui/dropck/dropck-eyepatch-reorder.stderr index 4fa188908fdd..0fdedfb7cf5c 100644 --- a/src/test/ui/dropck/dropck-eyepatch-reorder.stderr +++ b/src/test/ui/dropck/dropck-eyepatch-reorder.stderr @@ -44,3 +44,4 @@ error[E0597]: `c` does not live long enough error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0597" diff --git a/src/test/ui/dropck/dropck-eyepatch.stderr b/src/test/ui/dropck/dropck-eyepatch.stderr index 79fb9222d5ca..ce3ffc034c53 100644 --- a/src/test/ui/dropck/dropck-eyepatch.stderr +++ b/src/test/ui/dropck/dropck-eyepatch.stderr @@ -44,3 +44,4 @@ error[E0597]: `c` does not live long enough error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0597" diff --git a/src/test/ui/e0119/complex-impl.stderr b/src/test/ui/e0119/complex-impl.stderr index 926dac3f9b13..00953ef2eee3 100644 --- a/src/test/ui/e0119/complex-impl.stderr +++ b/src/test/ui/e0119/complex-impl.stderr @@ -16,3 +16,5 @@ error[E0210]: type parameter `R` must be used as the type parameter for some loc error: aborting due to 2 previous errors +You've got a few errors: E0119, E0210 +If you want more information on an error, try using "rustc --explain E0119" diff --git a/src/test/ui/e0119/conflict-with-std.stderr b/src/test/ui/e0119/conflict-with-std.stderr index 4c1f9405fb96..cebd6e20453f 100644 --- a/src/test/ui/e0119/conflict-with-std.stderr +++ b/src/test/ui/e0119/conflict-with-std.stderr @@ -29,3 +29,4 @@ error[E0119]: conflicting implementations of trait `std::convert::TryFrom` fo error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0119" diff --git a/src/test/ui/e0119/issue-23563.stderr b/src/test/ui/e0119/issue-23563.stderr index 8bbae56d8436..47489fecd6cb 100644 --- a/src/test/ui/e0119/issue-23563.stderr +++ b/src/test/ui/e0119/issue-23563.stderr @@ -10,3 +10,4 @@ error[E0119]: conflicting implementations of trait `a::LolFrom<&[_]>` for type ` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0119" diff --git a/src/test/ui/e0119/issue-27403.stderr b/src/test/ui/e0119/issue-27403.stderr index 4417ea9099fa..a2d340fa2113 100644 --- a/src/test/ui/e0119/issue-27403.stderr +++ b/src/test/ui/e0119/issue-27403.stderr @@ -10,3 +10,4 @@ error[E0119]: conflicting implementations of trait `std::convert::Into<_>` for t error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0119" diff --git a/src/test/ui/e0119/issue-28981.stderr b/src/test/ui/e0119/issue-28981.stderr index 3ea1c9adc9b4..df5978100d72 100644 --- a/src/test/ui/e0119/issue-28981.stderr +++ b/src/test/ui/e0119/issue-28981.stderr @@ -16,3 +16,5 @@ error[E0210]: type parameter `Foo` must be used as the type parameter for some l error: aborting due to 2 previous errors +You've got a few errors: E0119, E0210 +If you want more information on an error, try using "rustc --explain E0119" diff --git a/src/test/ui/e0119/so-37347311.stderr b/src/test/ui/e0119/so-37347311.stderr index 84fb049df357..d62c37f5aae9 100644 --- a/src/test/ui/e0119/so-37347311.stderr +++ b/src/test/ui/e0119/so-37347311.stderr @@ -9,3 +9,4 @@ error[E0119]: conflicting implementations of trait `std::convert::From::B error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0164" diff --git a/src/test/ui/error-codes/E0165.stderr b/src/test/ui/error-codes/E0165.stderr index 3c90f19a0dc7..14c70ee69872 100644 --- a/src/test/ui/error-codes/E0165.stderr +++ b/src/test/ui/error-codes/E0165.stderr @@ -6,3 +6,4 @@ error[E0165]: irrefutable while-let pattern error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0165" diff --git a/src/test/ui/error-codes/E0184.stderr b/src/test/ui/error-codes/E0184.stderr index 53bda3bb5759..a42ac11bc534 100644 --- a/src/test/ui/error-codes/E0184.stderr +++ b/src/test/ui/error-codes/E0184.stderr @@ -6,3 +6,4 @@ error[E0184]: the trait `Copy` may not be implemented for this type; the type ha error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0184" diff --git a/src/test/ui/error-codes/E0185.stderr b/src/test/ui/error-codes/E0185.stderr index 0d24a3712d55..58fbc2220d3e 100644 --- a/src/test/ui/error-codes/E0185.stderr +++ b/src/test/ui/error-codes/E0185.stderr @@ -9,3 +9,4 @@ error[E0185]: method `foo` has a `&self` declaration in the impl, but not in the error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0185" diff --git a/src/test/ui/error-codes/E0186.stderr b/src/test/ui/error-codes/E0186.stderr index 598057db3a66..e212e2290011 100644 --- a/src/test/ui/error-codes/E0186.stderr +++ b/src/test/ui/error-codes/E0186.stderr @@ -9,3 +9,4 @@ error[E0186]: method `foo` has a `&self` declaration in the trait, but not in th error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0186" diff --git a/src/test/ui/error-codes/E0191.stderr b/src/test/ui/error-codes/E0191.stderr index 8f99a6ecffb9..2b00f3d346d9 100644 --- a/src/test/ui/error-codes/E0191.stderr +++ b/src/test/ui/error-codes/E0191.stderr @@ -6,3 +6,4 @@ error[E0191]: the value of the associated type `Bar` (from the trait `Trait`) mu error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0191" diff --git a/src/test/ui/error-codes/E0192.stderr b/src/test/ui/error-codes/E0192.stderr index b592c87efa7a..4a5df56c0cc1 100644 --- a/src/test/ui/error-codes/E0192.stderr +++ b/src/test/ui/error-codes/E0192.stderr @@ -6,3 +6,4 @@ error[E0192]: negative impls are only allowed for auto traits (e.g., `Send` and error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0192" diff --git a/src/test/ui/error-codes/E0194.stderr b/src/test/ui/error-codes/E0194.stderr index 360e8c08a3c9..3b5d512a1c40 100644 --- a/src/test/ui/error-codes/E0194.stderr +++ b/src/test/ui/error-codes/E0194.stderr @@ -9,3 +9,4 @@ error[E0194]: type parameter `T` shadows another type parameter of the same name error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0194" diff --git a/src/test/ui/error-codes/E0195.stderr b/src/test/ui/error-codes/E0195.stderr index 3cce3d079941..764f302552db 100644 --- a/src/test/ui/error-codes/E0195.stderr +++ b/src/test/ui/error-codes/E0195.stderr @@ -9,3 +9,4 @@ error[E0195]: lifetime parameters or bounds on method `bar` do not match the tra error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0195" diff --git a/src/test/ui/error-codes/E0197.stderr b/src/test/ui/error-codes/E0197.stderr index 277f523e497a..f1bb3e70ac3a 100644 --- a/src/test/ui/error-codes/E0197.stderr +++ b/src/test/ui/error-codes/E0197.stderr @@ -6,3 +6,4 @@ error[E0197]: inherent impls cannot be unsafe error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0197" diff --git a/src/test/ui/error-codes/E0198.stderr b/src/test/ui/error-codes/E0198.stderr index a85419e9a139..d3b0088905e0 100644 --- a/src/test/ui/error-codes/E0198.stderr +++ b/src/test/ui/error-codes/E0198.stderr @@ -6,3 +6,4 @@ error[E0198]: negative impls cannot be unsafe error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0198" diff --git a/src/test/ui/error-codes/E0199.stderr b/src/test/ui/error-codes/E0199.stderr index efbe066e52e7..a97b2b90ffeb 100644 --- a/src/test/ui/error-codes/E0199.stderr +++ b/src/test/ui/error-codes/E0199.stderr @@ -6,3 +6,4 @@ error[E0199]: implementing the trait `Bar` is not unsafe error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0199" diff --git a/src/test/ui/error-codes/E0200.stderr b/src/test/ui/error-codes/E0200.stderr index fb71da23677b..ee70e9495333 100644 --- a/src/test/ui/error-codes/E0200.stderr +++ b/src/test/ui/error-codes/E0200.stderr @@ -6,3 +6,4 @@ error[E0200]: the trait `Bar` requires an `unsafe impl` declaration error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0200" diff --git a/src/test/ui/error-codes/E0201.stderr b/src/test/ui/error-codes/E0201.stderr index 01dbee6e0923..aa17639c13b8 100644 --- a/src/test/ui/error-codes/E0201.stderr +++ b/src/test/ui/error-codes/E0201.stderr @@ -25,3 +25,4 @@ error[E0201]: duplicate definitions with name `Quux`: error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0201" diff --git a/src/test/ui/error-codes/E0206.stderr b/src/test/ui/error-codes/E0206.stderr index 8eeb94a42f4b..7874d14fe61a 100644 --- a/src/test/ui/error-codes/E0206.stderr +++ b/src/test/ui/error-codes/E0206.stderr @@ -21,3 +21,5 @@ error[E0117]: only traits defined in the current crate can be implemented for ar error: aborting due to 3 previous errors +You've got a few errors: E0117, E0206 +If you want more information on an error, try using "rustc --explain E0117" diff --git a/src/test/ui/error-codes/E0207.stderr b/src/test/ui/error-codes/E0207.stderr index 35f9109fe99e..8cb6b976e170 100644 --- a/src/test/ui/error-codes/E0207.stderr +++ b/src/test/ui/error-codes/E0207.stderr @@ -6,3 +6,4 @@ error[E0207]: the type parameter `T` is not constrained by the impl trait, self error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0207" diff --git a/src/test/ui/error-codes/E0214.stderr b/src/test/ui/error-codes/E0214.stderr index 30f5b960a364..afe340cdd8d8 100644 --- a/src/test/ui/error-codes/E0214.stderr +++ b/src/test/ui/error-codes/E0214.stderr @@ -6,3 +6,4 @@ error[E0214]: parenthesized parameters may only be used with a trait error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0214" diff --git a/src/test/ui/error-codes/E0220.stderr b/src/test/ui/error-codes/E0220.stderr index 70b017b782f2..b431d137520e 100644 --- a/src/test/ui/error-codes/E0220.stderr +++ b/src/test/ui/error-codes/E0220.stderr @@ -12,3 +12,5 @@ error[E0191]: the value of the associated type `Bar` (from the trait `Trait`) mu error: aborting due to 2 previous errors +You've got a few errors: E0191, E0220 +If you want more information on an error, try using "rustc --explain E0191" diff --git a/src/test/ui/error-codes/E0221.stderr b/src/test/ui/error-codes/E0221.stderr index 3dd9393d6b32..1e9db4c8e7e9 100644 --- a/src/test/ui/error-codes/E0221.stderr +++ b/src/test/ui/error-codes/E0221.stderr @@ -27,3 +27,4 @@ note: associated type `Self` could derive from `std::str::FromStr` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0221" diff --git a/src/test/ui/error-codes/E0223.stderr b/src/test/ui/error-codes/E0223.stderr index efd0d7806581..65125791b2b7 100644 --- a/src/test/ui/error-codes/E0223.stderr +++ b/src/test/ui/error-codes/E0223.stderr @@ -8,3 +8,4 @@ error[E0223]: ambiguous associated type error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0223" diff --git a/src/test/ui/error-codes/E0225.stderr b/src/test/ui/error-codes/E0225.stderr index 35d40cb1017d..f1e8ca92db71 100644 --- a/src/test/ui/error-codes/E0225.stderr +++ b/src/test/ui/error-codes/E0225.stderr @@ -6,3 +6,4 @@ error[E0225]: only auto traits can be used as additional traits in a trait objec error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0225" diff --git a/src/test/ui/error-codes/E0229.stderr b/src/test/ui/error-codes/E0229.stderr index 6d88ef88bffc..556adc02fc96 100644 --- a/src/test/ui/error-codes/E0229.stderr +++ b/src/test/ui/error-codes/E0229.stderr @@ -6,3 +6,4 @@ error[E0229]: associated type bindings are not allowed here error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0229" diff --git a/src/test/ui/error-codes/E0232.stderr b/src/test/ui/error-codes/E0232.stderr index e13ba62b073c..6633b0b592bb 100644 --- a/src/test/ui/error-codes/E0232.stderr +++ b/src/test/ui/error-codes/E0232.stderr @@ -8,3 +8,4 @@ error[E0232]: `#[rustc_on_unimplemented]` requires a value error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0232" diff --git a/src/test/ui/error-codes/E0243.stderr b/src/test/ui/error-codes/E0243.stderr index 82a90fff3420..c3aa61f106a1 100644 --- a/src/test/ui/error-codes/E0243.stderr +++ b/src/test/ui/error-codes/E0243.stderr @@ -6,3 +6,4 @@ error[E0243]: wrong number of type arguments: expected 1, found 0 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0243" diff --git a/src/test/ui/error-codes/E0244.stderr b/src/test/ui/error-codes/E0244.stderr index d873fbe9819f..06dd74e9a67e 100644 --- a/src/test/ui/error-codes/E0244.stderr +++ b/src/test/ui/error-codes/E0244.stderr @@ -6,3 +6,4 @@ error[E0244]: wrong number of type arguments: expected 0, found 2 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0244" diff --git a/src/test/ui/error-codes/E0252.stderr b/src/test/ui/error-codes/E0252.stderr index f63597d69708..db842bb47736 100644 --- a/src/test/ui/error-codes/E0252.stderr +++ b/src/test/ui/error-codes/E0252.stderr @@ -14,3 +14,4 @@ help: You can use `as` to change the binding name of the import error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0252" diff --git a/src/test/ui/error-codes/E0253.stderr b/src/test/ui/error-codes/E0253.stderr index e5a311537810..736e3037a84d 100644 --- a/src/test/ui/error-codes/E0253.stderr +++ b/src/test/ui/error-codes/E0253.stderr @@ -6,3 +6,4 @@ error[E0253]: `do_something` is not directly importable error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0253" diff --git a/src/test/ui/error-codes/E0254.stderr b/src/test/ui/error-codes/E0254.stderr index 4181c7b1f7fb..bab28d27ec6b 100644 --- a/src/test/ui/error-codes/E0254.stderr +++ b/src/test/ui/error-codes/E0254.stderr @@ -15,3 +15,4 @@ help: You can use `as` to change the binding name of the import error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0254" diff --git a/src/test/ui/error-codes/E0255.stderr b/src/test/ui/error-codes/E0255.stderr index 924ac49695c6..56440936035b 100644 --- a/src/test/ui/error-codes/E0255.stderr +++ b/src/test/ui/error-codes/E0255.stderr @@ -15,3 +15,4 @@ help: You can use `as` to change the binding name of the import error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0255" diff --git a/src/test/ui/error-codes/E0259.stderr b/src/test/ui/error-codes/E0259.stderr index e05e4e1cac74..cf1131d38afd 100644 --- a/src/test/ui/error-codes/E0259.stderr +++ b/src/test/ui/error-codes/E0259.stderr @@ -14,3 +14,4 @@ error[E0259]: the name `alloc` is defined multiple times error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0259" diff --git a/src/test/ui/error-codes/E0260.stderr b/src/test/ui/error-codes/E0260.stderr index 3d899e636ee3..3a22329790e9 100644 --- a/src/test/ui/error-codes/E0260.stderr +++ b/src/test/ui/error-codes/E0260.stderr @@ -15,3 +15,4 @@ help: You can use `as` to change the binding name of the import error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0260" diff --git a/src/test/ui/error-codes/E0261.stderr b/src/test/ui/error-codes/E0261.stderr index c8dd08211ecb..34a56ff9e5ef 100644 --- a/src/test/ui/error-codes/E0261.stderr +++ b/src/test/ui/error-codes/E0261.stderr @@ -12,3 +12,4 @@ error[E0261]: use of undeclared lifetime name `'a` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0261" diff --git a/src/test/ui/error-codes/E0262.stderr b/src/test/ui/error-codes/E0262.stderr index 0910009d2c0d..f40f378d1be7 100644 --- a/src/test/ui/error-codes/E0262.stderr +++ b/src/test/ui/error-codes/E0262.stderr @@ -6,3 +6,4 @@ error[E0262]: invalid lifetime parameter name: `'static` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0262" diff --git a/src/test/ui/error-codes/E0263.stderr b/src/test/ui/error-codes/E0263.stderr index 942718d50f72..43febfbf236b 100644 --- a/src/test/ui/error-codes/E0263.stderr +++ b/src/test/ui/error-codes/E0263.stderr @@ -8,3 +8,4 @@ error[E0263]: lifetime name `'a` declared twice in the same scope error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0263" diff --git a/src/test/ui/error-codes/E0264.stderr b/src/test/ui/error-codes/E0264.stderr index b10494633edf..c415bfdb865d 100644 --- a/src/test/ui/error-codes/E0264.stderr +++ b/src/test/ui/error-codes/E0264.stderr @@ -6,3 +6,4 @@ error[E0264]: unknown external lang item: `cake` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0264" diff --git a/src/test/ui/error-codes/E0267.stderr b/src/test/ui/error-codes/E0267.stderr index 2f6d9c72eeb1..cd35aeee1e6d 100644 --- a/src/test/ui/error-codes/E0267.stderr +++ b/src/test/ui/error-codes/E0267.stderr @@ -6,3 +6,4 @@ error[E0267]: `break` inside of a closure error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0267" diff --git a/src/test/ui/error-codes/E0268.stderr b/src/test/ui/error-codes/E0268.stderr index cf89e46af047..52f72e23f3a6 100644 --- a/src/test/ui/error-codes/E0268.stderr +++ b/src/test/ui/error-codes/E0268.stderr @@ -6,3 +6,4 @@ error[E0268]: `break` outside of loop error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0268" diff --git a/src/test/ui/error-codes/E0271.stderr b/src/test/ui/error-codes/E0271.stderr index c596b560ea7f..a8222549b643 100644 --- a/src/test/ui/error-codes/E0271.stderr +++ b/src/test/ui/error-codes/E0271.stderr @@ -14,3 +14,4 @@ note: required by `foo` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0271" diff --git a/src/test/ui/error-codes/E0275.stderr b/src/test/ui/error-codes/E0275.stderr index 2dbe5be21554..a9d37a7049cf 100644 --- a/src/test/ui/error-codes/E0275.stderr +++ b/src/test/ui/error-codes/E0275.stderr @@ -77,3 +77,4 @@ note: required by `Foo` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0275" diff --git a/src/test/ui/error-codes/E0276.stderr b/src/test/ui/error-codes/E0276.stderr index bcbe81ac11a0..88f229a31883 100644 --- a/src/test/ui/error-codes/E0276.stderr +++ b/src/test/ui/error-codes/E0276.stderr @@ -9,3 +9,4 @@ error[E0276]: impl has stricter requirements than trait error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0276" diff --git a/src/test/ui/error-codes/E0277-2.stderr b/src/test/ui/error-codes/E0277-2.stderr index 6a0f21ef1443..f44a65befbe4 100644 --- a/src/test/ui/error-codes/E0277-2.stderr +++ b/src/test/ui/error-codes/E0277-2.stderr @@ -16,3 +16,4 @@ note: required by `is_send` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/error-codes/E0277.stderr b/src/test/ui/error-codes/E0277.stderr index 38d14ed7bce2..2e43add36b2b 100644 --- a/src/test/ui/error-codes/E0277.stderr +++ b/src/test/ui/error-codes/E0277.stderr @@ -22,3 +22,4 @@ note: required by `some_func` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/error-codes/E0282.stderr b/src/test/ui/error-codes/E0282.stderr index 835162740da9..2a5a31822ee0 100644 --- a/src/test/ui/error-codes/E0282.stderr +++ b/src/test/ui/error-codes/E0282.stderr @@ -9,3 +9,4 @@ error[E0282]: type annotations needed error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0282" diff --git a/src/test/ui/error-codes/E0283.stderr b/src/test/ui/error-codes/E0283.stderr index 9fdb6b178c4d..2eb2fb06260c 100644 --- a/src/test/ui/error-codes/E0283.stderr +++ b/src/test/ui/error-codes/E0283.stderr @@ -12,3 +12,4 @@ note: required by `Generator::create` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0283" diff --git a/src/test/ui/error-codes/E0296.stderr b/src/test/ui/error-codes/E0296.stderr index f6a2adc0ad3f..9dc54f670f6b 100644 --- a/src/test/ui/error-codes/E0296.stderr +++ b/src/test/ui/error-codes/E0296.stderr @@ -6,3 +6,4 @@ error[E0296]: malformed recursion limit attribute, expected #![recursion_limit=" error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0296" diff --git a/src/test/ui/error-codes/E0297.stderr b/src/test/ui/error-codes/E0297.stderr index 2dfed66ecaca..8d2489a10fa8 100644 --- a/src/test/ui/error-codes/E0297.stderr +++ b/src/test/ui/error-codes/E0297.stderr @@ -6,3 +6,4 @@ error[E0005]: refutable pattern in `for` loop binding: `None` not covered error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0005" diff --git a/src/test/ui/error-codes/E0301.stderr b/src/test/ui/error-codes/E0301.stderr index ff4ee32d47b0..9b294b055afb 100644 --- a/src/test/ui/error-codes/E0301.stderr +++ b/src/test/ui/error-codes/E0301.stderr @@ -6,3 +6,4 @@ error[E0301]: cannot mutably borrow in a pattern guard error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0301" diff --git a/src/test/ui/error-codes/E0302.stderr b/src/test/ui/error-codes/E0302.stderr index c7b33a490d1c..1a1641c0f878 100644 --- a/src/test/ui/error-codes/E0302.stderr +++ b/src/test/ui/error-codes/E0302.stderr @@ -6,3 +6,4 @@ error[E0302]: cannot assign in a pattern guard error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0302" diff --git a/src/test/ui/error-codes/E0303.stderr b/src/test/ui/error-codes/E0303.stderr index 6528c97a560d..8a51a087b681 100644 --- a/src/test/ui/error-codes/E0303.stderr +++ b/src/test/ui/error-codes/E0303.stderr @@ -15,3 +15,5 @@ error[E0303]: pattern bindings are not allowed after an `@` error: aborting due to 2 previous errors +You've got a few errors: E0009, E0303 +If you want more information on an error, try using "rustc --explain E0009" diff --git a/src/test/ui/error-codes/E0308-4.stderr b/src/test/ui/error-codes/E0308-4.stderr index 1e4beeae1769..a7b40c541844 100644 --- a/src/test/ui/error-codes/E0308-4.stderr +++ b/src/test/ui/error-codes/E0308-4.stderr @@ -6,3 +6,4 @@ error[E0308]: mismatched types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/error-codes/E0308.stderr b/src/test/ui/error-codes/E0308.stderr index 905b0210abfb..b137b8409241 100644 --- a/src/test/ui/error-codes/E0308.stderr +++ b/src/test/ui/error-codes/E0308.stderr @@ -9,3 +9,4 @@ error[E0308]: intrinsic has wrong type error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/error-codes/E0365.stderr b/src/test/ui/error-codes/E0365.stderr index ccb13856df9e..52830fc150fe 100644 --- a/src/test/ui/error-codes/E0365.stderr +++ b/src/test/ui/error-codes/E0365.stderr @@ -8,3 +8,4 @@ error[E0365]: `foo` is private, and cannot be re-exported error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0365" diff --git a/src/test/ui/error-codes/E0370.stderr b/src/test/ui/error-codes/E0370.stderr index 1f248f4ed2c2..5f96293e2142 100644 --- a/src/test/ui/error-codes/E0370.stderr +++ b/src/test/ui/error-codes/E0370.stderr @@ -8,3 +8,4 @@ error[E0370]: enum discriminant overflowed error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0370" diff --git a/src/test/ui/error-codes/E0374.stderr b/src/test/ui/error-codes/E0374.stderr index edd463d705c1..4d7c53adfac8 100644 --- a/src/test/ui/error-codes/E0374.stderr +++ b/src/test/ui/error-codes/E0374.stderr @@ -7,3 +7,4 @@ error[E0374]: the trait `CoerceUnsized` may only be implemented for a coercion b error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0374" diff --git a/src/test/ui/error-codes/E0375.stderr b/src/test/ui/error-codes/E0375.stderr index a37591521c8c..123ad197d933 100644 --- a/src/test/ui/error-codes/E0375.stderr +++ b/src/test/ui/error-codes/E0375.stderr @@ -9,3 +9,4 @@ error[E0375]: implementing the trait `CoerceUnsized` requires multiple coercions error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0375" diff --git a/src/test/ui/error-codes/E0376.stderr b/src/test/ui/error-codes/E0376.stderr index d036adb4e295..4b73b4aee519 100644 --- a/src/test/ui/error-codes/E0376.stderr +++ b/src/test/ui/error-codes/E0376.stderr @@ -6,3 +6,4 @@ error[E0376]: the trait `CoerceUnsized` may only be implemented for a coercion b error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0376" diff --git a/src/test/ui/error-codes/E0388.stderr b/src/test/ui/error-codes/E0388.stderr index ec210294cdbd..de32010b96a1 100644 --- a/src/test/ui/error-codes/E0388.stderr +++ b/src/test/ui/error-codes/E0388.stderr @@ -24,3 +24,5 @@ error[E0017]: references in statics may only refer to immutable values error: aborting due to 4 previous errors +You've got a few errors: E0017, E0596 +If you want more information on an error, try using "rustc --explain E0017" diff --git a/src/test/ui/error-codes/E0389.stderr b/src/test/ui/error-codes/E0389.stderr index e085329bac50..0a9e63a7223f 100644 --- a/src/test/ui/error-codes/E0389.stderr +++ b/src/test/ui/error-codes/E0389.stderr @@ -6,3 +6,4 @@ error[E0389]: cannot assign to data in a `&` reference error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0389" diff --git a/src/test/ui/error-codes/E0390.stderr b/src/test/ui/error-codes/E0390.stderr index a10b0b87f37b..2d2b5d64bda2 100644 --- a/src/test/ui/error-codes/E0390.stderr +++ b/src/test/ui/error-codes/E0390.stderr @@ -12,3 +12,4 @@ help: consider using a trait to implement these methods error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0390" diff --git a/src/test/ui/error-codes/E0392.stderr b/src/test/ui/error-codes/E0392.stderr index 6c466cbb52e3..c291bfc5ac73 100644 --- a/src/test/ui/error-codes/E0392.stderr +++ b/src/test/ui/error-codes/E0392.stderr @@ -8,3 +8,4 @@ error[E0392]: parameter `T` is never used error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0392" diff --git a/src/test/ui/error-codes/E0393.stderr b/src/test/ui/error-codes/E0393.stderr index 10728e21901c..33aa79f1d34e 100644 --- a/src/test/ui/error-codes/E0393.stderr +++ b/src/test/ui/error-codes/E0393.stderr @@ -8,3 +8,4 @@ error[E0393]: the type parameter `T` must be explicitly specified error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0393" diff --git a/src/test/ui/error-codes/E0394.stderr b/src/test/ui/error-codes/E0394.stderr index 728cec103255..3fec25ac3d6c 100644 --- a/src/test/ui/error-codes/E0394.stderr +++ b/src/test/ui/error-codes/E0394.stderr @@ -8,3 +8,4 @@ error[E0394]: cannot refer to other statics by value, use the address-of operato error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0394" diff --git a/src/test/ui/error-codes/E0395.stderr b/src/test/ui/error-codes/E0395.stderr index e6d76a696d3c..41d47397caf9 100644 --- a/src/test/ui/error-codes/E0395.stderr +++ b/src/test/ui/error-codes/E0395.stderr @@ -6,3 +6,4 @@ error[E0395]: raw pointers cannot be compared in statics error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0395" diff --git a/src/test/ui/error-codes/E0396.stderr b/src/test/ui/error-codes/E0396.stderr index 5c5c01cb9885..a2b73d5789c2 100644 --- a/src/test/ui/error-codes/E0396.stderr +++ b/src/test/ui/error-codes/E0396.stderr @@ -6,3 +6,4 @@ error[E0396]: raw pointers cannot be dereferenced in constants error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0396" diff --git a/src/test/ui/error-codes/E0401.stderr b/src/test/ui/error-codes/E0401.stderr index d63aa378eee7..a69da16477fe 100644 --- a/src/test/ui/error-codes/E0401.stderr +++ b/src/test/ui/error-codes/E0401.stderr @@ -6,3 +6,4 @@ error[E0401]: can't use type parameters from outer function; try using a local t error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0401" diff --git a/src/test/ui/error-codes/E0403.stderr b/src/test/ui/error-codes/E0403.stderr index 125af35cb579..2589be707779 100644 --- a/src/test/ui/error-codes/E0403.stderr +++ b/src/test/ui/error-codes/E0403.stderr @@ -8,3 +8,4 @@ error[E0403]: the name `T` is already used for a type parameter in this type par error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0403" diff --git a/src/test/ui/error-codes/E0404.stderr b/src/test/ui/error-codes/E0404.stderr index c30d8c00b80e..75e36157b983 100644 --- a/src/test/ui/error-codes/E0404.stderr +++ b/src/test/ui/error-codes/E0404.stderr @@ -6,3 +6,4 @@ error[E0404]: expected trait, found struct `Foo` error: cannot continue compilation due to previous error +If you want more information on this error, try using "rustc --explain E0404" diff --git a/src/test/ui/error-codes/E0405.stderr b/src/test/ui/error-codes/E0405.stderr index 29bab3f6dd99..269b03179e07 100644 --- a/src/test/ui/error-codes/E0405.stderr +++ b/src/test/ui/error-codes/E0405.stderr @@ -6,3 +6,4 @@ error[E0405]: cannot find trait `SomeTrait` in this scope error: cannot continue compilation due to previous error +If you want more information on this error, try using "rustc --explain E0405" diff --git a/src/test/ui/error-codes/E0407.stderr b/src/test/ui/error-codes/E0407.stderr index f71437cd6b07..28486c92bf52 100644 --- a/src/test/ui/error-codes/E0407.stderr +++ b/src/test/ui/error-codes/E0407.stderr @@ -6,3 +6,4 @@ error[E0407]: method `b` is not a member of trait `Foo` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0407" diff --git a/src/test/ui/error-codes/E0408.stderr b/src/test/ui/error-codes/E0408.stderr index 1c66bb0e5f07..4280947c574a 100644 --- a/src/test/ui/error-codes/E0408.stderr +++ b/src/test/ui/error-codes/E0408.stderr @@ -8,3 +8,4 @@ error[E0408]: variable `y` is not bound in all patterns error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0408" diff --git a/src/test/ui/error-codes/E0411.stderr b/src/test/ui/error-codes/E0411.stderr index dda922b5b689..b2727806655c 100644 --- a/src/test/ui/error-codes/E0411.stderr +++ b/src/test/ui/error-codes/E0411.stderr @@ -6,3 +6,4 @@ error[E0411]: cannot find type `Self` in this scope error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0411" diff --git a/src/test/ui/error-codes/E0412.stderr b/src/test/ui/error-codes/E0412.stderr index 6ee2125af04e..daeef5bdfce0 100644 --- a/src/test/ui/error-codes/E0412.stderr +++ b/src/test/ui/error-codes/E0412.stderr @@ -6,3 +6,4 @@ error[E0412]: cannot find type `Something` in this scope error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0412" diff --git a/src/test/ui/error-codes/E0415.stderr b/src/test/ui/error-codes/E0415.stderr index 5e5cfe16e503..9ae1700727a2 100644 --- a/src/test/ui/error-codes/E0415.stderr +++ b/src/test/ui/error-codes/E0415.stderr @@ -6,3 +6,4 @@ error[E0415]: identifier `f` is bound more than once in this parameter list error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0415" diff --git a/src/test/ui/error-codes/E0416.stderr b/src/test/ui/error-codes/E0416.stderr index a48a3ade5c9a..b86cc8d67292 100644 --- a/src/test/ui/error-codes/E0416.stderr +++ b/src/test/ui/error-codes/E0416.stderr @@ -6,3 +6,4 @@ error[E0416]: identifier `x` is bound more than once in the same pattern error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0416" diff --git a/src/test/ui/error-codes/E0423.stderr b/src/test/ui/error-codes/E0423.stderr index aee398efedde..7bc9bc2b43bb 100644 --- a/src/test/ui/error-codes/E0423.stderr +++ b/src/test/ui/error-codes/E0423.stderr @@ -6,3 +6,4 @@ error[E0423]: expected function, found struct `Foo` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0423" diff --git a/src/test/ui/error-codes/E0424.stderr b/src/test/ui/error-codes/E0424.stderr index d1fd432f4f03..f778af9f4110 100644 --- a/src/test/ui/error-codes/E0424.stderr +++ b/src/test/ui/error-codes/E0424.stderr @@ -6,3 +6,4 @@ error[E0424]: expected value, found module `self` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0424" diff --git a/src/test/ui/error-codes/E0425.stderr b/src/test/ui/error-codes/E0425.stderr index 250ecaeb368e..d836b9ddfda7 100644 --- a/src/test/ui/error-codes/E0425.stderr +++ b/src/test/ui/error-codes/E0425.stderr @@ -6,3 +6,4 @@ error[E0425]: cannot find value `elf` in this scope error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0425" diff --git a/src/test/ui/error-codes/E0426.stderr b/src/test/ui/error-codes/E0426.stderr index bb05effd732c..088a6db16aca 100644 --- a/src/test/ui/error-codes/E0426.stderr +++ b/src/test/ui/error-codes/E0426.stderr @@ -6,3 +6,4 @@ error[E0426]: use of undeclared label `'a` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0426" diff --git a/src/test/ui/error-codes/E0428.stderr b/src/test/ui/error-codes/E0428.stderr index c739536c0ab5..1e9072e65dbc 100644 --- a/src/test/ui/error-codes/E0428.stderr +++ b/src/test/ui/error-codes/E0428.stderr @@ -10,3 +10,4 @@ error[E0428]: the name `Bar` is defined multiple times error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0428" diff --git a/src/test/ui/error-codes/E0429.stderr b/src/test/ui/error-codes/E0429.stderr index 96cf50500fdb..b5a78e6d3520 100644 --- a/src/test/ui/error-codes/E0429.stderr +++ b/src/test/ui/error-codes/E0429.stderr @@ -6,3 +6,4 @@ error[E0429]: `self` imports are only allowed within a { } list error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0429" diff --git a/src/test/ui/error-codes/E0430.stderr b/src/test/ui/error-codes/E0430.stderr index b5c80aa23f62..0bc6ffb6bf94 100644 --- a/src/test/ui/error-codes/E0430.stderr +++ b/src/test/ui/error-codes/E0430.stderr @@ -22,3 +22,5 @@ help: You can use `as` to change the binding name of the import error: aborting due to 2 previous errors +You've got a few errors: E0252, E0430 +If you want more information on an error, try using "rustc --explain E0252" diff --git a/src/test/ui/error-codes/E0431.stderr b/src/test/ui/error-codes/E0431.stderr index c7a786b7402d..29fbaf2a677d 100644 --- a/src/test/ui/error-codes/E0431.stderr +++ b/src/test/ui/error-codes/E0431.stderr @@ -6,3 +6,4 @@ error[E0431]: `self` import can only appear in an import list with a non-empty p error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0431" diff --git a/src/test/ui/error-codes/E0432.stderr b/src/test/ui/error-codes/E0432.stderr index 6d808f038a33..4b47ceb3aa67 100644 --- a/src/test/ui/error-codes/E0432.stderr +++ b/src/test/ui/error-codes/E0432.stderr @@ -6,3 +6,4 @@ error[E0432]: unresolved import `something` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0432" diff --git a/src/test/ui/error-codes/E0433.stderr b/src/test/ui/error-codes/E0433.stderr index 691c5922f8fb..46cc308992dc 100644 --- a/src/test/ui/error-codes/E0433.stderr +++ b/src/test/ui/error-codes/E0433.stderr @@ -6,3 +6,4 @@ error[E0433]: failed to resolve. Use of undeclared type or module `HashMap` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0433" diff --git a/src/test/ui/error-codes/E0434.stderr b/src/test/ui/error-codes/E0434.stderr index 06880acdb357..3963b4ec695f 100644 --- a/src/test/ui/error-codes/E0434.stderr +++ b/src/test/ui/error-codes/E0434.stderr @@ -8,3 +8,4 @@ error[E0434]: can't capture dynamic environment in a fn item error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0434" diff --git a/src/test/ui/error-codes/E0435.stderr b/src/test/ui/error-codes/E0435.stderr index 855903b7ec35..e3468ca409ed 100644 --- a/src/test/ui/error-codes/E0435.stderr +++ b/src/test/ui/error-codes/E0435.stderr @@ -6,3 +6,4 @@ error[E0435]: attempt to use a non-constant value in a constant error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0435" diff --git a/src/test/ui/error-codes/E0437.stderr b/src/test/ui/error-codes/E0437.stderr index ffad571d0612..7cb07e984701 100644 --- a/src/test/ui/error-codes/E0437.stderr +++ b/src/test/ui/error-codes/E0437.stderr @@ -6,3 +6,4 @@ error[E0437]: type `Bar` is not a member of trait `Foo` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0437" diff --git a/src/test/ui/error-codes/E0438.stderr b/src/test/ui/error-codes/E0438.stderr index df587395356f..ecea63eb86f8 100644 --- a/src/test/ui/error-codes/E0438.stderr +++ b/src/test/ui/error-codes/E0438.stderr @@ -6,3 +6,4 @@ error[E0438]: const `BAR` is not a member of trait `Bar` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0438" diff --git a/src/test/ui/error-codes/E0439.stderr b/src/test/ui/error-codes/E0439.stderr index 77930d5e08d9..418a8b67005a 100644 --- a/src/test/ui/error-codes/E0439.stderr +++ b/src/test/ui/error-codes/E0439.stderr @@ -6,3 +6,4 @@ error[E0439]: invalid `simd_shuffle`, needs length: `simd_shuffle` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0439" diff --git a/src/test/ui/error-codes/E0440.stderr b/src/test/ui/error-codes/E0440.stderr index 83210a996e0e..32eef81cf598 100644 --- a/src/test/ui/error-codes/E0440.stderr +++ b/src/test/ui/error-codes/E0440.stderr @@ -6,3 +6,4 @@ error[E0440]: platform-specific intrinsic has wrong number of type parameters: f error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0440" diff --git a/src/test/ui/error-codes/E0441.stderr b/src/test/ui/error-codes/E0441.stderr index 34a387e64597..d8bcc3d1396e 100644 --- a/src/test/ui/error-codes/E0441.stderr +++ b/src/test/ui/error-codes/E0441.stderr @@ -6,3 +6,4 @@ error[E0441]: unrecognized platform-specific intrinsic function: `x86_mm_adds_ep error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0441" diff --git a/src/test/ui/error-codes/E0442.stderr b/src/test/ui/error-codes/E0442.stderr index 6f19fd17eb2d..86cfb607c2e8 100644 --- a/src/test/ui/error-codes/E0442.stderr +++ b/src/test/ui/error-codes/E0442.stderr @@ -18,3 +18,4 @@ error[E0442]: intrinsic return value has wrong type: found vector with length 2, error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0442" diff --git a/src/test/ui/error-codes/E0443.stderr b/src/test/ui/error-codes/E0443.stderr index ebf8ef5ccf10..b929ff049d04 100644 --- a/src/test/ui/error-codes/E0443.stderr +++ b/src/test/ui/error-codes/E0443.stderr @@ -6,3 +6,4 @@ error[E0443]: intrinsic return value has wrong type: found `i64x8`, expected `i1 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0443" diff --git a/src/test/ui/error-codes/E0444.stderr b/src/test/ui/error-codes/E0444.stderr index e44d9457045c..f1d3064c0dee 100644 --- a/src/test/ui/error-codes/E0444.stderr +++ b/src/test/ui/error-codes/E0444.stderr @@ -6,3 +6,4 @@ error[E0444]: platform-specific intrinsic has invalid number of arguments: found error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0444" diff --git a/src/test/ui/error-codes/E0445.stderr b/src/test/ui/error-codes/E0445.stderr index 7b599543e00c..c7f59695e0cf 100644 --- a/src/test/ui/error-codes/E0445.stderr +++ b/src/test/ui/error-codes/E0445.stderr @@ -18,3 +18,4 @@ error[E0445]: private trait `Foo` in public interface error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0445" diff --git a/src/test/ui/error-codes/E0446.stderr b/src/test/ui/error-codes/E0446.stderr index 1b61ca9b1773..ceb949f884c1 100644 --- a/src/test/ui/error-codes/E0446.stderr +++ b/src/test/ui/error-codes/E0446.stderr @@ -8,3 +8,4 @@ error[E0446]: private type `Foo::Bar` in public interface error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0446" diff --git a/src/test/ui/error-codes/E0449.stderr b/src/test/ui/error-codes/E0449.stderr index 3587319ed0cb..4ec7178ba6ca 100644 --- a/src/test/ui/error-codes/E0449.stderr +++ b/src/test/ui/error-codes/E0449.stderr @@ -20,3 +20,4 @@ error[E0449]: unnecessary visibility qualifier error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0449" diff --git a/src/test/ui/error-codes/E0451.stderr b/src/test/ui/error-codes/E0451.stderr index 0c29bee849b3..a1c4929fce7d 100644 --- a/src/test/ui/error-codes/E0451.stderr +++ b/src/test/ui/error-codes/E0451.stderr @@ -12,3 +12,4 @@ error[E0451]: field `b` of struct `Bar::Foo` is private error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0451" diff --git a/src/test/ui/error-codes/E0452.stderr b/src/test/ui/error-codes/E0452.stderr index d63d0edc2c60..36c6052abb19 100644 --- a/src/test/ui/error-codes/E0452.stderr +++ b/src/test/ui/error-codes/E0452.stderr @@ -6,3 +6,4 @@ error[E0452]: malformed lint attribute error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0452" diff --git a/src/test/ui/error-codes/E0453.stderr b/src/test/ui/error-codes/E0453.stderr index 467784f33674..affad8a5861a 100644 --- a/src/test/ui/error-codes/E0453.stderr +++ b/src/test/ui/error-codes/E0453.stderr @@ -9,3 +9,4 @@ error[E0453]: allow(non_snake_case) overruled by outer forbid(non_snake_case) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0453" diff --git a/src/test/ui/error-codes/E0454.stderr b/src/test/ui/error-codes/E0454.stderr index aee8b53e39dd..e127a54dc103 100644 --- a/src/test/ui/error-codes/E0454.stderr +++ b/src/test/ui/error-codes/E0454.stderr @@ -6,3 +6,4 @@ error[E0454]: #[link(name = "")] given with empty name error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0454" diff --git a/src/test/ui/error-codes/E0458.stderr b/src/test/ui/error-codes/E0458.stderr index 9cdd0d5f3003..2ecc7772598f 100644 --- a/src/test/ui/error-codes/E0458.stderr +++ b/src/test/ui/error-codes/E0458.stderr @@ -12,3 +12,5 @@ error[E0459]: #[link(...)] specified without `name = "foo"` error: aborting due to 2 previous errors +You've got a few errors: E0458, E0459 +If you want more information on an error, try using "rustc --explain E0458" diff --git a/src/test/ui/error-codes/E0459.stderr b/src/test/ui/error-codes/E0459.stderr index 512788e1948a..b6d5f8983b30 100644 --- a/src/test/ui/error-codes/E0459.stderr +++ b/src/test/ui/error-codes/E0459.stderr @@ -6,3 +6,4 @@ error[E0459]: #[link(...)] specified without `name = "foo"` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0459" diff --git a/src/test/ui/error-codes/E0463.stderr b/src/test/ui/error-codes/E0463.stderr index 208c00cc7c97..830d48e57f78 100644 --- a/src/test/ui/error-codes/E0463.stderr +++ b/src/test/ui/error-codes/E0463.stderr @@ -6,3 +6,4 @@ error[E0463]: can't find crate for `cookie_monster` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0463" diff --git a/src/test/ui/error-codes/E0478.stderr b/src/test/ui/error-codes/E0478.stderr index f909fa48c276..53d3e5c01380 100644 --- a/src/test/ui/error-codes/E0478.stderr +++ b/src/test/ui/error-codes/E0478.stderr @@ -17,3 +17,4 @@ note: but lifetime parameter must outlive the lifetime 'kiss as defined on the s error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0478" diff --git a/src/test/ui/error-codes/E0492.stderr b/src/test/ui/error-codes/E0492.stderr index c19896623128..e08878a9e8d1 100644 --- a/src/test/ui/error-codes/E0492.stderr +++ b/src/test/ui/error-codes/E0492.stderr @@ -6,3 +6,4 @@ error[E0492]: cannot borrow a constant which may contain interior mutability, cr error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0492" diff --git a/src/test/ui/error-codes/E0494.stderr b/src/test/ui/error-codes/E0494.stderr index 1d5ded5bd9aa..e0dda17cea0f 100644 --- a/src/test/ui/error-codes/E0494.stderr +++ b/src/test/ui/error-codes/E0494.stderr @@ -6,3 +6,4 @@ error[E0494]: cannot refer to the interior of another static, use a constant ins error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0494" diff --git a/src/test/ui/error-codes/E0496.stderr b/src/test/ui/error-codes/E0496.stderr index ab9a08a53489..c68e8810f566 100644 --- a/src/test/ui/error-codes/E0496.stderr +++ b/src/test/ui/error-codes/E0496.stderr @@ -8,3 +8,4 @@ error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scop error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0496" diff --git a/src/test/ui/error-codes/E0499.stderr b/src/test/ui/error-codes/E0499.stderr index c3057d9b558d..7bb752be4325 100644 --- a/src/test/ui/error-codes/E0499.stderr +++ b/src/test/ui/error-codes/E0499.stderr @@ -10,3 +10,4 @@ error[E0499]: cannot borrow `i` as mutable more than once at a time error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0499" diff --git a/src/test/ui/error-codes/E0502.stderr b/src/test/ui/error-codes/E0502.stderr index e578cffe5646..ae96fa38f640 100644 --- a/src/test/ui/error-codes/E0502.stderr +++ b/src/test/ui/error-codes/E0502.stderr @@ -10,3 +10,4 @@ error[E0502]: cannot borrow `*a` as mutable because `a` is also borrowed as immu error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0502" diff --git a/src/test/ui/error-codes/E0503.stderr b/src/test/ui/error-codes/E0503.stderr index 112e2c477802..23a1e13b4a5f 100644 --- a/src/test/ui/error-codes/E0503.stderr +++ b/src/test/ui/error-codes/E0503.stderr @@ -8,3 +8,4 @@ error[E0503]: cannot use `value` because it was mutably borrowed error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0503" diff --git a/src/test/ui/error-codes/E0504.stderr b/src/test/ui/error-codes/E0504.stderr index 0f1b183dba92..4003c8ed4dde 100644 --- a/src/test/ui/error-codes/E0504.stderr +++ b/src/test/ui/error-codes/E0504.stderr @@ -9,3 +9,4 @@ error[E0504]: cannot move `fancy_num` into closure because it is borrowed error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0504" diff --git a/src/test/ui/error-codes/E0505.stderr b/src/test/ui/error-codes/E0505.stderr index dfb327d48eaa..d2db97835b88 100644 --- a/src/test/ui/error-codes/E0505.stderr +++ b/src/test/ui/error-codes/E0505.stderr @@ -8,3 +8,4 @@ error[E0505]: cannot move out of `x` because it is borrowed error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0505" diff --git a/src/test/ui/error-codes/E0507.stderr b/src/test/ui/error-codes/E0507.stderr index 407ebb8fc7be..59345a237036 100644 --- a/src/test/ui/error-codes/E0507.stderr +++ b/src/test/ui/error-codes/E0507.stderr @@ -6,3 +6,4 @@ error[E0507]: cannot move out of borrowed content error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0507" diff --git a/src/test/ui/error-codes/E0509.stderr b/src/test/ui/error-codes/E0509.stderr index 6da0fdbeb34e..8e0638697c68 100644 --- a/src/test/ui/error-codes/E0509.stderr +++ b/src/test/ui/error-codes/E0509.stderr @@ -9,3 +9,4 @@ error[E0509]: cannot move out of type `DropStruct`, which implements the `Drop` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0509" diff --git a/src/test/ui/error-codes/E0511.stderr b/src/test/ui/error-codes/E0511.stderr index b714350393b6..a926535c9380 100644 --- a/src/test/ui/error-codes/E0511.stderr +++ b/src/test/ui/error-codes/E0511.stderr @@ -6,3 +6,4 @@ error[E0511]: invalid monomorphization of `simd_add` intrinsic: expected SIMD in error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0511" diff --git a/src/test/ui/error-codes/E0512.stderr b/src/test/ui/error-codes/E0512.stderr index ad25bb216a39..ca2845d6e550 100644 --- a/src/test/ui/error-codes/E0512.stderr +++ b/src/test/ui/error-codes/E0512.stderr @@ -9,3 +9,4 @@ error[E0512]: transmute called with types of different sizes error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0512" diff --git a/src/test/ui/error-codes/E0516.stderr b/src/test/ui/error-codes/E0516.stderr index 620929653f66..3417ac19ab06 100644 --- a/src/test/ui/error-codes/E0516.stderr +++ b/src/test/ui/error-codes/E0516.stderr @@ -6,3 +6,4 @@ error[E0516]: `typeof` is a reserved keyword but unimplemented error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0516" diff --git a/src/test/ui/error-codes/E0517.stderr b/src/test/ui/error-codes/E0517.stderr index 968c47fa7a26..8dc45703fe91 100644 --- a/src/test/ui/error-codes/E0517.stderr +++ b/src/test/ui/error-codes/E0517.stderr @@ -33,3 +33,4 @@ error[E0517]: attribute should be applied to struct, enum or union error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0517" diff --git a/src/test/ui/error-codes/E0518.stderr b/src/test/ui/error-codes/E0518.stderr index 99a4a63cc9f2..3120b6a8bfb4 100644 --- a/src/test/ui/error-codes/E0518.stderr +++ b/src/test/ui/error-codes/E0518.stderr @@ -17,3 +17,4 @@ error[E0518]: attribute should be applied to function error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0518" diff --git a/src/test/ui/error-codes/E0520.stderr b/src/test/ui/error-codes/E0520.stderr index 272c38859ab0..9d9e86ac6fc0 100644 --- a/src/test/ui/error-codes/E0520.stderr +++ b/src/test/ui/error-codes/E0520.stderr @@ -13,3 +13,4 @@ error[E0520]: `fly` specializes an item from a parent `impl`, but that item is n error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0520" diff --git a/src/test/ui/error-codes/E0522.stderr b/src/test/ui/error-codes/E0522.stderr index 819fab0088f5..3c3527c7ef74 100644 --- a/src/test/ui/error-codes/E0522.stderr +++ b/src/test/ui/error-codes/E0522.stderr @@ -8,3 +8,5 @@ error[E0522]: definition of an unknown language item: `cookie` error: aborting due to 2 previous errors +You've got a few errors: E0522, E0601 +If you want more information on an error, try using "rustc --explain E0522" diff --git a/src/test/ui/error-codes/E0527.stderr b/src/test/ui/error-codes/E0527.stderr index 7cd705e6d0b9..2041ed2282a8 100644 --- a/src/test/ui/error-codes/E0527.stderr +++ b/src/test/ui/error-codes/E0527.stderr @@ -6,3 +6,4 @@ error[E0527]: pattern requires 2 elements but array has 4 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0527" diff --git a/src/test/ui/error-codes/E0528.stderr b/src/test/ui/error-codes/E0528.stderr index ff75b07ced60..1b353efd3a92 100644 --- a/src/test/ui/error-codes/E0528.stderr +++ b/src/test/ui/error-codes/E0528.stderr @@ -6,3 +6,4 @@ error[E0528]: pattern requires at least 3 elements but array has 2 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0528" diff --git a/src/test/ui/error-codes/E0529.stderr b/src/test/ui/error-codes/E0529.stderr index be9039be2b66..bb49f9d6451d 100644 --- a/src/test/ui/error-codes/E0529.stderr +++ b/src/test/ui/error-codes/E0529.stderr @@ -6,3 +6,4 @@ error[E0529]: expected an array or slice, found `f32` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0529" diff --git a/src/test/ui/error-codes/E0530.stderr b/src/test/ui/error-codes/E0530.stderr index 7c0306cc772f..4e92db34b040 100644 --- a/src/test/ui/error-codes/E0530.stderr +++ b/src/test/ui/error-codes/E0530.stderr @@ -9,3 +9,4 @@ error[E0530]: match bindings cannot shadow statics error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0530" diff --git a/src/test/ui/error-codes/E0532.stderr b/src/test/ui/error-codes/E0532.stderr index 4eb91ce35d44..48d7cd5d545c 100644 --- a/src/test/ui/error-codes/E0532.stderr +++ b/src/test/ui/error-codes/E0532.stderr @@ -6,3 +6,4 @@ error[E0532]: expected tuple struct/variant, found constant `StructConst1` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0532" diff --git a/src/test/ui/error-codes/E0534.stderr b/src/test/ui/error-codes/E0534.stderr index fe7a5483e59d..58b183cd98da 100644 --- a/src/test/ui/error-codes/E0534.stderr +++ b/src/test/ui/error-codes/E0534.stderr @@ -6,3 +6,4 @@ error[E0534]: expected one argument error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0534" diff --git a/src/test/ui/error-codes/E0558.stderr b/src/test/ui/error-codes/E0558.stderr index c116201794d4..5a4219a5b7d0 100644 --- a/src/test/ui/error-codes/E0558.stderr +++ b/src/test/ui/error-codes/E0558.stderr @@ -6,3 +6,4 @@ error[E0558]: export_name attribute has invalid format error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0558" diff --git a/src/test/ui/error-codes/E0559.stderr b/src/test/ui/error-codes/E0559.stderr index 0bdf104ec6b2..c5a2aa6a9498 100644 --- a/src/test/ui/error-codes/E0559.stderr +++ b/src/test/ui/error-codes/E0559.stderr @@ -8,3 +8,4 @@ error[E0559]: variant `Field::Fool` has no field named `joke` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0559" diff --git a/src/test/ui/error-codes/E0560.stderr b/src/test/ui/error-codes/E0560.stderr index aedd2d59142a..71b2bfb32adc 100644 --- a/src/test/ui/error-codes/E0560.stderr +++ b/src/test/ui/error-codes/E0560.stderr @@ -8,3 +8,4 @@ error[E0560]: struct `Simba` has no field named `father` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0560" diff --git a/src/test/ui/error-codes/E0565-1.stderr b/src/test/ui/error-codes/E0565-1.stderr index 65b917ad4bd3..9491f5ac7e3d 100644 --- a/src/test/ui/error-codes/E0565-1.stderr +++ b/src/test/ui/error-codes/E0565-1.stderr @@ -6,3 +6,4 @@ error[E0565]: unsupported literal error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0565" diff --git a/src/test/ui/error-codes/E0565.stderr b/src/test/ui/error-codes/E0565.stderr index 0041b7689a67..757c3fcdd7a0 100644 --- a/src/test/ui/error-codes/E0565.stderr +++ b/src/test/ui/error-codes/E0565.stderr @@ -6,3 +6,4 @@ error[E0565]: unsupported literal error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0565" diff --git a/src/test/ui/error-codes/E0572.stderr b/src/test/ui/error-codes/E0572.stderr index cad313b90a61..1abc2222f0e3 100644 --- a/src/test/ui/error-codes/E0572.stderr +++ b/src/test/ui/error-codes/E0572.stderr @@ -6,3 +6,4 @@ error[E0572]: return statement outside of function body error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0572" diff --git a/src/test/ui/error-codes/E0582.stderr b/src/test/ui/error-codes/E0582.stderr index ac2068340230..21dd0d4f80aa 100644 --- a/src/test/ui/error-codes/E0582.stderr +++ b/src/test/ui/error-codes/E0582.stderr @@ -12,3 +12,4 @@ error[E0582]: binding for associated type `Item` references lifetime `'a`, which error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0582" diff --git a/src/test/ui/error-codes/E0585.stderr b/src/test/ui/error-codes/E0585.stderr index 49967f4ad81d..28528c906262 100644 --- a/src/test/ui/error-codes/E0585.stderr +++ b/src/test/ui/error-codes/E0585.stderr @@ -8,3 +8,4 @@ error[E0585]: found a documentation comment that doesn't document anything error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0585" diff --git a/src/test/ui/error-codes/E0586.stderr b/src/test/ui/error-codes/E0586.stderr index 3cf16bdc3c31..9b4263507a82 100644 --- a/src/test/ui/error-codes/E0586.stderr +++ b/src/test/ui/error-codes/E0586.stderr @@ -8,3 +8,4 @@ error[E0586]: inclusive range with no end error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0586" diff --git a/src/test/ui/error-codes/E0597.stderr b/src/test/ui/error-codes/E0597.stderr index 7316ee6475f1..87a961dbcd20 100644 --- a/src/test/ui/error-codes/E0597.stderr +++ b/src/test/ui/error-codes/E0597.stderr @@ -11,3 +11,4 @@ error[E0597]: `y` does not live long enough error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0597" diff --git a/src/test/ui/error-codes/E0599.stderr b/src/test/ui/error-codes/E0599.stderr index 0274506926f8..ff9ac3cefc05 100644 --- a/src/test/ui/error-codes/E0599.stderr +++ b/src/test/ui/error-codes/E0599.stderr @@ -9,3 +9,4 @@ error[E0599]: no associated item named `NotEvenReal` found for type `Foo` in the error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/error-codes/E0600.stderr b/src/test/ui/error-codes/E0600.stderr index fec5f4169196..34e1c56fe2fe 100644 --- a/src/test/ui/error-codes/E0600.stderr +++ b/src/test/ui/error-codes/E0600.stderr @@ -6,3 +6,4 @@ error[E0600]: cannot apply unary operator `!` to type `&'static str` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0600" diff --git a/src/test/ui/error-codes/E0602.stderr b/src/test/ui/error-codes/E0602.stderr index cb6c05326e23..d72b426cf825 100644 --- a/src/test/ui/error-codes/E0602.stderr +++ b/src/test/ui/error-codes/E0602.stderr @@ -4,3 +4,4 @@ error[E0602]: unknown lint: `bogus` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0602" diff --git a/src/test/ui/error-codes/E0603.stderr b/src/test/ui/error-codes/E0603.stderr index 1d8e2fa9340e..71af28add7bc 100644 --- a/src/test/ui/error-codes/E0603.stderr +++ b/src/test/ui/error-codes/E0603.stderr @@ -6,3 +6,4 @@ error[E0603]: constant `PRIVATE` is private error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0603" diff --git a/src/test/ui/error-codes/E0604.stderr b/src/test/ui/error-codes/E0604.stderr index 78d1c4dd4765..28f77417ecc8 100644 --- a/src/test/ui/error-codes/E0604.stderr +++ b/src/test/ui/error-codes/E0604.stderr @@ -6,3 +6,4 @@ error[E0604]: only `u8` can be cast as `char`, not `u32` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0604" diff --git a/src/test/ui/error-codes/E0605.stderr b/src/test/ui/error-codes/E0605.stderr index 0b44de25fb5c..fe694b3eb19d 100644 --- a/src/test/ui/error-codes/E0605.stderr +++ b/src/test/ui/error-codes/E0605.stderr @@ -16,3 +16,4 @@ error[E0605]: non-primitive cast: `*const u8` as `&u8` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0605" diff --git a/src/test/ui/error-codes/E0606.stderr b/src/test/ui/error-codes/E0606.stderr index 17051da1319d..b606bd9113bb 100644 --- a/src/test/ui/error-codes/E0606.stderr +++ b/src/test/ui/error-codes/E0606.stderr @@ -12,3 +12,4 @@ help: did you mean `*&0u8`? error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0606" diff --git a/src/test/ui/error-codes/E0607.stderr b/src/test/ui/error-codes/E0607.stderr index 5dfe6ad59b87..2fcb050e6281 100644 --- a/src/test/ui/error-codes/E0607.stderr +++ b/src/test/ui/error-codes/E0607.stderr @@ -6,3 +6,4 @@ error[E0607]: cannot cast thin pointer `*const u8` to fat pointer `*const [u8]` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0607" diff --git a/src/test/ui/error-codes/E0608.stderr b/src/test/ui/error-codes/E0608.stderr index ab75fe82af35..89095cbdf811 100644 --- a/src/test/ui/error-codes/E0608.stderr +++ b/src/test/ui/error-codes/E0608.stderr @@ -6,3 +6,4 @@ error[E0608]: cannot index into a value of type `u8` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0608" diff --git a/src/test/ui/error-codes/E0609.stderr b/src/test/ui/error-codes/E0609.stderr index 561164cd277d..56c088fd2be8 100644 --- a/src/test/ui/error-codes/E0609.stderr +++ b/src/test/ui/error-codes/E0609.stderr @@ -14,3 +14,4 @@ error[E0609]: no field `1` on type `Bar` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0609" diff --git a/src/test/ui/error-codes/E0610.stderr b/src/test/ui/error-codes/E0610.stderr index 351e9208e95b..3fa9be7e0deb 100644 --- a/src/test/ui/error-codes/E0610.stderr +++ b/src/test/ui/error-codes/E0610.stderr @@ -6,3 +6,4 @@ error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0610" diff --git a/src/test/ui/error-codes/E0611.stderr b/src/test/ui/error-codes/E0611.stderr index 33fe78bc18c6..e08b2edd63f6 100644 --- a/src/test/ui/error-codes/E0611.stderr +++ b/src/test/ui/error-codes/E0611.stderr @@ -6,3 +6,4 @@ error[E0611]: field `0` of tuple-struct `a::Foo` is private error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0611" diff --git a/src/test/ui/error-codes/E0612.stderr b/src/test/ui/error-codes/E0612.stderr index 21fdaf84dc94..0535f13a4c49 100644 --- a/src/test/ui/error-codes/E0612.stderr +++ b/src/test/ui/error-codes/E0612.stderr @@ -6,3 +6,4 @@ error[E0612]: attempted out-of-bounds tuple index `1` on type `Foo` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0612" diff --git a/src/test/ui/error-codes/E0614.stderr b/src/test/ui/error-codes/E0614.stderr index 242cc36f0b9a..806fed59f79f 100644 --- a/src/test/ui/error-codes/E0614.stderr +++ b/src/test/ui/error-codes/E0614.stderr @@ -6,3 +6,4 @@ error[E0614]: type `u32` cannot be dereferenced error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0614" diff --git a/src/test/ui/error-codes/E0615.stderr b/src/test/ui/error-codes/E0615.stderr index fb3f9269f7c2..3481a1e3a055 100644 --- a/src/test/ui/error-codes/E0615.stderr +++ b/src/test/ui/error-codes/E0615.stderr @@ -8,3 +8,4 @@ error[E0615]: attempted to take value of method `method` on type `Foo` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0615" diff --git a/src/test/ui/error-codes/E0616.stderr b/src/test/ui/error-codes/E0616.stderr index 1dccd06b376d..2cf889ce6fb4 100644 --- a/src/test/ui/error-codes/E0616.stderr +++ b/src/test/ui/error-codes/E0616.stderr @@ -6,3 +6,4 @@ error[E0616]: field `x` of struct `a::Foo` is private error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0616" diff --git a/src/test/ui/error-codes/E0617.stderr b/src/test/ui/error-codes/E0617.stderr index 49d63538624e..b72ab2de4144 100644 --- a/src/test/ui/error-codes/E0617.stderr +++ b/src/test/ui/error-codes/E0617.stderr @@ -40,3 +40,4 @@ help: cast the value to `unsafe extern "C" fn(*const i8, ...)` error: aborting due to 6 previous errors +If you want more information on this error, try using "rustc --explain E0617" diff --git a/src/test/ui/error-codes/E0618.stderr b/src/test/ui/error-codes/E0618.stderr index 870243765969..9f364f55dd6c 100644 --- a/src/test/ui/error-codes/E0618.stderr +++ b/src/test/ui/error-codes/E0618.stderr @@ -21,3 +21,4 @@ error[E0618]: expected function, found `i32` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0618" diff --git a/src/test/ui/error-codes/E0620.stderr b/src/test/ui/error-codes/E0620.stderr index 564a9472ac9a..5c18afebf5a3 100644 --- a/src/test/ui/error-codes/E0620.stderr +++ b/src/test/ui/error-codes/E0620.stderr @@ -12,3 +12,4 @@ help: consider using an implicit coercion to `&[usize]` instead error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0620" diff --git a/src/test/ui/error-codes/E0621-does-not-trigger-for-closures.stderr b/src/test/ui/error-codes/E0621-does-not-trigger-for-closures.stderr index c529a838bf73..c9d5542ee172 100644 --- a/src/test/ui/error-codes/E0621-does-not-trigger-for-closures.stderr +++ b/src/test/ui/error-codes/E0621-does-not-trigger-for-closures.stderr @@ -27,3 +27,4 @@ note: ...so type `&i32` of expression is valid during the expression error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0495" diff --git a/src/test/ui/error-codes/E0622.stderr b/src/test/ui/error-codes/E0622.stderr index 977f44a9c978..9135da97825e 100644 --- a/src/test/ui/error-codes/E0622.stderr +++ b/src/test/ui/error-codes/E0622.stderr @@ -6,3 +6,4 @@ error[E0622]: intrinsic must be a function error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0622" diff --git a/src/test/ui/error-codes/E0624.stderr b/src/test/ui/error-codes/E0624.stderr index 0afb05a8a5e8..621b82df43ce 100644 --- a/src/test/ui/error-codes/E0624.stderr +++ b/src/test/ui/error-codes/E0624.stderr @@ -6,3 +6,4 @@ error[E0624]: method `method` is private error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0624" diff --git a/src/test/ui/error-codes/E0637.stderr b/src/test/ui/error-codes/E0637.stderr index e314afd221e4..d035359b73aa 100644 --- a/src/test/ui/error-codes/E0637.stderr +++ b/src/test/ui/error-codes/E0637.stderr @@ -18,3 +18,4 @@ error[E0637]: invalid lifetime bound name: `'_` error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0637" diff --git a/src/test/ui/error-codes/E0657.stderr b/src/test/ui/error-codes/E0657.stderr index e039d645fa6d..82b0568b59af 100644 --- a/src/test/ui/error-codes/E0657.stderr +++ b/src/test/ui/error-codes/E0657.stderr @@ -12,3 +12,4 @@ error[E0657]: `impl Trait` can only capture lifetimes bound at the fn or impl le error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0657" diff --git a/src/test/ui/error-codes/E0658.stderr b/src/test/ui/error-codes/E0658.stderr index c18d8090233d..461edabf5c95 100644 --- a/src/test/ui/error-codes/E0658.stderr +++ b/src/test/ui/error-codes/E0658.stderr @@ -8,3 +8,4 @@ error[E0658]: use of unstable library feature 'i128' (see issue #35118) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/error-codes/E0659.stderr b/src/test/ui/error-codes/E0659.stderr index c2410e2f733b..266afa893bf6 100644 --- a/src/test/ui/error-codes/E0659.stderr +++ b/src/test/ui/error-codes/E0659.stderr @@ -18,3 +18,4 @@ note: `foo` could also refer to the name imported here error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0659" diff --git a/src/test/ui/error-festival.rs b/src/test/ui/error-festival.rs new file mode 100644 index 000000000000..c17e3c878b85 --- /dev/null +++ b/src/test/ui/error-festival.rs @@ -0,0 +1,53 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +enum Question { + Yes, + No, +} + +mod foo { + const FOO: u32 = 0; +} + +fn main() { + let x = "a"; + x += 2; + //~^ ERROR E0368 + y = 2; + //~^ ERROR E0425 + x.z(); + //~^ ERROR E0599 + + !Question::Yes; + //~^ ERROR E0600 + + foo::FOO; + //~^ ERROR E0603 + + 0u32 as char; + //~^ ERROR E0604 + + let x = 0u8; + x as Vec; + //~^ ERROR E0605 + + let x = 5; + let x_is_nonzero = x as bool; + //~^ ERROR E0054 + + let x = &0u8; + let y: u32 = x as u32; + //~^ ERROR E0606 + + let v = 0 as *const u8; + v as *const [u8]; + //~^ ERROR E0607 +} diff --git a/src/test/ui/error-festival.stderr b/src/test/ui/error-festival.stderr new file mode 100644 index 000000000000..35a35430fe1c --- /dev/null +++ b/src/test/ui/error-festival.stderr @@ -0,0 +1,76 @@ +error[E0425]: cannot find value `y` in this scope + --> $DIR/error-festival.rs:24:5 + | +24 | y = 2; + | ^ did you mean `x`? + +error[E0603]: constant `FOO` is private + --> $DIR/error-festival.rs:32:5 + | +32 | foo::FOO; + | ^^^^^^^^ + +error[E0368]: binary assignment operation `+=` cannot be applied to type `&str` + --> $DIR/error-festival.rs:22:5 + | +22 | x += 2; + | -^^^^^ + | | + | cannot use `+=` on type `&str` + +error[E0599]: no method named `z` found for type `&str` in the current scope + --> $DIR/error-festival.rs:26:7 + | +26 | x.z(); + | ^ + +error[E0600]: cannot apply unary operator `!` to type `Question` + --> $DIR/error-festival.rs:29:5 + | +29 | !Question::Yes; + | ^^^^^^^^^^^^^^ + +error[E0604]: only `u8` can be cast as `char`, not `u32` + --> $DIR/error-festival.rs:35:5 + | +35 | 0u32 as char; + | ^^^^^^^^^^^^ + +error[E0605]: non-primitive cast: `u8` as `std::vec::Vec` + --> $DIR/error-festival.rs:39:5 + | +39 | x as Vec; + | ^^^^^^^^^^^^ + | + = note: an `as` expression can only be used to convert between primitive types. Consider using the `From` trait + +error[E0054]: cannot cast as `bool` + --> $DIR/error-festival.rs:43:24 + | +43 | let x_is_nonzero = x as bool; + | ^^^^^^^^^ unsupported cast + | + = help: compare with zero instead + +error[E0606]: casting `&u8` as `u32` is invalid + --> $DIR/error-festival.rs:47:18 + | +47 | let y: u32 = x as u32; + | ^^^^^^^^ cannot cast `&u8` as `u32` + | +help: did you mean `*x`? + --> $DIR/error-festival.rs:47:18 + | +47 | let y: u32 = x as u32; + | ^ + +error[E0607]: cannot cast thin pointer `*const u8` to fat pointer `*const [u8]` + --> $DIR/error-festival.rs:51:5 + | +51 | v as *const [u8]; + | ^^^^^^^^^^^^^^^^ + +error: aborting due to 10 previous errors + +You've got a few errors: E0054, E0368, E0425, E0599, E0600, E0603, E0604, E0605, E0606... +If you want more information on an error, try using "rustc --explain E0054" diff --git a/src/test/ui/fat-ptr-cast.stderr b/src/test/ui/fat-ptr-cast.stderr index b3c2b23cd327..cd8511426fff 100644 --- a/src/test/ui/fat-ptr-cast.stderr +++ b/src/test/ui/fat-ptr-cast.stderr @@ -66,3 +66,5 @@ error[E0606]: casting `usize` as `*const str` is invalid error: aborting due to 9 previous errors +You've got a few errors: E0605, E0606, E0607 +If you want more information on an error, try using "rustc --explain E0605" diff --git a/src/test/ui/feature-gate-abi-msp430-interrupt.stderr b/src/test/ui/feature-gate-abi-msp430-interrupt.stderr index e1621d34d46a..9f8571a311df 100644 --- a/src/test/ui/feature-gate-abi-msp430-interrupt.stderr +++ b/src/test/ui/feature-gate-abi-msp430-interrupt.stderr @@ -8,3 +8,4 @@ error[E0658]: msp430-interrupt ABI is experimental and subject to change (see is error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-abi.stderr b/src/test/ui/feature-gate-abi.stderr index ce31474caed9..7bef59e9b1e9 100644 --- a/src/test/ui/feature-gate-abi.stderr +++ b/src/test/ui/feature-gate-abi.stderr @@ -448,3 +448,4 @@ error[E0658]: thiscall is experimental and subject to change error: aborting due to 56 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-abi_unadjusted.stderr b/src/test/ui/feature-gate-abi_unadjusted.stderr index b3f7cd218d3e..62a6a2dfd993 100644 --- a/src/test/ui/feature-gate-abi_unadjusted.stderr +++ b/src/test/ui/feature-gate-abi_unadjusted.stderr @@ -10,3 +10,4 @@ error[E0658]: unadjusted ABI is an implementation detail and perma-unstable error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-advanced-slice-features.stderr b/src/test/ui/feature-gate-advanced-slice-features.stderr index 63ede50e1ea3..4a6f41c453ec 100644 --- a/src/test/ui/feature-gate-advanced-slice-features.stderr +++ b/src/test/ui/feature-gate-advanced-slice-features.stderr @@ -16,3 +16,4 @@ error[E0658]: multiple-element slice matches anywhere but at the end of a slice error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-allocator_internals.stderr b/src/test/ui/feature-gate-allocator_internals.stderr index 76d96f929bec..dd06b1b7f319 100644 --- a/src/test/ui/feature-gate-allocator_internals.stderr +++ b/src/test/ui/feature-gate-allocator_internals.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[default_lib_allocator]` attribute is an experimental featur error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-allow-internal-unsafe-nested-macro.stderr b/src/test/ui/feature-gate-allow-internal-unsafe-nested-macro.stderr index 31de8d762855..42789389a594 100644 --- a/src/test/ui/feature-gate-allow-internal-unsafe-nested-macro.stderr +++ b/src/test/ui/feature-gate-allow-internal-unsafe-nested-macro.stderr @@ -11,3 +11,4 @@ error[E0658]: allow_internal_unsafe side-steps the unsafe_code lint error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-allow-internal-unstable-nested-macro.stderr b/src/test/ui/feature-gate-allow-internal-unstable-nested-macro.stderr index 3e2573eda21c..6d02a1cc57f9 100644 --- a/src/test/ui/feature-gate-allow-internal-unstable-nested-macro.stderr +++ b/src/test/ui/feature-gate-allow-internal-unstable-nested-macro.stderr @@ -11,3 +11,4 @@ error[E0658]: allow_internal_unstable side-steps feature gating and stability ch error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-allow-internal-unstable-struct.stderr b/src/test/ui/feature-gate-allow-internal-unstable-struct.stderr index e19f3288e816..d5b6892e75a2 100644 --- a/src/test/ui/feature-gate-allow-internal-unstable-struct.stderr +++ b/src/test/ui/feature-gate-allow-internal-unstable-struct.stderr @@ -8,3 +8,4 @@ error[E0658]: allow_internal_unstable side-steps feature gating and stability ch error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-allow-internal-unstable.stderr b/src/test/ui/feature-gate-allow-internal-unstable.stderr index f110afb35a03..ec17a33da722 100644 --- a/src/test/ui/feature-gate-allow-internal-unstable.stderr +++ b/src/test/ui/feature-gate-allow-internal-unstable.stderr @@ -8,3 +8,4 @@ error[E0658]: allow_internal_unstable side-steps feature gating and stability ch error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-allow_fail.stderr b/src/test/ui/feature-gate-allow_fail.stderr index e04f44886dd2..cb8c7d5d5146 100644 --- a/src/test/ui/feature-gate-allow_fail.stderr +++ b/src/test/ui/feature-gate-allow_fail.stderr @@ -8,3 +8,4 @@ error[E0658]: allow_fail attribute is currently unstable (see issue #42219) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-arbitrary-self-types.stderr b/src/test/ui/feature-gate-arbitrary-self-types.stderr index ca47d40dc8f8..bbb5e9234528 100644 --- a/src/test/ui/feature-gate-arbitrary-self-types.stderr +++ b/src/test/ui/feature-gate-arbitrary-self-types.stderr @@ -27,3 +27,4 @@ error[E0658]: arbitrary `self` types are unstable (see issue #44874) error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-arbitrary_self_types-raw-pointer.stderr b/src/test/ui/feature-gate-arbitrary_self_types-raw-pointer.stderr index 33e8806678d6..e22c4bebfaf5 100644 --- a/src/test/ui/feature-gate-arbitrary_self_types-raw-pointer.stderr +++ b/src/test/ui/feature-gate-arbitrary_self_types-raw-pointer.stderr @@ -27,3 +27,4 @@ error[E0658]: raw pointer `self` is unstable (see issue #44874) error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-asm.stderr b/src/test/ui/feature-gate-asm.stderr index 481e6dc7055c..277193c07ed4 100644 --- a/src/test/ui/feature-gate-asm.stderr +++ b/src/test/ui/feature-gate-asm.stderr @@ -8,3 +8,4 @@ error[E0658]: inline assembly is not stable enough for use and is subject to cha error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-asm2.stderr b/src/test/ui/feature-gate-asm2.stderr index aba0f72d35c1..804e3d59dea1 100644 --- a/src/test/ui/feature-gate-asm2.stderr +++ b/src/test/ui/feature-gate-asm2.stderr @@ -8,3 +8,4 @@ error[E0658]: inline assembly is not stable enough for use and is subject to cha error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-assoc-type-defaults.stderr b/src/test/ui/feature-gate-assoc-type-defaults.stderr index 1d44797cddc9..97fd18aab171 100644 --- a/src/test/ui/feature-gate-assoc-type-defaults.stderr +++ b/src/test/ui/feature-gate-assoc-type-defaults.stderr @@ -8,3 +8,4 @@ error[E0658]: associated type defaults are unstable (see issue #29661) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-box-expr.stderr b/src/test/ui/feature-gate-box-expr.stderr index f9cccde37615..a1d6d17bd4da 100644 --- a/src/test/ui/feature-gate-box-expr.stderr +++ b/src/test/ui/feature-gate-box-expr.stderr @@ -8,3 +8,4 @@ error[E0658]: box expression syntax is experimental; you can call `Box::new` ins error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-box_patterns.stderr b/src/test/ui/feature-gate-box_patterns.stderr index ca009331b69c..7457fc276820 100644 --- a/src/test/ui/feature-gate-box_patterns.stderr +++ b/src/test/ui/feature-gate-box_patterns.stderr @@ -8,3 +8,4 @@ error[E0658]: box pattern syntax is experimental (see issue #29641) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-box_syntax.stderr b/src/test/ui/feature-gate-box_syntax.stderr index eefaa724650d..e3490edf9fb3 100644 --- a/src/test/ui/feature-gate-box_syntax.stderr +++ b/src/test/ui/feature-gate-box_syntax.stderr @@ -8,3 +8,4 @@ error[E0658]: box expression syntax is experimental; you can call `Box::new` ins error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-catch_expr.stderr b/src/test/ui/feature-gate-catch_expr.stderr index 4b3bfbbe27ac..73e9a9c896b3 100644 --- a/src/test/ui/feature-gate-catch_expr.stderr +++ b/src/test/ui/feature-gate-catch_expr.stderr @@ -12,3 +12,4 @@ error[E0658]: `catch` expression is experimental (see issue #31436) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-cfg-target-feature.stderr b/src/test/ui/feature-gate-cfg-target-feature.stderr index f808e78acce1..05f1a09a05b9 100644 --- a/src/test/ui/feature-gate-cfg-target-feature.stderr +++ b/src/test/ui/feature-gate-cfg-target-feature.stderr @@ -32,3 +32,4 @@ error[E0658]: `cfg(target_feature)` is experimental and subject to change (see i error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-cfg-target-has-atomic.stderr b/src/test/ui/feature-gate-cfg-target-has-atomic.stderr index ace23b38d2dc..0a1332719b5d 100644 --- a/src/test/ui/feature-gate-cfg-target-has-atomic.stderr +++ b/src/test/ui/feature-gate-cfg-target-has-atomic.stderr @@ -120,3 +120,4 @@ error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (se error: aborting due to 15 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-cfg-target-thread-local.stderr b/src/test/ui/feature-gate-cfg-target-thread-local.stderr index a0a03bdcd469..271268947493 100644 --- a/src/test/ui/feature-gate-cfg-target-thread-local.stderr +++ b/src/test/ui/feature-gate-cfg-target-thread-local.stderr @@ -8,3 +8,4 @@ error[E0658]: `cfg(target_thread_local)` is experimental and subject to change ( error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-cfg-target-vendor.stderr b/src/test/ui/feature-gate-cfg-target-vendor.stderr index 3e4a74636f92..ff563978402d 100644 --- a/src/test/ui/feature-gate-cfg-target-vendor.stderr +++ b/src/test/ui/feature-gate-cfg-target-vendor.stderr @@ -32,3 +32,4 @@ error[E0658]: `cfg(target_vendor)` is experimental and subject to change (see is error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-clone-closures.stderr b/src/test/ui/feature-gate-clone-closures.stderr index 3e07aa174408..de0d3c361146 100644 --- a/src/test/ui/feature-gate-clone-closures.stderr +++ b/src/test/ui/feature-gate-clone-closures.stderr @@ -8,3 +8,4 @@ error[E0599]: no method named `clone` found for type `[closure@$DIR/feature-gate error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/feature-gate-compiler-builtins.stderr b/src/test/ui/feature-gate-compiler-builtins.stderr index edb3c5d62aee..ee4e33f4005d 100644 --- a/src/test/ui/feature-gate-compiler-builtins.stderr +++ b/src/test/ui/feature-gate-compiler-builtins.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[compiler_builtins]` attribute is used to identify the `comp error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-concat_idents.stderr b/src/test/ui/feature-gate-concat_idents.stderr index d0a07e3d3c9e..cec3ed47607e 100644 --- a/src/test/ui/feature-gate-concat_idents.stderr +++ b/src/test/ui/feature-gate-concat_idents.stderr @@ -16,3 +16,4 @@ error[E0658]: `concat_idents` is not stable enough for use and is subject to cha error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-concat_idents2.stderr b/src/test/ui/feature-gate-concat_idents2.stderr index 0ef6921c64d8..0d39479ba8fb 100644 --- a/src/test/ui/feature-gate-concat_idents2.stderr +++ b/src/test/ui/feature-gate-concat_idents2.stderr @@ -8,3 +8,4 @@ error[E0658]: `concat_idents` is not stable enough for use and is subject to cha error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-concat_idents3.stderr b/src/test/ui/feature-gate-concat_idents3.stderr index a9a1e493a45f..2c4ed467ab47 100644 --- a/src/test/ui/feature-gate-concat_idents3.stderr +++ b/src/test/ui/feature-gate-concat_idents3.stderr @@ -16,3 +16,4 @@ error[E0658]: `concat_idents` is not stable enough for use and is subject to cha error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-conservative_impl_trait.stderr b/src/test/ui/feature-gate-conservative_impl_trait.stderr index f3d39477387a..1448bad3d181 100644 --- a/src/test/ui/feature-gate-conservative_impl_trait.stderr +++ b/src/test/ui/feature-gate-conservative_impl_trait.stderr @@ -8,3 +8,4 @@ error[E0658]: `impl Trait` in return position is experimental (see issue #34511) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-const-indexing.stderr b/src/test/ui/feature-gate-const-indexing.stderr index bc4b687800d7..18b855d6b4f0 100644 --- a/src/test/ui/feature-gate-const-indexing.stderr +++ b/src/test/ui/feature-gate-const-indexing.stderr @@ -6,3 +6,4 @@ error[E0080]: constant evaluation error error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0080" diff --git a/src/test/ui/feature-gate-const_fn.stderr b/src/test/ui/feature-gate-const_fn.stderr index ecd1ff5a6c45..9c22f89a7ef5 100644 --- a/src/test/ui/feature-gate-const_fn.stderr +++ b/src/test/ui/feature-gate-const_fn.stderr @@ -58,3 +58,5 @@ error[E0658]: const fn is unstable (see issue #24111) error: aborting due to 8 previous errors +You've got a few errors: E0379, E0658 +If you want more information on an error, try using "rustc --explain E0379" diff --git a/src/test/ui/feature-gate-copy-closures.stderr b/src/test/ui/feature-gate-copy-closures.stderr index 9b324672f224..2604d8bb53d3 100644 --- a/src/test/ui/feature-gate-copy-closures.stderr +++ b/src/test/ui/feature-gate-copy-closures.stderr @@ -10,3 +10,4 @@ error[E0382]: use of moved value: `hello` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0382" diff --git a/src/test/ui/feature-gate-crate_in_paths.stderr b/src/test/ui/feature-gate-crate_in_paths.stderr index 322a38a996f7..0c080934446b 100644 --- a/src/test/ui/feature-gate-crate_in_paths.stderr +++ b/src/test/ui/feature-gate-crate_in_paths.stderr @@ -8,3 +8,4 @@ error[E0658]: `crate` in paths is experimental (see issue #45477) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-crate_visibility_modifier.stderr b/src/test/ui/feature-gate-crate_visibility_modifier.stderr index fadc76bc0c03..ede92642f754 100644 --- a/src/test/ui/feature-gate-crate_visibility_modifier.stderr +++ b/src/test/ui/feature-gate-crate_visibility_modifier.stderr @@ -8,3 +8,4 @@ error[E0658]: `crate` visibility modifier is experimental (see issue #45388) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-custom_attribute.stderr b/src/test/ui/feature-gate-custom_attribute.stderr index f4d726c8c41c..3652834ce8e2 100644 --- a/src/test/ui/feature-gate-custom_attribute.stderr +++ b/src/test/ui/feature-gate-custom_attribute.stderr @@ -104,3 +104,4 @@ error[E0658]: The attribute `fake_doc` is currently unknown to the compiler and error: aborting due to 13 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-custom_attribute2.stderr b/src/test/ui/feature-gate-custom_attribute2.stderr index 08878e172042..fdc26a6c0e33 100644 --- a/src/test/ui/feature-gate-custom_attribute2.stderr +++ b/src/test/ui/feature-gate-custom_attribute2.stderr @@ -136,3 +136,4 @@ error[E0658]: The attribute `lt_hof` is currently unknown to the compiler and ma error: aborting due to 17 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-custom_derive.stderr b/src/test/ui/feature-gate-custom_derive.stderr index 86066285a55b..20168ba0e5a5 100644 --- a/src/test/ui/feature-gate-custom_derive.stderr +++ b/src/test/ui/feature-gate-custom_derive.stderr @@ -8,3 +8,4 @@ error[E0658]: attributes of the form `#[derive_*]` are reserved for the compiler error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-decl_macro.stderr b/src/test/ui/feature-gate-decl_macro.stderr index c7144f09bd61..37fbd9fa270b 100644 --- a/src/test/ui/feature-gate-decl_macro.stderr +++ b/src/test/ui/feature-gate-decl_macro.stderr @@ -8,3 +8,4 @@ error[E0658]: `macro` is experimental (see issue #39412) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-doc_cfg.stderr b/src/test/ui/feature-gate-doc_cfg.stderr index e009e0bc3c47..df9da6b7a2c0 100644 --- a/src/test/ui/feature-gate-doc_cfg.stderr +++ b/src/test/ui/feature-gate-doc_cfg.stderr @@ -8,3 +8,4 @@ error[E0658]: #[doc(cfg(...))] is experimental (see issue #43781) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-doc_masked.stderr b/src/test/ui/feature-gate-doc_masked.stderr index ee2d384e9984..1aef2aea33a2 100644 --- a/src/test/ui/feature-gate-doc_masked.stderr +++ b/src/test/ui/feature-gate-doc_masked.stderr @@ -8,3 +8,4 @@ error[E0658]: #[doc(masked)] is experimental (see issue #44027) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-doc_spotlight.stderr b/src/test/ui/feature-gate-doc_spotlight.stderr index 36d854892be2..7a23eeee44ca 100644 --- a/src/test/ui/feature-gate-doc_spotlight.stderr +++ b/src/test/ui/feature-gate-doc_spotlight.stderr @@ -8,3 +8,4 @@ error[E0658]: #[doc(spotlight)] is experimental (see issue #45040) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-dotdoteq_in_patterns.stderr b/src/test/ui/feature-gate-dotdoteq_in_patterns.stderr index 2d26c6ae8ebe..2796686fe415 100644 --- a/src/test/ui/feature-gate-dotdoteq_in_patterns.stderr +++ b/src/test/ui/feature-gate-dotdoteq_in_patterns.stderr @@ -8,3 +8,4 @@ error[E0658]: `..=` syntax in patterns is experimental (see issue #28237) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-dropck-ugeh.stderr b/src/test/ui/feature-gate-dropck-ugeh.stderr index cdeca7026b0c..d6af01c1a9b9 100644 --- a/src/test/ui/feature-gate-dropck-ugeh.stderr +++ b/src/test/ui/feature-gate-dropck-ugeh.stderr @@ -8,3 +8,4 @@ error[E0658]: unsafe_destructor_blind_to_params has been replaced by may_dangle error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-dyn-trait.stderr b/src/test/ui/feature-gate-dyn-trait.stderr index d6ba4b8ad669..ad744c0257cf 100644 --- a/src/test/ui/feature-gate-dyn-trait.stderr +++ b/src/test/ui/feature-gate-dyn-trait.stderr @@ -8,3 +8,4 @@ error[E0658]: `dyn Trait` syntax is unstable (see issue #44662) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-exclusive-range-pattern.stderr b/src/test/ui/feature-gate-exclusive-range-pattern.stderr index 3185281ce4bb..e11791dcdf09 100644 --- a/src/test/ui/feature-gate-exclusive-range-pattern.stderr +++ b/src/test/ui/feature-gate-exclusive-range-pattern.stderr @@ -8,3 +8,4 @@ error[E0658]: exclusive range pattern syntax is experimental (see issue #37854) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-extern_absolute_paths.stderr b/src/test/ui/feature-gate-extern_absolute_paths.stderr index 111cd06cb3c3..5e01782f2d43 100644 --- a/src/test/ui/feature-gate-extern_absolute_paths.stderr +++ b/src/test/ui/feature-gate-extern_absolute_paths.stderr @@ -12,3 +12,5 @@ error[E0433]: failed to resolve. Maybe a missing `extern crate core;`? error: aborting due to 2 previous errors +You've got a few errors: E0432, E0433 +If you want more information on an error, try using "rustc --explain E0432" diff --git a/src/test/ui/feature-gate-extern_in_paths.stderr b/src/test/ui/feature-gate-extern_in_paths.stderr index 022e53b6be09..82228e40f0b4 100644 --- a/src/test/ui/feature-gate-extern_in_paths.stderr +++ b/src/test/ui/feature-gate-extern_in_paths.stderr @@ -8,3 +8,4 @@ error[E0658]: `extern` in paths is experimental (see issue #44660) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-extern_types.stderr b/src/test/ui/feature-gate-extern_types.stderr index 71caa37963f4..c826ad637c4e 100644 --- a/src/test/ui/feature-gate-extern_types.stderr +++ b/src/test/ui/feature-gate-extern_types.stderr @@ -8,3 +8,4 @@ error[E0658]: extern types are experimental (see issue #43467) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-external_doc.stderr b/src/test/ui/feature-gate-external_doc.stderr index db6c99bceede..43d68c85b2ee 100644 --- a/src/test/ui/feature-gate-external_doc.stderr +++ b/src/test/ui/feature-gate-external_doc.stderr @@ -8,3 +8,4 @@ error[E0658]: #[doc(include = "...")] is experimental (see issue #44732) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-fundamental.stderr b/src/test/ui/feature-gate-fundamental.stderr index 28d8a80e602a..84a196e7178a 100644 --- a/src/test/ui/feature-gate-fundamental.stderr +++ b/src/test/ui/feature-gate-fundamental.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[fundamental]` attribute is an experimental feature (see iss error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-generators.stderr b/src/test/ui/feature-gate-generators.stderr index f559227f717e..7991ff186628 100644 --- a/src/test/ui/feature-gate-generators.stderr +++ b/src/test/ui/feature-gate-generators.stderr @@ -8,3 +8,4 @@ error[E0658]: yield syntax is experimental error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-generic_associated_types.stderr b/src/test/ui/feature-gate-generic_associated_types.stderr index c047914fb3b8..9d5d05d9aa3d 100644 --- a/src/test/ui/feature-gate-generic_associated_types.stderr +++ b/src/test/ui/feature-gate-generic_associated_types.stderr @@ -32,3 +32,4 @@ error[E0658]: generic associated types are unstable (see issue #44265) error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-generic_param_attrs.stderr b/src/test/ui/feature-gate-generic_param_attrs.stderr index a18d104cc2b3..561037217d7b 100644 --- a/src/test/ui/feature-gate-generic_param_attrs.stderr +++ b/src/test/ui/feature-gate-generic_param_attrs.stderr @@ -136,3 +136,4 @@ error[E0658]: attributes on lifetime bindings are experimental (see issue #34761 error: aborting due to 17 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-global_allocator.stderr b/src/test/ui/feature-gate-global_allocator.stderr index 8d82f6ee9e39..9e0c1577a92e 100644 --- a/src/test/ui/feature-gate-global_allocator.stderr +++ b/src/test/ui/feature-gate-global_allocator.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[global_allocator]` attribute is an experimental feature error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-global_asm.stderr b/src/test/ui/feature-gate-global_asm.stderr index ca946579f5db..72a0729a2eb8 100644 --- a/src/test/ui/feature-gate-global_asm.stderr +++ b/src/test/ui/feature-gate-global_asm.stderr @@ -8,3 +8,4 @@ error[E0658]: `global_asm!` is not stable enough for use and is subject to chang error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-i128_type.stderr b/src/test/ui/feature-gate-i128_type.stderr index 06fdeadbbf69..c87852f6352e 100644 --- a/src/test/ui/feature-gate-i128_type.stderr +++ b/src/test/ui/feature-gate-i128_type.stderr @@ -16,3 +16,4 @@ error[E0658]: 128-bit integers are not stable (see issue #35118) error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-i128_type2.stderr b/src/test/ui/feature-gate-i128_type2.stderr index ee81a2692149..76f50579f28b 100644 --- a/src/test/ui/feature-gate-i128_type2.stderr +++ b/src/test/ui/feature-gate-i128_type2.stderr @@ -44,3 +44,5 @@ error[E0658]: repr with 128-bit type is unstable (see issue #35118) error: aborting due to 6 previous errors +You've got a few errors: E0601, E0658 +If you want more information on an error, try using "rustc --explain E0601" diff --git a/src/test/ui/feature-gate-if_while_or_patterns.stderr b/src/test/ui/feature-gate-if_while_or_patterns.stderr index c906fa5a2f45..d9ebdcee0e9e 100644 --- a/src/test/ui/feature-gate-if_while_or_patterns.stderr +++ b/src/test/ui/feature-gate-if_while_or_patterns.stderr @@ -20,3 +20,4 @@ error[E0658]: multiple patterns in `if let` and `while let` are unstable (see is error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-in_band_lifetimes.stderr b/src/test/ui/feature-gate-in_band_lifetimes.stderr index 3b03ef2dd338..d39d568741ea 100644 --- a/src/test/ui/feature-gate-in_band_lifetimes.stderr +++ b/src/test/ui/feature-gate-in_band_lifetimes.stderr @@ -102,3 +102,4 @@ error[E0261]: use of undeclared lifetime name `'b` error: aborting due to 17 previous errors +If you want more information on this error, try using "rustc --explain E0261" diff --git a/src/test/ui/feature-gate-intrinsics.stderr b/src/test/ui/feature-gate-intrinsics.stderr index 918c749504ae..16a2099955cc 100644 --- a/src/test/ui/feature-gate-intrinsics.stderr +++ b/src/test/ui/feature-gate-intrinsics.stderr @@ -19,3 +19,4 @@ error[E0658]: intrinsics are subject to change error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-lang-items.stderr b/src/test/ui/feature-gate-lang-items.stderr index 28e3dab8fa72..31c1c46734ca 100644 --- a/src/test/ui/feature-gate-lang-items.stderr +++ b/src/test/ui/feature-gate-lang-items.stderr @@ -8,3 +8,4 @@ error[E0658]: language items are subject to change error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-link_args.stderr b/src/test/ui/feature-gate-link_args.stderr index 78070d52f1f1..b098a4377fee 100644 --- a/src/test/ui/feature-gate-link_args.stderr +++ b/src/test/ui/feature-gate-link_args.stderr @@ -24,3 +24,4 @@ error[E0658]: the `link_args` attribute is experimental and not portable across error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-link_cfg.stderr b/src/test/ui/feature-gate-link_cfg.stderr index 8aada72fb0c8..796c0a0d283b 100644 --- a/src/test/ui/feature-gate-link_cfg.stderr +++ b/src/test/ui/feature-gate-link_cfg.stderr @@ -8,3 +8,4 @@ error[E0658]: is feature gated (see issue #37406) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-link_llvm_intrinsics.stderr b/src/test/ui/feature-gate-link_llvm_intrinsics.stderr index 136658f23fdd..28a57bcdfef8 100644 --- a/src/test/ui/feature-gate-link_llvm_intrinsics.stderr +++ b/src/test/ui/feature-gate-link_llvm_intrinsics.stderr @@ -8,3 +8,4 @@ error[E0658]: linking to LLVM intrinsics is experimental (see issue #29602) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-linkage.stderr b/src/test/ui/feature-gate-linkage.stderr index 54764b1920c4..008ccecc4fd4 100644 --- a/src/test/ui/feature-gate-linkage.stderr +++ b/src/test/ui/feature-gate-linkage.stderr @@ -8,3 +8,4 @@ error[E0658]: the `linkage` attribute is experimental and not portable across pl error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-linker-flavor.stderr b/src/test/ui/feature-gate-linker-flavor.stderr index e58693d35c21..dd773465cebb 100644 --- a/src/test/ui/feature-gate-linker-flavor.stderr +++ b/src/test/ui/feature-gate-linker-flavor.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[used]` attribute is an experimental feature (see issue #402 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-log_syntax.stderr b/src/test/ui/feature-gate-log_syntax.stderr index 363b1753f4ad..d0c8f601b273 100644 --- a/src/test/ui/feature-gate-log_syntax.stderr +++ b/src/test/ui/feature-gate-log_syntax.stderr @@ -8,3 +8,4 @@ error[E0658]: `log_syntax!` is not stable enough for use and is subject to chang error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-log_syntax2.stderr b/src/test/ui/feature-gate-log_syntax2.stderr index f47a5076e795..652f32448e2c 100644 --- a/src/test/ui/feature-gate-log_syntax2.stderr +++ b/src/test/ui/feature-gate-log_syntax2.stderr @@ -8,3 +8,4 @@ error[E0658]: `log_syntax!` is not stable enough for use and is subject to chang error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-macro-lifetime-matcher.stderr b/src/test/ui/feature-gate-macro-lifetime-matcher.stderr index 553a7d3d1315..4693110d471d 100644 --- a/src/test/ui/feature-gate-macro-lifetime-matcher.stderr +++ b/src/test/ui/feature-gate-macro-lifetime-matcher.stderr @@ -8,3 +8,4 @@ error[E0658]: :lifetime fragment specifier is experimental and subject to change error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-macro-vis-matcher.stderr b/src/test/ui/feature-gate-macro-vis-matcher.stderr index ee1844c09225..c8b6d8efc2d6 100644 --- a/src/test/ui/feature-gate-macro-vis-matcher.stderr +++ b/src/test/ui/feature-gate-macro-vis-matcher.stderr @@ -8,3 +8,4 @@ error[E0658]: :vis fragment specifier is experimental and subject to change (see error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-macro_at_most_once_rep.stderr b/src/test/ui/feature-gate-macro_at_most_once_rep.stderr index 02dbab07bdec..0a4d68174ad9 100644 --- a/src/test/ui/feature-gate-macro_at_most_once_rep.stderr +++ b/src/test/ui/feature-gate-macro_at_most_once_rep.stderr @@ -8,3 +8,4 @@ error[E0658]: Using the `?` macro Kleene operator for "at most one" repetition i error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-main.stderr b/src/test/ui/feature-gate-main.stderr index 56e9c8b37e31..e3810f4adeb9 100644 --- a/src/test/ui/feature-gate-main.stderr +++ b/src/test/ui/feature-gate-main.stderr @@ -8,3 +8,4 @@ error[E0658]: declaration of a nonstandard #[main] function may change over time error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-match_default_bindings.stderr b/src/test/ui/feature-gate-match_default_bindings.stderr index 1bedfb7f8bee..bf7e061eb2c5 100644 --- a/src/test/ui/feature-gate-match_default_bindings.stderr +++ b/src/test/ui/feature-gate-match_default_bindings.stderr @@ -8,3 +8,4 @@ error[E0658]: non-reference pattern used to match a reference (see issue #42640) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-may-dangle.stderr b/src/test/ui/feature-gate-may-dangle.stderr index a3a3f7bd1742..08dcc5ccd266 100644 --- a/src/test/ui/feature-gate-may-dangle.stderr +++ b/src/test/ui/feature-gate-may-dangle.stderr @@ -8,3 +8,4 @@ error[E0658]: may_dangle has unstable semantics and may be removed in the future error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-naked_functions.stderr b/src/test/ui/feature-gate-naked_functions.stderr index 5f72234e5df5..6f700a8216b4 100644 --- a/src/test/ui/feature-gate-naked_functions.stderr +++ b/src/test/ui/feature-gate-naked_functions.stderr @@ -16,3 +16,4 @@ error[E0658]: the `#[naked]` attribute is an experimental feature (see issue #32 error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-needs-allocator.stderr b/src/test/ui/feature-gate-needs-allocator.stderr index 11b8c31e6df5..3cbd4d9053ba 100644 --- a/src/test/ui/feature-gate-needs-allocator.stderr +++ b/src/test/ui/feature-gate-needs-allocator.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[needs_allocator]` attribute is an experimental feature error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-negate-unsigned.stderr b/src/test/ui/feature-gate-negate-unsigned.stderr index d4311594517c..5f1d5abcf34c 100644 --- a/src/test/ui/feature-gate-negate-unsigned.stderr +++ b/src/test/ui/feature-gate-negate-unsigned.stderr @@ -12,3 +12,4 @@ error[E0600]: cannot apply unary operator `-` to type `u8` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0600" diff --git a/src/test/ui/feature-gate-never_type.stderr b/src/test/ui/feature-gate-never_type.stderr index 2fd04f51e7e5..d38ac8e04fa4 100644 --- a/src/test/ui/feature-gate-never_type.stderr +++ b/src/test/ui/feature-gate-never_type.stderr @@ -40,3 +40,4 @@ error[E0658]: The `!` type is experimental (see issue #35121) error: aborting due to 5 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-nll.stderr b/src/test/ui/feature-gate-nll.stderr index 4135462305a8..129af48d6c7f 100644 --- a/src/test/ui/feature-gate-nll.stderr +++ b/src/test/ui/feature-gate-nll.stderr @@ -8,3 +8,4 @@ error[E0506]: cannot assign to `x` because it is borrowed error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0506" diff --git a/src/test/ui/feature-gate-no-debug.stderr b/src/test/ui/feature-gate-no-debug.stderr index c7af8cf6aab7..358e8b101886 100644 --- a/src/test/ui/feature-gate-no-debug.stderr +++ b/src/test/ui/feature-gate-no-debug.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[no_debug]` attribute was an experimental feature that has b error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-no_core.stderr b/src/test/ui/feature-gate-no_core.stderr index 7fc898520022..5183856f6b96 100644 --- a/src/test/ui/feature-gate-no_core.stderr +++ b/src/test/ui/feature-gate-no_core.stderr @@ -8,3 +8,4 @@ error[E0658]: no_core is experimental (see issue #29639) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-non_ascii_idents.stderr b/src/test/ui/feature-gate-non_ascii_idents.stderr index deb707752b06..e1b2e8abc44c 100644 --- a/src/test/ui/feature-gate-non_ascii_idents.stderr +++ b/src/test/ui/feature-gate-non_ascii_idents.stderr @@ -110,3 +110,4 @@ error[E0658]: non-ascii idents are not fully supported. (see issue #28979) error: aborting due to 13 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-non_exhaustive.stderr b/src/test/ui/feature-gate-non_exhaustive.stderr index 320f40e31b81..307c79dde049 100644 --- a/src/test/ui/feature-gate-non_exhaustive.stderr +++ b/src/test/ui/feature-gate-non_exhaustive.stderr @@ -8,3 +8,4 @@ error[E0658]: non exhaustive is an experimental feature (see issue #44109) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-omit-gdb-pretty-printer-section.stderr b/src/test/ui/feature-gate-omit-gdb-pretty-printer-section.stderr index 4ceb697d0df3..137369fb79a1 100644 --- a/src/test/ui/feature-gate-omit-gdb-pretty-printer-section.stderr +++ b/src/test/ui/feature-gate-omit-gdb-pretty-printer-section.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[omit_gdb_pretty_printer_section]` attribute is just used fo error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-on-unimplemented.stderr b/src/test/ui/feature-gate-on-unimplemented.stderr index b1658c3be164..5924e80dcef2 100644 --- a/src/test/ui/feature-gate-on-unimplemented.stderr +++ b/src/test/ui/feature-gate-on-unimplemented.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[rustc_on_unimplemented]` attribute is an experimental featu error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-optin-builtin-traits.stderr b/src/test/ui/feature-gate-optin-builtin-traits.stderr index beb734a8ef87..3bc15decae36 100644 --- a/src/test/ui/feature-gate-optin-builtin-traits.stderr +++ b/src/test/ui/feature-gate-optin-builtin-traits.stderr @@ -16,3 +16,4 @@ error[E0658]: negative trait bounds are not yet fully implemented; use marker ty error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-overlapping_marker_traits.stderr b/src/test/ui/feature-gate-overlapping_marker_traits.stderr index c1725a62adaf..cd66dd812e24 100644 --- a/src/test/ui/feature-gate-overlapping_marker_traits.stderr +++ b/src/test/ui/feature-gate-overlapping_marker_traits.stderr @@ -8,3 +8,4 @@ error[E0119]: conflicting implementations of trait `MyMarker`: error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0119" diff --git a/src/test/ui/feature-gate-placement-expr.stderr b/src/test/ui/feature-gate-placement-expr.stderr index c588cabe2399..20cdf786ecac 100644 --- a/src/test/ui/feature-gate-placement-expr.stderr +++ b/src/test/ui/feature-gate-placement-expr.stderr @@ -8,3 +8,4 @@ error[E0658]: placement-in expression syntax is experimental and subject to chan error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-plugin.stderr b/src/test/ui/feature-gate-plugin.stderr index b54b2d899945..b15d2c36a608 100644 --- a/src/test/ui/feature-gate-plugin.stderr +++ b/src/test/ui/feature-gate-plugin.stderr @@ -8,3 +8,4 @@ error[E0658]: compiler plugins are experimental and possibly buggy (see issue #2 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-plugin_registrar.stderr b/src/test/ui/feature-gate-plugin_registrar.stderr index fb5bd9d1afe8..c612d1d90b49 100644 --- a/src/test/ui/feature-gate-plugin_registrar.stderr +++ b/src/test/ui/feature-gate-plugin_registrar.stderr @@ -8,3 +8,4 @@ error[E0658]: compiler plugins are experimental and possibly buggy (see issue #2 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-prelude_import.stderr b/src/test/ui/feature-gate-prelude_import.stderr index 5487ae21f3b8..e8845e87b5ed 100644 --- a/src/test/ui/feature-gate-prelude_import.stderr +++ b/src/test/ui/feature-gate-prelude_import.stderr @@ -8,3 +8,4 @@ error[E0658]: `#[prelude_import]` is for use by rustc only error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-profiler-runtime.stderr b/src/test/ui/feature-gate-profiler-runtime.stderr index f2893cbb97d6..8998d742e031 100644 --- a/src/test/ui/feature-gate-profiler-runtime.stderr +++ b/src/test/ui/feature-gate-profiler-runtime.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[profiler_runtime]` attribute is used to identify the `profi error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-repr-simd.stderr b/src/test/ui/feature-gate-repr-simd.stderr index e430a04a3e84..5363b3874f83 100644 --- a/src/test/ui/feature-gate-repr-simd.stderr +++ b/src/test/ui/feature-gate-repr-simd.stderr @@ -8,3 +8,4 @@ error[E0658]: SIMD types are experimental and possibly buggy (see issue #27731) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-repr128.stderr b/src/test/ui/feature-gate-repr128.stderr index 982ebb010166..20720a786d3d 100644 --- a/src/test/ui/feature-gate-repr128.stderr +++ b/src/test/ui/feature-gate-repr128.stderr @@ -10,3 +10,4 @@ error[E0658]: repr with 128-bit type is unstable (see issue #35118) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-repr_transparent.stderr b/src/test/ui/feature-gate-repr_transparent.stderr index d1292e95491a..29c6b3cf0177 100644 --- a/src/test/ui/feature-gate-repr_transparent.stderr +++ b/src/test/ui/feature-gate-repr_transparent.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[repr(transparent)]` attribute is experimental (see issue #4 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-rustc-attrs.stderr b/src/test/ui/feature-gate-rustc-attrs.stderr index f47588c3a7d6..9c7323ea45c8 100644 --- a/src/test/ui/feature-gate-rustc-attrs.stderr +++ b/src/test/ui/feature-gate-rustc-attrs.stderr @@ -24,3 +24,4 @@ error[E0658]: unless otherwise specified, attributes with the prefix `rustc_` ar error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-rustc_const_unstable.stderr b/src/test/ui/feature-gate-rustc_const_unstable.stderr index 922898b7d36f..781f621dfdb9 100644 --- a/src/test/ui/feature-gate-rustc_const_unstable.stderr +++ b/src/test/ui/feature-gate-rustc_const_unstable.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[rustc_const_unstable]` attribute is an internal feature error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-sanitizer-runtime.stderr b/src/test/ui/feature-gate-sanitizer-runtime.stderr index 6d77161864ff..eadda45a1840 100644 --- a/src/test/ui/feature-gate-sanitizer-runtime.stderr +++ b/src/test/ui/feature-gate-sanitizer-runtime.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[sanitizer_runtime]` attribute is used to identify crates th error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-simd.stderr b/src/test/ui/feature-gate-simd.stderr index 447706ab858c..c923ae6e9a99 100644 --- a/src/test/ui/feature-gate-simd.stderr +++ b/src/test/ui/feature-gate-simd.stderr @@ -8,3 +8,4 @@ error[E0658]: SIMD types are experimental and possibly buggy (see issue #27731) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-slice-patterns.stderr b/src/test/ui/feature-gate-slice-patterns.stderr index 7a2e67c89821..a7c275fe7936 100644 --- a/src/test/ui/feature-gate-slice-patterns.stderr +++ b/src/test/ui/feature-gate-slice-patterns.stderr @@ -8,3 +8,4 @@ error[E0658]: slice pattern syntax is experimental (see issue #23121) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-start.stderr b/src/test/ui/feature-gate-start.stderr index 61cbe42d0fb4..6e7a6741f5b0 100644 --- a/src/test/ui/feature-gate-start.stderr +++ b/src/test/ui/feature-gate-start.stderr @@ -8,3 +8,4 @@ error[E0658]: a #[start] function is an experimental feature whose signature may error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-static-nobundle.stderr b/src/test/ui/feature-gate-static-nobundle.stderr index 9ec4f6480b1f..855eacb63cac 100644 --- a/src/test/ui/feature-gate-static-nobundle.stderr +++ b/src/test/ui/feature-gate-static-nobundle.stderr @@ -8,3 +8,4 @@ error[E0658]: kind="static-nobundle" is feature gated (see issue #37403) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-stmt_expr_attributes.stderr b/src/test/ui/feature-gate-stmt_expr_attributes.stderr index 4d2e2f671c51..992772c91167 100644 --- a/src/test/ui/feature-gate-stmt_expr_attributes.stderr +++ b/src/test/ui/feature-gate-stmt_expr_attributes.stderr @@ -8,3 +8,4 @@ error[E0658]: attributes on non-item statements and expressions are experimental error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-target_feature.stderr b/src/test/ui/feature-gate-target_feature.stderr index b6ad1b65691c..064c9f7e2473 100644 --- a/src/test/ui/feature-gate-target_feature.stderr +++ b/src/test/ui/feature-gate-target_feature.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[target_feature]` attribute is an experimental feature error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-thread_local.stderr b/src/test/ui/feature-gate-thread_local.stderr index f7b05d5cf256..1846ebbb1065 100644 --- a/src/test/ui/feature-gate-thread_local.stderr +++ b/src/test/ui/feature-gate-thread_local.stderr @@ -8,3 +8,4 @@ error[E0658]: `#[thread_local]` is an experimental feature, and does not current error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-trace_macros.stderr b/src/test/ui/feature-gate-trace_macros.stderr index eae3baa7e4d2..2a126dde0bc6 100644 --- a/src/test/ui/feature-gate-trace_macros.stderr +++ b/src/test/ui/feature-gate-trace_macros.stderr @@ -8,3 +8,4 @@ error[E0658]: `trace_macros` is not stable enough for use and is subject to chan error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-type_ascription.stderr b/src/test/ui/feature-gate-type_ascription.stderr index fa6ef84a7f55..95da92acd859 100644 --- a/src/test/ui/feature-gate-type_ascription.stderr +++ b/src/test/ui/feature-gate-type_ascription.stderr @@ -8,3 +8,4 @@ error[E0658]: type ascription is experimental (see issue #23416) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-unboxed-closures-manual-impls.stderr b/src/test/ui/feature-gate-unboxed-closures-manual-impls.stderr index ae14054b6e39..661be5b21eba 100644 --- a/src/test/ui/feature-gate-unboxed-closures-manual-impls.stderr +++ b/src/test/ui/feature-gate-unboxed-closures-manual-impls.stderr @@ -32,3 +32,4 @@ error[E0658]: rust-call ABI is subject to change (see issue #29625) error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-unboxed-closures-method-calls.stderr b/src/test/ui/feature-gate-unboxed-closures-method-calls.stderr index a27b00aaac0f..808b21f50fc5 100644 --- a/src/test/ui/feature-gate-unboxed-closures-method-calls.stderr +++ b/src/test/ui/feature-gate-unboxed-closures-method-calls.stderr @@ -24,3 +24,4 @@ error[E0658]: use of unstable library feature 'fn_traits' (see issue #29625) error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-unboxed-closures-ufcs-calls.stderr b/src/test/ui/feature-gate-unboxed-closures-ufcs-calls.stderr index 3d0dd15b07f6..47441afbea7a 100644 --- a/src/test/ui/feature-gate-unboxed-closures-ufcs-calls.stderr +++ b/src/test/ui/feature-gate-unboxed-closures-ufcs-calls.stderr @@ -24,3 +24,4 @@ error[E0658]: use of unstable library feature 'fn_traits' (see issue #29625) error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-unboxed-closures.stderr b/src/test/ui/feature-gate-unboxed-closures.stderr index ca8a59249463..18baf0450c35 100644 --- a/src/test/ui/feature-gate-unboxed-closures.stderr +++ b/src/test/ui/feature-gate-unboxed-closures.stderr @@ -10,3 +10,4 @@ error[E0658]: rust-call ABI is subject to change (see issue #29625) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-underscore-lifetimes.stderr b/src/test/ui/feature-gate-underscore-lifetimes.stderr index 07c5e1ad640f..6e5b0573f6cd 100644 --- a/src/test/ui/feature-gate-underscore-lifetimes.stderr +++ b/src/test/ui/feature-gate-underscore-lifetimes.stderr @@ -8,3 +8,4 @@ error[E0658]: underscore lifetimes are unstable (see issue #44524) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-universal.stderr b/src/test/ui/feature-gate-universal.stderr index 978ce5982bad..75820283cc78 100644 --- a/src/test/ui/feature-gate-universal.stderr +++ b/src/test/ui/feature-gate-universal.stderr @@ -8,3 +8,4 @@ error[E0658]: `impl Trait` in argument position is experimental (see issue #3451 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-unsized_tuple_coercion.stderr b/src/test/ui/feature-gate-unsized_tuple_coercion.stderr index 4714df9e96cd..51d68132ac4d 100644 --- a/src/test/ui/feature-gate-unsized_tuple_coercion.stderr +++ b/src/test/ui/feature-gate-unsized_tuple_coercion.stderr @@ -8,3 +8,4 @@ error[E0658]: Unsized tuple coercion is not stable enough for use and is subject error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-untagged_unions.stderr b/src/test/ui/feature-gate-untagged_unions.stderr index 14b66cb5c815..a1f8dcbb8bf5 100644 --- a/src/test/ui/feature-gate-untagged_unions.stderr +++ b/src/test/ui/feature-gate-untagged_unions.stderr @@ -30,3 +30,4 @@ error[E0658]: unions with `Drop` implementations are unstable (see issue #32836) error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-unwind-attributes.stderr b/src/test/ui/feature-gate-unwind-attributes.stderr index d9b555e2634e..0e122ea5d561 100644 --- a/src/test/ui/feature-gate-unwind-attributes.stderr +++ b/src/test/ui/feature-gate-unwind-attributes.stderr @@ -8,3 +8,4 @@ error[E0658]: #[unwind] is experimental error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-used.stderr b/src/test/ui/feature-gate-used.stderr index 6d5ab1fd2c58..d263fe5ffbeb 100644 --- a/src/test/ui/feature-gate-used.stderr +++ b/src/test/ui/feature-gate-used.stderr @@ -8,3 +8,4 @@ error[E0658]: the `#[used]` attribute is an experimental feature (see issue #402 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate-wasm_import_memory.stderr b/src/test/ui/feature-gate-wasm_import_memory.stderr index 10190ef93f0d..04350a145fd9 100644 --- a/src/test/ui/feature-gate-wasm_import_memory.stderr +++ b/src/test/ui/feature-gate-wasm_import_memory.stderr @@ -8,3 +8,4 @@ error[E0658]: wasm_import_memory attribute is currently unstable error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-bench.stderr b/src/test/ui/feature-gate/issue-43106-gating-of-bench.stderr index f7d5473f443f..1d33bc556113 100644 --- a/src/test/ui/feature-gate/issue-43106-gating-of-bench.stderr +++ b/src/test/ui/feature-gate/issue-43106-gating-of-bench.stderr @@ -2,3 +2,4 @@ error[E0601]: main function not found error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0601" diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-inline.stderr b/src/test/ui/feature-gate/issue-43106-gating-of-inline.stderr index 444c4176994c..8af406aef6de 100644 --- a/src/test/ui/feature-gate/issue-43106-gating-of-inline.stderr +++ b/src/test/ui/feature-gate/issue-43106-gating-of-inline.stderr @@ -41,3 +41,5 @@ error[E0518]: attribute should be applied to function error: aborting due to 6 previous errors +You've got a few errors: E0518, E0601 +If you want more information on an error, try using "rustc --explain E0518" diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-macro_escape.stderr b/src/test/ui/feature-gate/issue-43106-gating-of-macro_escape.stderr index 60a9382bdb8b..c0d8aa5c31c6 100644 --- a/src/test/ui/feature-gate/issue-43106-gating-of-macro_escape.stderr +++ b/src/test/ui/feature-gate/issue-43106-gating-of-macro_escape.stderr @@ -10,3 +10,4 @@ error[E0601]: main function not found error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0601" diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-proc_macro_derive.stderr b/src/test/ui/feature-gate/issue-43106-gating-of-proc_macro_derive.stderr index a76f0219f7a8..4e844ba58895 100644 --- a/src/test/ui/feature-gate/issue-43106-gating-of-proc_macro_derive.stderr +++ b/src/test/ui/feature-gate/issue-43106-gating-of-proc_macro_derive.stderr @@ -38,3 +38,4 @@ error[E0601]: main function not found error: aborting due to 7 previous errors +If you want more information on this error, try using "rustc --explain E0601" diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-rustc_deprecated.stderr b/src/test/ui/feature-gate/issue-43106-gating-of-rustc_deprecated.stderr index 5de3204f9318..a603836daa04 100644 --- a/src/test/ui/feature-gate/issue-43106-gating-of-rustc_deprecated.stderr +++ b/src/test/ui/feature-gate/issue-43106-gating-of-rustc_deprecated.stderr @@ -44,3 +44,4 @@ error: stability attributes may not be used outside of the standard library error: aborting due to 8 previous errors +If you want more information on this error, try using "rustc --explain E0601" diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-stable.stderr b/src/test/ui/feature-gate/issue-43106-gating-of-stable.stderr index eace1dc413a6..ebf7100c35ba 100644 --- a/src/test/ui/feature-gate/issue-43106-gating-of-stable.stderr +++ b/src/test/ui/feature-gate/issue-43106-gating-of-stable.stderr @@ -44,3 +44,4 @@ error: stability attributes may not be used outside of the standard library error: aborting due to 8 previous errors +If you want more information on this error, try using "rustc --explain E0601" diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-test.stderr b/src/test/ui/feature-gate/issue-43106-gating-of-test.stderr index f7d5473f443f..1d33bc556113 100644 --- a/src/test/ui/feature-gate/issue-43106-gating-of-test.stderr +++ b/src/test/ui/feature-gate/issue-43106-gating-of-test.stderr @@ -2,3 +2,4 @@ error[E0601]: main function not found error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0601" diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-unstable.stderr b/src/test/ui/feature-gate/issue-43106-gating-of-unstable.stderr index 59068279fde1..c91b262c7eda 100644 --- a/src/test/ui/feature-gate/issue-43106-gating-of-unstable.stderr +++ b/src/test/ui/feature-gate/issue-43106-gating-of-unstable.stderr @@ -44,3 +44,4 @@ error: stability attributes may not be used outside of the standard library error: aborting due to 8 previous errors +If you want more information on this error, try using "rustc --explain E0601" diff --git a/src/test/ui/fmt/send-sync.stderr b/src/test/ui/fmt/send-sync.stderr index 4ec5c9ebd271..7e2b6a43dd46 100644 --- a/src/test/ui/fmt/send-sync.stderr +++ b/src/test/ui/fmt/send-sync.stderr @@ -40,3 +40,4 @@ note: required by `sync` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/generator/auto-trait-regions.stderr b/src/test/ui/generator/auto-trait-regions.stderr index 37241e615101..2fc359946fa9 100644 --- a/src/test/ui/generator/auto-trait-regions.stderr +++ b/src/test/ui/generator/auto-trait-regions.stderr @@ -33,3 +33,5 @@ note: required by `assert_foo` error: aborting due to 2 previous errors +You've got a few errors: E0277, E0279 +If you want more information on an error, try using "rustc --explain E0277" diff --git a/src/test/ui/generator/borrowing.stderr b/src/test/ui/generator/borrowing.stderr index cb84eaedb335..1d58bca15fa3 100644 --- a/src/test/ui/generator/borrowing.stderr +++ b/src/test/ui/generator/borrowing.stderr @@ -27,3 +27,4 @@ error[E0597]: `a` does not live long enough error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0597" diff --git a/src/test/ui/generator/dropck.stderr b/src/test/ui/generator/dropck.stderr index deaf00fff071..01ef57534245 100644 --- a/src/test/ui/generator/dropck.stderr +++ b/src/test/ui/generator/dropck.stderr @@ -14,3 +14,4 @@ error[E0597]: `ref_` does not live long enough error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0597" diff --git a/src/test/ui/generator/generator-with-nll.stderr b/src/test/ui/generator/generator-with-nll.stderr index 0f7d2e540d80..ab81501f2374 100644 --- a/src/test/ui/generator/generator-with-nll.stderr +++ b/src/test/ui/generator/generator-with-nll.stderr @@ -27,3 +27,4 @@ error[E0626]: borrow may still be in use when generator yields (Mir) error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0626" diff --git a/src/test/ui/generator/issue-48048.stderr b/src/test/ui/generator/issue-48048.stderr index fd1667128ab6..04e4397cc5c9 100644 --- a/src/test/ui/generator/issue-48048.stderr +++ b/src/test/ui/generator/issue-48048.stderr @@ -8,3 +8,4 @@ error[E0626]: borrow may still be in use when generator yields error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0626" diff --git a/src/test/ui/generator/no-arguments-on-generators.stderr b/src/test/ui/generator/no-arguments-on-generators.stderr index 4d2e228685ae..84a5edf4f224 100644 --- a/src/test/ui/generator/no-arguments-on-generators.stderr +++ b/src/test/ui/generator/no-arguments-on-generators.stderr @@ -6,3 +6,4 @@ error[E0628]: generators cannot have explicit arguments error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0628" diff --git a/src/test/ui/generator/not-send-sync.stderr b/src/test/ui/generator/not-send-sync.stderr index e65c8f1546e8..cd2d16fd6621 100644 --- a/src/test/ui/generator/not-send-sync.stderr +++ b/src/test/ui/generator/not-send-sync.stderr @@ -30,3 +30,4 @@ note: required by `main::assert_sync` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/generator/pattern-borrow.stderr b/src/test/ui/generator/pattern-borrow.stderr index 6b39b272d0e4..2346714b2124 100644 --- a/src/test/ui/generator/pattern-borrow.stderr +++ b/src/test/ui/generator/pattern-borrow.stderr @@ -8,3 +8,4 @@ error[E0626]: borrow may still be in use when generator yields error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0626" diff --git a/src/test/ui/generator/ref-escapes-but-not-over-yield.stderr b/src/test/ui/generator/ref-escapes-but-not-over-yield.stderr index fbb72884156b..b752a4c064c6 100644 --- a/src/test/ui/generator/ref-escapes-but-not-over-yield.stderr +++ b/src/test/ui/generator/ref-escapes-but-not-over-yield.stderr @@ -11,3 +11,4 @@ error[E0597]: `b` does not live long enough error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0597" diff --git a/src/test/ui/generator/sized-yield.stderr b/src/test/ui/generator/sized-yield.stderr index 7adb2cc5598d..a61adcf4a770 100644 --- a/src/test/ui/generator/sized-yield.stderr +++ b/src/test/ui/generator/sized-yield.stderr @@ -20,3 +20,4 @@ error[E0277]: the trait bound `str: std::marker::Sized` is not satisfied error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/generator/unsafe-immovable.stderr b/src/test/ui/generator/unsafe-immovable.stderr index 06e43bf35e1f..87a85c6845f7 100644 --- a/src/test/ui/generator/unsafe-immovable.stderr +++ b/src/test/ui/generator/unsafe-immovable.stderr @@ -8,3 +8,4 @@ error[E0133]: construction of immovable generator requires unsafe function or bl error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0133" diff --git a/src/test/ui/generator/yield-in-args.stderr b/src/test/ui/generator/yield-in-args.stderr index 06561853dee8..f69948c90040 100644 --- a/src/test/ui/generator/yield-in-args.stderr +++ b/src/test/ui/generator/yield-in-args.stderr @@ -6,3 +6,4 @@ error[E0626]: borrow may still be in use when generator yields error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0626" diff --git a/src/test/ui/generator/yield-in-const.stderr b/src/test/ui/generator/yield-in-const.stderr index 8a265c065b98..b7faca23ed37 100644 --- a/src/test/ui/generator/yield-in-const.stderr +++ b/src/test/ui/generator/yield-in-const.stderr @@ -8,3 +8,5 @@ error[E0627]: yield statement outside of generator literal error: aborting due to 2 previous errors +You've got a few errors: E0601, E0627 +If you want more information on an error, try using "rustc --explain E0601" diff --git a/src/test/ui/generator/yield-in-function.stderr b/src/test/ui/generator/yield-in-function.stderr index c6ee3b8e9e7e..3aa4130a1487 100644 --- a/src/test/ui/generator/yield-in-function.stderr +++ b/src/test/ui/generator/yield-in-function.stderr @@ -6,3 +6,4 @@ error[E0627]: yield statement outside of generator literal error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0627" diff --git a/src/test/ui/generator/yield-in-static.stderr b/src/test/ui/generator/yield-in-static.stderr index d0575a0e47b3..2f3c41f71c35 100644 --- a/src/test/ui/generator/yield-in-static.stderr +++ b/src/test/ui/generator/yield-in-static.stderr @@ -8,3 +8,5 @@ error[E0627]: yield statement outside of generator literal error: aborting due to 2 previous errors +You've got a few errors: E0601, E0627 +If you want more information on an error, try using "rustc --explain E0601" diff --git a/src/test/ui/generator/yield-while-iterating.stderr b/src/test/ui/generator/yield-while-iterating.stderr index ea55e032e476..27a13a6382c9 100644 --- a/src/test/ui/generator/yield-while-iterating.stderr +++ b/src/test/ui/generator/yield-while-iterating.stderr @@ -22,3 +22,5 @@ error[E0502]: cannot borrow `x` as immutable because it is also borrowed as muta error: aborting due to 2 previous errors +You've got a few errors: E0502, E0626 +If you want more information on an error, try using "rustc --explain E0502" diff --git a/src/test/ui/generator/yield-while-local-borrowed.stderr b/src/test/ui/generator/yield-while-local-borrowed.stderr index 114fe8ffcab0..d28ea1d4368f 100644 --- a/src/test/ui/generator/yield-while-local-borrowed.stderr +++ b/src/test/ui/generator/yield-while-local-borrowed.stderr @@ -36,3 +36,4 @@ error[E0626]: borrow may still be in use when generator yields (Mir) error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0626" diff --git a/src/test/ui/generator/yield-while-ref-reborrowed.stderr b/src/test/ui/generator/yield-while-ref-reborrowed.stderr index 7269f7297370..d2aa84f3c098 100644 --- a/src/test/ui/generator/yield-while-ref-reborrowed.stderr +++ b/src/test/ui/generator/yield-while-ref-reborrowed.stderr @@ -14,3 +14,4 @@ error[E0501]: cannot borrow `x` as immutable because previous closure requires u error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0501" diff --git a/src/test/ui/generic-type-less-params-with-defaults.stderr b/src/test/ui/generic-type-less-params-with-defaults.stderr index 0351923eff65..6726f40dd06b 100644 --- a/src/test/ui/generic-type-less-params-with-defaults.stderr +++ b/src/test/ui/generic-type-less-params-with-defaults.stderr @@ -6,3 +6,4 @@ error[E0243]: wrong number of type arguments: expected at least 1, found 0 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0243" diff --git a/src/test/ui/generic-type-more-params-with-defaults.stderr b/src/test/ui/generic-type-more-params-with-defaults.stderr index 11ce6b1656de..aa06e82a2505 100644 --- a/src/test/ui/generic-type-more-params-with-defaults.stderr +++ b/src/test/ui/generic-type-more-params-with-defaults.stderr @@ -6,3 +6,4 @@ error[E0244]: wrong number of type arguments: expected at most 2, found 3 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0244" diff --git a/src/test/ui/if-let-arm-types.stderr b/src/test/ui/if-let-arm-types.stderr index fb8e00bfa94e..fb1cf205b62d 100644 --- a/src/test/ui/if-let-arm-types.stderr +++ b/src/test/ui/if-let-arm-types.stderr @@ -23,3 +23,4 @@ note: `if let` arm with an incompatible type error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/impl-duplicate-methods.stderr b/src/test/ui/impl-duplicate-methods.stderr index 73d470cc29e5..53bc268e327d 100644 --- a/src/test/ui/impl-duplicate-methods.stderr +++ b/src/test/ui/impl-duplicate-methods.stderr @@ -8,3 +8,4 @@ error[E0201]: duplicate definitions with name `orange`: error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0201" diff --git a/src/test/ui/impl-trait/auto-trait-leak.stderr b/src/test/ui/impl-trait/auto-trait-leak.stderr index d6e31ba1e1f9..f69840238a71 100644 --- a/src/test/ui/impl-trait/auto-trait-leak.stderr +++ b/src/test/ui/impl-trait/auto-trait-leak.stderr @@ -58,3 +58,5 @@ note: ...which then requires processing `cycle1::{{impl-Trait}}`... error: aborting due to 3 previous errors +You've got a few errors: E0277, E0391 +If you want more information on an error, try using "rustc --explain E0277" diff --git a/src/test/ui/impl-trait/equality.stderr b/src/test/ui/impl-trait/equality.stderr index 8ec819038031..c30b0d7f6483 100644 --- a/src/test/ui/impl-trait/equality.stderr +++ b/src/test/ui/impl-trait/equality.stderr @@ -53,3 +53,5 @@ error[E0308]: mismatched types error: aborting due to 6 previous errors +You've got a few errors: E0277, E0308 +If you want more information on an error, try using "rustc --explain E0277" diff --git a/src/test/ui/impl-trait/impl-trait-plus-priority.stderr b/src/test/ui/impl-trait/impl-trait-plus-priority.stderr index 885c3941971b..7010ab1e4715 100644 --- a/src/test/ui/impl-trait/impl-trait-plus-priority.stderr +++ b/src/test/ui/impl-trait/impl-trait-plus-priority.stderr @@ -66,3 +66,4 @@ error[E0178]: expected a path on the left-hand side of `+`, not `&A` error: aborting due to 11 previous errors +If you want more information on this error, try using "rustc --explain E0178" diff --git a/src/test/ui/impl-trait/issue-21659-show-relevant-trait-impls-3.stderr b/src/test/ui/impl-trait/issue-21659-show-relevant-trait-impls-3.stderr index 297694568493..d5cc1ea8085b 100644 --- a/src/test/ui/impl-trait/issue-21659-show-relevant-trait-impls-3.stderr +++ b/src/test/ui/impl-trait/issue-21659-show-relevant-trait-impls-3.stderr @@ -13,3 +13,4 @@ error[E0599]: no method named `foo` found for type `Bar` in the current scope error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/impl-trait/method-suggestion-no-duplication.stderr b/src/test/ui/impl-trait/method-suggestion-no-duplication.stderr index 52d3931011a7..8ffbd29eabe3 100644 --- a/src/test/ui/impl-trait/method-suggestion-no-duplication.stderr +++ b/src/test/ui/impl-trait/method-suggestion-no-duplication.stderr @@ -15,3 +15,4 @@ error[E0599]: no method named `is_empty` found for type `Foo` in the current sco error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/impl-trait/no-method-suggested-traits.stderr b/src/test/ui/impl-trait/no-method-suggested-traits.stderr index 882113b8176e..f136fd4072c6 100644 --- a/src/test/ui/impl-trait/no-method-suggested-traits.stderr +++ b/src/test/ui/impl-trait/no-method-suggested-traits.stderr @@ -255,3 +255,4 @@ error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::bo error: aborting due to 24 previous errors +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/impl-trait/trait_type.stderr b/src/test/ui/impl-trait/trait_type.stderr index 1417c71ca124..134386825d69 100644 --- a/src/test/ui/impl-trait/trait_type.stderr +++ b/src/test/ui/impl-trait/trait_type.stderr @@ -33,3 +33,5 @@ error[E0046]: not all trait items implemented, missing: `fmt` error: aborting due to 4 previous errors +You've got a few errors: E0046, E0050, E0053, E0186 +If you want more information on an error, try using "rustc --explain E0046" diff --git a/src/test/ui/impl-trait/universal-mismatched-type.stderr b/src/test/ui/impl-trait/universal-mismatched-type.stderr index b4dd6c8446c5..688d0b3be44d 100644 --- a/src/test/ui/impl-trait/universal-mismatched-type.stderr +++ b/src/test/ui/impl-trait/universal-mismatched-type.stderr @@ -11,3 +11,4 @@ error[E0308]: mismatched types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/impl-trait/universal-two-impl-traits.stderr b/src/test/ui/impl-trait/universal-two-impl-traits.stderr index 9903e26bbbd0..ab41e44cdea0 100644 --- a/src/test/ui/impl-trait/universal-two-impl-traits.stderr +++ b/src/test/ui/impl-trait/universal-two-impl-traits.stderr @@ -9,3 +9,4 @@ error[E0308]: mismatched types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/impl-trait/universal_wrong_bounds.stderr b/src/test/ui/impl-trait/universal_wrong_bounds.stderr index b457e025c29f..d3ae05eb4e5d 100644 --- a/src/test/ui/impl-trait/universal_wrong_bounds.stderr +++ b/src/test/ui/impl-trait/universal_wrong_bounds.stderr @@ -26,3 +26,5 @@ help: possible candidate is found in another module, you can import it into scop error: cannot continue compilation due to previous error +You've got a few errors: E0405, E0425 +If you want more information on an error, try using "rustc --explain E0405" diff --git a/src/test/ui/impl-unused-rps-in-assoc-type.stderr b/src/test/ui/impl-unused-rps-in-assoc-type.stderr index ec261ed63b1e..d8e31a750ffe 100644 --- a/src/test/ui/impl-unused-rps-in-assoc-type.stderr +++ b/src/test/ui/impl-unused-rps-in-assoc-type.stderr @@ -6,3 +6,4 @@ error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0207" diff --git a/src/test/ui/impl_trait_projections.stderr b/src/test/ui/impl_trait_projections.stderr index 08de0eb99a30..a0a24cc9d04c 100644 --- a/src/test/ui/impl_trait_projections.stderr +++ b/src/test/ui/impl_trait_projections.stderr @@ -32,3 +32,5 @@ error[E0223]: ambiguous associated type error: aborting due to 5 previous errors +You've got a few errors: E0223, E0667 +If you want more information on an error, try using "rustc --explain E0223" diff --git a/src/test/ui/imports/duplicate.stderr b/src/test/ui/imports/duplicate.stderr index 6e5b91a11c90..707f0081cd64 100644 --- a/src/test/ui/imports/duplicate.stderr +++ b/src/test/ui/imports/duplicate.stderr @@ -86,3 +86,5 @@ note: `foo` could also refer to the name imported here error: aborting due to 5 previous errors +You've got a few errors: E0252, E0659 +If you want more information on an error, try using "rustc --explain E0252" diff --git a/src/test/ui/imports/macro-paths.stderr b/src/test/ui/imports/macro-paths.stderr index 32d78666004c..02e7e34d32e9 100644 --- a/src/test/ui/imports/macro-paths.stderr +++ b/src/test/ui/imports/macro-paths.stderr @@ -40,3 +40,5 @@ error[E0601]: main function not found error: aborting due to 3 previous errors +You've got a few errors: E0601, E0659 +If you want more information on an error, try using "rustc --explain E0601" diff --git a/src/test/ui/imports/macros.stderr b/src/test/ui/imports/macros.stderr index 75294f7bf125..6b917b980629 100644 --- a/src/test/ui/imports/macros.stderr +++ b/src/test/ui/imports/macros.stderr @@ -55,3 +55,5 @@ error[E0601]: main function not found error: aborting due to 4 previous errors +You've got a few errors: E0601, E0659 +If you want more information on an error, try using "rustc --explain E0601" diff --git a/src/test/ui/imports/shadow_builtin_macros.stderr b/src/test/ui/imports/shadow_builtin_macros.stderr index 8f4325fa12c7..709a36dab291 100644 --- a/src/test/ui/imports/shadow_builtin_macros.stderr +++ b/src/test/ui/imports/shadow_builtin_macros.stderr @@ -57,3 +57,4 @@ note: `n` could also refer to the name imported here error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0659" diff --git a/src/test/ui/impossible_range.stderr b/src/test/ui/impossible_range.stderr index e0e26bc4db04..9b3a8e7f6c3f 100644 --- a/src/test/ui/impossible_range.stderr +++ b/src/test/ui/impossible_range.stderr @@ -16,3 +16,4 @@ error[E0586]: inclusive range with no end error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0586" diff --git a/src/test/ui/in-band-lifetimes/E0687.stderr b/src/test/ui/in-band-lifetimes/E0687.stderr index 42714f21685f..66451f49f28b 100644 --- a/src/test/ui/in-band-lifetimes/E0687.stderr +++ b/src/test/ui/in-band-lifetimes/E0687.stderr @@ -24,3 +24,4 @@ error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0687" diff --git a/src/test/ui/in-band-lifetimes/E0687_where.stderr b/src/test/ui/in-band-lifetimes/E0687_where.stderr index a9913f6b6446..0a63092acf71 100644 --- a/src/test/ui/in-band-lifetimes/E0687_where.stderr +++ b/src/test/ui/in-band-lifetimes/E0687_where.stderr @@ -12,3 +12,4 @@ error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0687" diff --git a/src/test/ui/in-band-lifetimes/E0688.stderr b/src/test/ui/in-band-lifetimes/E0688.stderr index c33b088f0faa..0e4e75469a96 100644 --- a/src/test/ui/in-band-lifetimes/E0688.stderr +++ b/src/test/ui/in-band-lifetimes/E0688.stderr @@ -24,3 +24,4 @@ error[E0688]: cannot mix in-band and explicit lifetime definitions error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0688" diff --git a/src/test/ui/in-band-lifetimes/mismatched.stderr b/src/test/ui/in-band-lifetimes/mismatched.stderr index 0c1231e01de6..b81b5f56f145 100644 --- a/src/test/ui/in-band-lifetimes/mismatched.stderr +++ b/src/test/ui/in-band-lifetimes/mismatched.stderr @@ -16,3 +16,5 @@ error[E0623]: lifetime mismatch error: aborting due to 2 previous errors +You've got a few errors: E0621, E0623 +If you want more information on an error, try using "rustc --explain E0621" diff --git a/src/test/ui/in-band-lifetimes/mismatched_trait.stderr b/src/test/ui/in-band-lifetimes/mismatched_trait.stderr index 58ff1694fb74..8e5a37b03c51 100644 --- a/src/test/ui/in-band-lifetimes/mismatched_trait.stderr +++ b/src/test/ui/in-band-lifetimes/mismatched_trait.stderr @@ -8,3 +8,4 @@ error[E0621]: explicit lifetime required in the type of `y` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0621" diff --git a/src/test/ui/in-band-lifetimes/mismatched_trait_impl-2.stderr b/src/test/ui/in-band-lifetimes/mismatched_trait_impl-2.stderr index 7aab31eb909d..0345e0dd6112 100644 --- a/src/test/ui/in-band-lifetimes/mismatched_trait_impl-2.stderr +++ b/src/test/ui/in-band-lifetimes/mismatched_trait_impl-2.stderr @@ -20,3 +20,5 @@ note: first, the lifetime cannot outlive the anonymous lifetime #1 defined on th error: aborting due to 2 previous errors +You've got a few errors: E0495, E0601 +If you want more information on an error, try using "rustc --explain E0495" diff --git a/src/test/ui/in-band-lifetimes/mismatched_trait_impl.stderr b/src/test/ui/in-band-lifetimes/mismatched_trait_impl.stderr index fd6be01da9f4..b970afe0baef 100644 --- a/src/test/ui/in-band-lifetimes/mismatched_trait_impl.stderr +++ b/src/test/ui/in-band-lifetimes/mismatched_trait_impl.stderr @@ -22,3 +22,4 @@ note: ...but the lifetime must also be valid for the lifetime 'a as defined on t error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0495" diff --git a/src/test/ui/in-band-lifetimes/mut_while_borrow.stderr b/src/test/ui/in-band-lifetimes/mut_while_borrow.stderr index 14f9098c6c2f..192eb5d3e8af 100644 --- a/src/test/ui/in-band-lifetimes/mut_while_borrow.stderr +++ b/src/test/ui/in-band-lifetimes/mut_while_borrow.stderr @@ -8,3 +8,4 @@ error[E0506]: cannot assign to `p` because it is borrowed error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0506" diff --git a/src/test/ui/in-band-lifetimes/no_in_band_in_struct.stderr b/src/test/ui/in-band-lifetimes/no_in_band_in_struct.stderr index a8df6dbca0a1..a9cc6845133f 100644 --- a/src/test/ui/in-band-lifetimes/no_in_band_in_struct.stderr +++ b/src/test/ui/in-band-lifetimes/no_in_band_in_struct.stderr @@ -12,3 +12,4 @@ error[E0261]: use of undeclared lifetime name `'test` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0261" diff --git a/src/test/ui/in-band-lifetimes/no_introducing_in_band_in_locals.stderr b/src/test/ui/in-band-lifetimes/no_introducing_in_band_in_locals.stderr index e2340dbba23e..265eb32b3cc7 100644 --- a/src/test/ui/in-band-lifetimes/no_introducing_in_band_in_locals.stderr +++ b/src/test/ui/in-band-lifetimes/no_introducing_in_band_in_locals.stderr @@ -12,3 +12,4 @@ error[E0261]: use of undeclared lifetime name `'test` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0261" diff --git a/src/test/ui/in-band-lifetimes/shadow.stderr b/src/test/ui/in-band-lifetimes/shadow.stderr index 49b82fa495a0..1aa3e21beba1 100644 --- a/src/test/ui/in-band-lifetimes/shadow.stderr +++ b/src/test/ui/in-band-lifetimes/shadow.stderr @@ -17,3 +17,4 @@ error[E0496]: lifetime name `'s` shadows a lifetime name that is already in scop error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0496" diff --git a/src/test/ui/index-help.stderr b/src/test/ui/index-help.stderr index e1652b6c262c..d9ed32f6bb93 100644 --- a/src/test/ui/index-help.stderr +++ b/src/test/ui/index-help.stderr @@ -8,3 +8,4 @@ error[E0277]: the trait bound `std::vec::Vec<{integer}>: std::ops::Index` i error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/interior-mutability/interior-mutability.stderr b/src/test/ui/interior-mutability/interior-mutability.stderr index f4beb44b82dc..78b790be87f4 100644 --- a/src/test/ui/interior-mutability/interior-mutability.stderr +++ b/src/test/ui/interior-mutability/interior-mutability.stderr @@ -12,3 +12,4 @@ error[E0277]: the trait bound `std::cell::UnsafeCell: std::panic::RefUnwind error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/invalid-module-declaration/invalid-module-declaration.stderr b/src/test/ui/invalid-module-declaration/invalid-module-declaration.stderr index 58df416030c5..1fa998bef37b 100644 --- a/src/test/ui/invalid-module-declaration/invalid-module-declaration.stderr +++ b/src/test/ui/invalid-module-declaration/invalid-module-declaration.stderr @@ -8,3 +8,4 @@ error[E0583]: file not found for module `baz` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0583" diff --git a/src/test/ui/invalid-path-in-const.stderr b/src/test/ui/invalid-path-in-const.stderr index be1de60bca55..5dbef279db4c 100644 --- a/src/test/ui/invalid-path-in-const.stderr +++ b/src/test/ui/invalid-path-in-const.stderr @@ -6,3 +6,4 @@ error[E0599]: no associated item named `DOESNOTEXIST` found for type `u32` in th error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/issue-10969.stderr b/src/test/ui/issue-10969.stderr index 68127b282ed5..24ca8c0c4379 100644 --- a/src/test/ui/issue-10969.stderr +++ b/src/test/ui/issue-10969.stderr @@ -16,3 +16,4 @@ error[E0618]: expected function, found `i32` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0618" diff --git a/src/test/ui/issue-11004.stderr b/src/test/ui/issue-11004.stderr index 9b8c3df7d59c..ce243b6963f7 100644 --- a/src/test/ui/issue-11004.stderr +++ b/src/test/ui/issue-11004.stderr @@ -16,3 +16,4 @@ error[E0609]: no field `y` on type `*mut A` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0609" diff --git a/src/test/ui/issue-11319.stderr b/src/test/ui/issue-11319.stderr index 20103d389ffb..2ab61bf90db5 100644 --- a/src/test/ui/issue-11319.stderr +++ b/src/test/ui/issue-11319.stderr @@ -17,3 +17,4 @@ error[E0308]: match arms have incompatible types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/issue-12187-1.stderr b/src/test/ui/issue-12187-1.stderr index e36c278df6e4..9ce8b066b375 100644 --- a/src/test/ui/issue-12187-1.stderr +++ b/src/test/ui/issue-12187-1.stderr @@ -9,3 +9,4 @@ error[E0282]: type annotations needed error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0282" diff --git a/src/test/ui/issue-12187-2.stderr b/src/test/ui/issue-12187-2.stderr index b72c23987ec3..46add9bec2c2 100644 --- a/src/test/ui/issue-12187-2.stderr +++ b/src/test/ui/issue-12187-2.stderr @@ -9,3 +9,4 @@ error[E0282]: type annotations needed error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0282" diff --git a/src/test/ui/issue-12511.stderr b/src/test/ui/issue-12511.stderr index aec828a90d1a..932fd5a82ddb 100644 --- a/src/test/ui/issue-12511.stderr +++ b/src/test/ui/issue-12511.stderr @@ -18,3 +18,4 @@ note: ...which then requires computing the supertraits of `t2`... error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0391" diff --git a/src/test/ui/issue-13058.stderr b/src/test/ui/issue-13058.stderr index fb8fb058daa2..fb73fbcd007c 100644 --- a/src/test/ui/issue-13058.stderr +++ b/src/test/ui/issue-13058.stderr @@ -21,3 +21,5 @@ error[E0308]: mismatched types error: aborting due to 2 previous errors +You've got a few errors: E0308, E0621 +If you want more information on an error, try using "rustc --explain E0308" diff --git a/src/test/ui/issue-14092.stderr b/src/test/ui/issue-14092.stderr index e0b5bdb93d80..b500e706b362 100644 --- a/src/test/ui/issue-14092.stderr +++ b/src/test/ui/issue-14092.stderr @@ -6,3 +6,4 @@ error[E0243]: wrong number of type arguments: expected 1, found 0 error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0243" diff --git a/src/test/ui/issue-15260.stderr b/src/test/ui/issue-15260.stderr index aca2fa5ed041..1d41e207147c 100644 --- a/src/test/ui/issue-15260.stderr +++ b/src/test/ui/issue-15260.stderr @@ -33,3 +33,4 @@ error[E0025]: field `a` bound multiple times in the pattern error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0025" diff --git a/src/test/ui/issue-15524.stderr b/src/test/ui/issue-15524.stderr index 9c77752be202..ccbcda57db14 100644 --- a/src/test/ui/issue-15524.stderr +++ b/src/test/ui/issue-15524.stderr @@ -26,3 +26,4 @@ error[E0081]: discriminant value `1isize` already exists error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0081" diff --git a/src/test/ui/issue-17263.stderr b/src/test/ui/issue-17263.stderr index a762c0876b55..306c713da440 100644 --- a/src/test/ui/issue-17263.stderr +++ b/src/test/ui/issue-17263.stderr @@ -22,3 +22,5 @@ error[E0502]: cannot borrow `foo` (via `foo.b`) as immutable because `foo` is al error: aborting due to 2 previous errors +You've got a few errors: E0499, E0502 +If you want more information on an error, try using "rustc --explain E0499" diff --git a/src/test/ui/issue-17441.stderr b/src/test/ui/issue-17441.stderr index 593507a5d451..244da658f804 100644 --- a/src/test/ui/issue-17441.stderr +++ b/src/test/ui/issue-17441.stderr @@ -44,3 +44,4 @@ help: consider using a box or reference as appropriate error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0620" diff --git a/src/test/ui/issue-18183.stderr b/src/test/ui/issue-18183.stderr index 310508022611..cb8a9608075f 100644 --- a/src/test/ui/issue-18183.stderr +++ b/src/test/ui/issue-18183.stderr @@ -6,3 +6,4 @@ error[E0128]: type parameters with a default cannot use forward declared identif error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0128" diff --git a/src/test/ui/issue-18819.stderr b/src/test/ui/issue-18819.stderr index 1cd899925caa..d2f3219b2332 100644 --- a/src/test/ui/issue-18819.stderr +++ b/src/test/ui/issue-18819.stderr @@ -9,3 +9,4 @@ error[E0061]: this function takes 2 parameters but 1 parameter was supplied error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0061" diff --git a/src/test/ui/issue-19498.stderr b/src/test/ui/issue-19498.stderr index 489abf715ded..7c3f0aad4f65 100644 --- a/src/test/ui/issue-19498.stderr +++ b/src/test/ui/issue-19498.stderr @@ -44,3 +44,4 @@ help: You can use `as` to change the binding name of the import error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0255" diff --git a/src/test/ui/issue-19707.stderr b/src/test/ui/issue-19707.stderr index b4d4f6f1bbf8..42f768139b10 100644 --- a/src/test/ui/issue-19707.stderr +++ b/src/test/ui/issue-19707.stderr @@ -16,3 +16,4 @@ error[E0106]: missing lifetime specifier error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0106" diff --git a/src/test/ui/issue-19922.stderr b/src/test/ui/issue-19922.stderr index 035901abac66..023c12ecce8a 100644 --- a/src/test/ui/issue-19922.stderr +++ b/src/test/ui/issue-19922.stderr @@ -8,3 +8,4 @@ error[E0559]: variant `Homura::Akemi` has no field named `kaname` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0559" diff --git a/src/test/ui/issue-20692.stderr b/src/test/ui/issue-20692.stderr index 2a5ddd1b6118..e0dc9560462b 100644 --- a/src/test/ui/issue-20692.stderr +++ b/src/test/ui/issue-20692.stderr @@ -17,3 +17,4 @@ error[E0038]: the trait `Array` cannot be made into an object error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0038" diff --git a/src/test/ui/issue-21546.stderr b/src/test/ui/issue-21546.stderr index ec953103a1c5..1be006865b0b 100644 --- a/src/test/ui/issue-21546.stderr +++ b/src/test/ui/issue-21546.stderr @@ -66,3 +66,4 @@ error[E0428]: the name `Corge` is defined multiple times error: aborting due to 6 previous errors +If you want more information on this error, try using "rustc --explain E0428" diff --git a/src/test/ui/issue-21600.stderr b/src/test/ui/issue-21600.stderr index e177e8ede626..fab7d8698ca1 100644 --- a/src/test/ui/issue-21600.stderr +++ b/src/test/ui/issue-21600.stderr @@ -29,3 +29,4 @@ help: consider changing this closure to take self by mutable reference error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0387" diff --git a/src/test/ui/issue-21950.stderr b/src/test/ui/issue-21950.stderr index 123d61a261db..9bf44df608a4 100644 --- a/src/test/ui/issue-21950.stderr +++ b/src/test/ui/issue-21950.stderr @@ -14,3 +14,5 @@ error[E0191]: the value of the associated type `Output` (from the trait `std::op error: aborting due to 2 previous errors +You've got a few errors: E0191, E0393 +If you want more information on an error, try using "rustc --explain E0191" diff --git a/src/test/ui/issue-22370.stderr b/src/test/ui/issue-22370.stderr index 9498000ca56e..70e17bdd0637 100644 --- a/src/test/ui/issue-22370.stderr +++ b/src/test/ui/issue-22370.stderr @@ -8,3 +8,4 @@ error[E0393]: the type parameter `T` must be explicitly specified error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0393" diff --git a/src/test/ui/issue-22560.stderr b/src/test/ui/issue-22560.stderr index 1c594cb6cb85..1e3685403f50 100644 --- a/src/test/ui/issue-22560.stderr +++ b/src/test/ui/issue-22560.stderr @@ -32,3 +32,5 @@ error[E0191]: the value of the associated type `Output` (from the trait `std::op error: aborting due to 4 previous errors +You've got a few errors: E0191, E0225, E0393 +If you want more information on an error, try using "rustc --explain E0191" diff --git a/src/test/ui/issue-22886.stderr b/src/test/ui/issue-22886.stderr index 23d05edc919b..f884c80ccaee 100644 --- a/src/test/ui/issue-22886.stderr +++ b/src/test/ui/issue-22886.stderr @@ -6,3 +6,4 @@ error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0207" diff --git a/src/test/ui/issue-22933-2.stderr b/src/test/ui/issue-22933-2.stderr index 8853d43408c0..5b87b95b81ae 100644 --- a/src/test/ui/issue-22933-2.stderr +++ b/src/test/ui/issue-22933-2.stderr @@ -9,3 +9,4 @@ error[E0599]: no variant named `PIE` found for type `Delicious` in the current s error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/issue-23041.stderr b/src/test/ui/issue-23041.stderr index 048ae5834e3c..7626324b2f2b 100644 --- a/src/test/ui/issue-23041.stderr +++ b/src/test/ui/issue-23041.stderr @@ -6,3 +6,4 @@ error[E0282]: type annotations needed error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0282" diff --git a/src/test/ui/issue-23173.stderr b/src/test/ui/issue-23173.stderr index 38a22257ff84..c84657b4c599 100644 --- a/src/test/ui/issue-23173.stderr +++ b/src/test/ui/issue-23173.stderr @@ -36,3 +36,4 @@ error[E0599]: no associated item named `Assoc` found for type `Struct` in the cu error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/issue-23217.stderr b/src/test/ui/issue-23217.stderr index eae6c2de9c56..638e783e067d 100644 --- a/src/test/ui/issue-23217.stderr +++ b/src/test/ui/issue-23217.stderr @@ -8,3 +8,4 @@ error[E0599]: no variant named `A` found for type `SomeEnum` in the current scop error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/issue-23302-1.stderr b/src/test/ui/issue-23302-1.stderr index 0658c07fb1db..1248d2075a57 100644 --- a/src/test/ui/issue-23302-1.stderr +++ b/src/test/ui/issue-23302-1.stderr @@ -13,3 +13,4 @@ note: the cycle begins when const-evaluating `X::A::{{initializer}}`... error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0391" diff --git a/src/test/ui/issue-23302-2.stderr b/src/test/ui/issue-23302-2.stderr index c4a1c4f80c82..5438ce4b797f 100644 --- a/src/test/ui/issue-23302-2.stderr +++ b/src/test/ui/issue-23302-2.stderr @@ -13,3 +13,4 @@ note: the cycle begins when const-evaluating `Y::A::{{initializer}}`... error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0391" diff --git a/src/test/ui/issue-23302-3.stderr b/src/test/ui/issue-23302-3.stderr index 76f543cff791..0a7e239d32fd 100644 --- a/src/test/ui/issue-23302-3.stderr +++ b/src/test/ui/issue-23302-3.stderr @@ -18,3 +18,4 @@ note: ...which then requires processing `A`... error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0391" diff --git a/src/test/ui/issue-23543.stderr b/src/test/ui/issue-23543.stderr index e5181960753b..e5ea6a5dd6fc 100644 --- a/src/test/ui/issue-23543.stderr +++ b/src/test/ui/issue-23543.stderr @@ -6,3 +6,4 @@ error[E0229]: associated type bindings are not allowed here error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0229" diff --git a/src/test/ui/issue-23544.stderr b/src/test/ui/issue-23544.stderr index 496a7aff7b73..368750379590 100644 --- a/src/test/ui/issue-23544.stderr +++ b/src/test/ui/issue-23544.stderr @@ -6,3 +6,4 @@ error[E0229]: associated type bindings are not allowed here error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0229" diff --git a/src/test/ui/issue-23716.stderr b/src/test/ui/issue-23716.stderr index 2db67c7ec00d..9b2ab554794e 100644 --- a/src/test/ui/issue-23716.stderr +++ b/src/test/ui/issue-23716.stderr @@ -18,3 +18,4 @@ error[E0530]: function parameters cannot shadow statics error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0530" diff --git a/src/test/ui/issue-24036.stderr b/src/test/ui/issue-24036.stderr index c89f7241f5b5..893ff498513d 100644 --- a/src/test/ui/issue-24036.stderr +++ b/src/test/ui/issue-24036.stderr @@ -29,3 +29,4 @@ error[E0308]: match arms have incompatible types error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/issue-24081.stderr b/src/test/ui/issue-24081.stderr index 969cf3577fbc..9df8386e6718 100644 --- a/src/test/ui/issue-24081.stderr +++ b/src/test/ui/issue-24081.stderr @@ -75,3 +75,4 @@ help: You can use `as` to change the binding name of the import error: aborting due to 5 previous errors +If you want more information on this error, try using "rustc --explain E0255" diff --git a/src/test/ui/issue-24424.stderr b/src/test/ui/issue-24424.stderr index 55af26dd91ea..de1e30dc08b6 100644 --- a/src/test/ui/issue-24424.stderr +++ b/src/test/ui/issue-24424.stderr @@ -12,3 +12,4 @@ note: required by `Trait0` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0283" diff --git a/src/test/ui/issue-25385.stderr b/src/test/ui/issue-25385.stderr index 467cfc53388b..e774f538a99e 100644 --- a/src/test/ui/issue-25385.stderr +++ b/src/test/ui/issue-25385.stderr @@ -15,3 +15,4 @@ error[E0599]: no method named `foo` found for type `i32` in the current scope error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/issue-25793.stderr b/src/test/ui/issue-25793.stderr index 914cc6fc4267..bb7f58cf3cd5 100644 --- a/src/test/ui/issue-25793.stderr +++ b/src/test/ui/issue-25793.stderr @@ -11,3 +11,4 @@ error[E0503]: cannot use `self.width` because it was mutably borrowed error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0503" diff --git a/src/test/ui/issue-25826.stderr b/src/test/ui/issue-25826.stderr index 3b6599ccbd6d..c617a1ce5071 100644 --- a/src/test/ui/issue-25826.stderr +++ b/src/test/ui/issue-25826.stderr @@ -6,3 +6,4 @@ error[E0395]: raw pointers cannot be compared in constants error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0395" diff --git a/src/test/ui/issue-26056.stderr b/src/test/ui/issue-26056.stderr index b95438314c39..8adb3570dfe9 100644 --- a/src/test/ui/issue-26056.stderr +++ b/src/test/ui/issue-26056.stderr @@ -8,3 +8,4 @@ error[E0038]: the trait `Map` cannot be made into an object error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0038" diff --git a/src/test/ui/issue-26093.stderr b/src/test/ui/issue-26093.stderr index b850852623fd..77565c3c057d 100644 --- a/src/test/ui/issue-26093.stderr +++ b/src/test/ui/issue-26093.stderr @@ -9,3 +9,4 @@ error[E0070]: invalid left-hand side expression error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0070" diff --git a/src/test/ui/issue-26472.stderr b/src/test/ui/issue-26472.stderr index 5b61aa98c3f9..07a9b61fb7a9 100644 --- a/src/test/ui/issue-26472.stderr +++ b/src/test/ui/issue-26472.stderr @@ -8,3 +8,4 @@ error[E0616]: field `len` of struct `sub::S` is private error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0616" diff --git a/src/test/ui/issue-26638.stderr b/src/test/ui/issue-26638.stderr index 3b124ff40635..1d4fb6a3399c 100644 --- a/src/test/ui/issue-26638.stderr +++ b/src/test/ui/issue-26638.stderr @@ -26,3 +26,4 @@ error[E0106]: missing lifetime specifier error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0106" diff --git a/src/test/ui/issue-26886.stderr b/src/test/ui/issue-26886.stderr index e6424e535ee3..842276453a43 100644 --- a/src/test/ui/issue-26886.stderr +++ b/src/test/ui/issue-26886.stderr @@ -29,3 +29,4 @@ help: You can use `as` to change the binding name of the import error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0252" diff --git a/src/test/ui/issue-27842.stderr b/src/test/ui/issue-27842.stderr index 2e3b20e43ff0..0feb1fbfc374 100644 --- a/src/test/ui/issue-27842.stderr +++ b/src/test/ui/issue-27842.stderr @@ -14,3 +14,4 @@ error[E0608]: cannot index into a value of type `({integer}, {integer}, {integer error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0608" diff --git a/src/test/ui/issue-27942.stderr b/src/test/ui/issue-27942.stderr index b24544743d87..8958cf0139a4 100644 --- a/src/test/ui/issue-27942.stderr +++ b/src/test/ui/issue-27942.stderr @@ -38,3 +38,4 @@ note: ...does not necessarily outlive the anonymous lifetime #1 defined on the m error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/issue-2848.stderr b/src/test/ui/issue-2848.stderr index 6d4ed9c01111..3b5eed4e7b87 100644 --- a/src/test/ui/issue-2848.stderr +++ b/src/test/ui/issue-2848.stderr @@ -8,3 +8,4 @@ error[E0408]: variable `beta` is not bound in all patterns error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0408" diff --git a/src/test/ui/issue-28568.stderr b/src/test/ui/issue-28568.stderr index 61717ee60ff3..d7e7c953c4bf 100644 --- a/src/test/ui/issue-28568.stderr +++ b/src/test/ui/issue-28568.stderr @@ -9,3 +9,4 @@ error[E0119]: conflicting implementations of trait `std::ops::Drop` for type `My error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0119" diff --git a/src/test/ui/issue-28776.stderr b/src/test/ui/issue-28776.stderr index cf24a8312af9..e6e88f300e5d 100644 --- a/src/test/ui/issue-28776.stderr +++ b/src/test/ui/issue-28776.stderr @@ -6,3 +6,4 @@ error[E0133]: call to unsafe function requires unsafe function or block error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0133" diff --git a/src/test/ui/issue-28837.stderr b/src/test/ui/issue-28837.stderr index 8d9afb5be792..6999a7450344 100644 --- a/src/test/ui/issue-28837.stderr +++ b/src/test/ui/issue-28837.stderr @@ -120,3 +120,4 @@ error[E0369]: binary operation `>=` cannot be applied to type `A` error: aborting due to 15 previous errors +If you want more information on this error, try using "rustc --explain E0369" diff --git a/src/test/ui/issue-28971.stderr b/src/test/ui/issue-28971.stderr index 6237aae67be6..5b753e6f3858 100644 --- a/src/test/ui/issue-28971.stderr +++ b/src/test/ui/issue-28971.stderr @@ -9,3 +9,4 @@ error[E0599]: no variant named `Baz` found for type `Foo` in the current scope error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/issue-29124.stderr b/src/test/ui/issue-29124.stderr index 0b81526d655e..32e40787758d 100644 --- a/src/test/ui/issue-29124.stderr +++ b/src/test/ui/issue-29124.stderr @@ -16,3 +16,4 @@ error[E0599]: no method named `x` found for type `fn() -> ret {func}` in the cur error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0599" diff --git a/src/test/ui/issue-29723.stderr b/src/test/ui/issue-29723.stderr index 061c3d493238..9564e225f642 100644 --- a/src/test/ui/issue-29723.stderr +++ b/src/test/ui/issue-29723.stderr @@ -11,3 +11,4 @@ error[E0382]: use of moved value: `s` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0382" diff --git a/src/test/ui/issue-3008-1.stderr b/src/test/ui/issue-3008-1.stderr index 7d8e10a76062..4f0807740737 100644 --- a/src/test/ui/issue-3008-1.stderr +++ b/src/test/ui/issue-3008-1.stderr @@ -11,3 +11,4 @@ error[E0072]: recursive type `Bar` has infinite size error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0072" diff --git a/src/test/ui/issue-3008-2.stderr b/src/test/ui/issue-3008-2.stderr index 2d5e2966df9c..d5e21463b607 100644 --- a/src/test/ui/issue-3008-2.stderr +++ b/src/test/ui/issue-3008-2.stderr @@ -10,3 +10,4 @@ error[E0072]: recursive type `bar` has infinite size error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0072" diff --git a/src/test/ui/issue-30255.stderr b/src/test/ui/issue-30255.stderr index b0c314912cca..edd4549f09a8 100644 --- a/src/test/ui/issue-30255.stderr +++ b/src/test/ui/issue-30255.stderr @@ -24,3 +24,4 @@ error[E0106]: missing lifetime specifier error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0106" diff --git a/src/test/ui/issue-3044.stderr b/src/test/ui/issue-3044.stderr index 14f2d5195d60..d6d37753c4d3 100644 --- a/src/test/ui/issue-3044.stderr +++ b/src/test/ui/issue-3044.stderr @@ -6,3 +6,4 @@ error[E0061]: this function takes 2 parameters but 1 parameter was supplied error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0061" diff --git a/src/test/ui/issue-32326.stderr b/src/test/ui/issue-32326.stderr index f907e3adaf18..24eaf17e6a70 100644 --- a/src/test/ui/issue-32326.stderr +++ b/src/test/ui/issue-32326.stderr @@ -12,3 +12,4 @@ error[E0072]: recursive type `Expr` has infinite size error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0072" diff --git a/src/test/ui/issue-33525.stderr b/src/test/ui/issue-33525.stderr index 4909340fa4c3..dfb94fefda1a 100644 --- a/src/test/ui/issue-33525.stderr +++ b/src/test/ui/issue-33525.stderr @@ -18,3 +18,5 @@ error[E0609]: no field `ipsum` on type `&'static str` error: aborting due to 3 previous errors +You've got a few errors: E0425, E0609 +If you want more information on an error, try using "rustc --explain E0425" diff --git a/src/test/ui/issue-33941.stderr b/src/test/ui/issue-33941.stderr index 78c9ce9a1b12..c71f69561223 100644 --- a/src/test/ui/issue-33941.stderr +++ b/src/test/ui/issue-33941.stderr @@ -19,3 +19,4 @@ error[E0271]: type mismatch resolving `` does not outlive the data it error: aborting due to 7 previous errors +You've got a few errors: E0309, E0310 +If you want more information on an error, try using "rustc --explain E0309" diff --git a/src/test/ui/lint-forbid-attr.stderr b/src/test/ui/lint-forbid-attr.stderr index dcef7fb9ac03..a0e66611567c 100644 --- a/src/test/ui/lint-forbid-attr.stderr +++ b/src/test/ui/lint-forbid-attr.stderr @@ -9,3 +9,4 @@ error[E0453]: allow(deprecated) overruled by outer forbid(deprecated) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0453" diff --git a/src/test/ui/lint/outer-forbid.stderr b/src/test/ui/lint/outer-forbid.stderr index 0bc4e4dcf5fd..75ec71e729fb 100644 --- a/src/test/ui/lint/outer-forbid.stderr +++ b/src/test/ui/lint/outer-forbid.stderr @@ -27,3 +27,4 @@ error[E0453]: allow(bad_style) overruled by outer forbid(non_snake_case) error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0453" diff --git a/src/test/ui/lint/use_suggestion_json.stderr b/src/test/ui/lint/use_suggestion_json.stderr index 86c2ad4c0e7a..368b223722d2 100644 --- a/src/test/ui/lint/use_suggestion_json.stderr +++ b/src/test/ui/lint/use_suggestion_json.stderr @@ -384,6 +384,7 @@ help: possible candidates are found in other modules, you can import them into s | and 8 other candidates +If you want more information on this error, try using /"rustc --explain E0412/" " } { diff --git a/src/test/ui/liveness-return-last-stmt-semi.stderr b/src/test/ui/liveness-return-last-stmt-semi.stderr index 2057e14d55fd..ede411188918 100644 --- a/src/test/ui/liveness-return-last-stmt-semi.stderr +++ b/src/test/ui/liveness-return-last-stmt-semi.stderr @@ -49,3 +49,4 @@ error[E0308]: mismatched types error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/loop-break-value-no-repeat.stderr b/src/test/ui/loop-break-value-no-repeat.stderr index 982de00b4fa7..427fade0ce02 100644 --- a/src/test/ui/loop-break-value-no-repeat.stderr +++ b/src/test/ui/loop-break-value-no-repeat.stderr @@ -10,3 +10,4 @@ help: instead, use `break` on its own without a value inside this `for` loop error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0571" diff --git a/src/test/ui/lub-glb/old-lub-glb-hr.stderr b/src/test/ui/lub-glb/old-lub-glb-hr.stderr index 105de33fac49..d308ae10f144 100644 --- a/src/test/ui/lub-glb/old-lub-glb-hr.stderr +++ b/src/test/ui/lub-glb/old-lub-glb-hr.stderr @@ -16,3 +16,4 @@ error[E0308]: match arms have incompatible types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/lub-glb/old-lub-glb-object.stderr b/src/test/ui/lub-glb/old-lub-glb-object.stderr index 3550314d44b6..21e1d3a04a2c 100644 --- a/src/test/ui/lub-glb/old-lub-glb-object.stderr +++ b/src/test/ui/lub-glb/old-lub-glb-object.stderr @@ -16,3 +16,4 @@ error[E0308]: match arms have incompatible types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/macros/macro-backtrace-invalid-internals.stderr b/src/test/ui/macros/macro-backtrace-invalid-internals.stderr index b9cad7e113db..b11a0b63bcb3 100644 --- a/src/test/ui/macros/macro-backtrace-invalid-internals.stderr +++ b/src/test/ui/macros/macro-backtrace-invalid-internals.stderr @@ -80,3 +80,5 @@ help: you must specify a concrete type for this numeric value, like `f32` error: aborting due to 8 previous errors +You've got a few errors: E0599, E0609, E0610, E0689 +If you want more information on an error, try using "rustc --explain E0599" diff --git a/src/test/ui/macros/macro-backtrace-nested.stderr b/src/test/ui/macros/macro-backtrace-nested.stderr index ee4a38312e28..2d3ce35c65fa 100644 --- a/src/test/ui/macros/macro-backtrace-nested.stderr +++ b/src/test/ui/macros/macro-backtrace-nested.stderr @@ -18,3 +18,4 @@ error[E0425]: cannot find value `fake` in this scope error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0425" diff --git a/src/test/ui/macros/macro_path_as_generic_bound.stderr b/src/test/ui/macros/macro_path_as_generic_bound.stderr index d59bcaa316e5..fc5e915d9b0e 100644 --- a/src/test/ui/macros/macro_path_as_generic_bound.stderr +++ b/src/test/ui/macros/macro_path_as_generic_bound.stderr @@ -6,3 +6,4 @@ error[E0433]: failed to resolve. Use of undeclared type or module `m` error: cannot continue compilation due to previous error +If you want more information on this error, try using "rustc --explain E0433" diff --git a/src/test/ui/macros/span-covering-argument-1.stderr b/src/test/ui/macros/span-covering-argument-1.stderr index 677d2f10fd6c..a35eb4e34ca2 100644 --- a/src/test/ui/macros/span-covering-argument-1.stderr +++ b/src/test/ui/macros/span-covering-argument-1.stderr @@ -11,3 +11,4 @@ error[E0596]: cannot borrow immutable local variable `foo` as mutable error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0596" diff --git a/src/test/ui/main-wrong-location.stderr b/src/test/ui/main-wrong-location.stderr index cb9740b87792..7dadb495cf14 100644 --- a/src/test/ui/main-wrong-location.stderr +++ b/src/test/ui/main-wrong-location.stderr @@ -9,3 +9,4 @@ note: here is a function named 'main' error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0601" diff --git a/src/test/ui/method-call-err-msg.stderr b/src/test/ui/method-call-err-msg.stderr index f9524696ed72..7def583e92a4 100644 --- a/src/test/ui/method-call-err-msg.stderr +++ b/src/test/ui/method-call-err-msg.stderr @@ -43,3 +43,5 @@ error[E0599]: no method named `take` found for type `Foo` in the current scope error: aborting due to 4 previous errors +You've got a few errors: E0061, E0599 +If you want more information on an error, try using "rustc --explain E0061" diff --git a/src/test/ui/method-missing-call.stderr b/src/test/ui/method-missing-call.stderr index d4cffbff4ef7..675855dcf349 100644 --- a/src/test/ui/method-missing-call.stderr +++ b/src/test/ui/method-missing-call.stderr @@ -16,3 +16,4 @@ error[E0615]: attempted to take value of method `filter_map` on type `std::iter: error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0615" diff --git a/src/test/ui/mismatched_types/E0053.stderr b/src/test/ui/mismatched_types/E0053.stderr index 226cb473e778..e63fd140f111 100644 --- a/src/test/ui/mismatched_types/E0053.stderr +++ b/src/test/ui/mismatched_types/E0053.stderr @@ -24,3 +24,4 @@ error[E0053]: method `bar` has an incompatible type for trait error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0053" diff --git a/src/test/ui/mismatched_types/E0409.stderr b/src/test/ui/mismatched_types/E0409.stderr index cc7c01790706..676a296661e3 100644 --- a/src/test/ui/mismatched_types/E0409.stderr +++ b/src/test/ui/mismatched_types/E0409.stderr @@ -17,3 +17,5 @@ error[E0308]: mismatched types error: aborting due to 2 previous errors +You've got a few errors: E0308, E0409 +If you want more information on an error, try using "rustc --explain E0308" diff --git a/src/test/ui/mismatched_types/E0631.stderr b/src/test/ui/mismatched_types/E0631.stderr index 53f2f54325d5..722c246f032d 100644 --- a/src/test/ui/mismatched_types/E0631.stderr +++ b/src/test/ui/mismatched_types/E0631.stderr @@ -58,3 +58,4 @@ note: required by `bar` error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0631" diff --git a/src/test/ui/mismatched_types/abridged.stderr b/src/test/ui/mismatched_types/abridged.stderr index 2e1e5afad32c..a52f2d3f6a15 100644 --- a/src/test/ui/mismatched_types/abridged.stderr +++ b/src/test/ui/mismatched_types/abridged.stderr @@ -68,3 +68,4 @@ error[E0308]: mismatched types error: aborting due to 6 previous errors +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/mismatched_types/binops.stderr b/src/test/ui/mismatched_types/binops.stderr index 828cf636951e..7bc3e8780992 100644 --- a/src/test/ui/mismatched_types/binops.stderr +++ b/src/test/ui/mismatched_types/binops.stderr @@ -48,3 +48,4 @@ error[E0277]: the trait bound `{integer}: std::cmp::PartialEq::Item` may not liv error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0309" diff --git a/src/test/ui/nll/ty-outlives/projection-one-region-closure.stderr b/src/test/ui/nll/ty-outlives/projection-one-region-closure.stderr index 946c1a8f3723..9b961a73e734 100644 --- a/src/test/ui/nll/ty-outlives/projection-one-region-closure.stderr +++ b/src/test/ui/nll/ty-outlives/projection-one-region-closure.stderr @@ -198,3 +198,4 @@ note: No external requirements error: aborting due to 6 previous errors +If you want more information on this error, try using "rustc --explain E0309" diff --git a/src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr b/src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr index 78775ce94add..aa7c5866ff1c 100644 --- a/src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr +++ b/src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr @@ -330,3 +330,4 @@ note: No external requirements error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0309" diff --git a/src/test/ui/nll/ty-outlives/ty-param-closure-approximate-lower-bound.stderr b/src/test/ui/nll/ty-outlives/ty-param-closure-approximate-lower-bound.stderr index f68a76c3d0de..a0e7e7720cf6 100644 --- a/src/test/ui/nll/ty-outlives/ty-param-closure-approximate-lower-bound.stderr +++ b/src/test/ui/nll/ty-outlives/ty-param-closure-approximate-lower-bound.stderr @@ -85,3 +85,4 @@ note: No external requirements error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0309" diff --git a/src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-return-type.stderr b/src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-return-type.stderr index b7120017a2c0..3113046ef5e0 100644 --- a/src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-return-type.stderr +++ b/src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-return-type.stderr @@ -60,3 +60,4 @@ error[E0309]: the parameter type `T` may not live long enough error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0309" diff --git a/src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-where-clause.stderr b/src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-where-clause.stderr index ed4d4b1e68f7..95a86ccae318 100644 --- a/src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-where-clause.stderr +++ b/src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-where-clause.stderr @@ -193,3 +193,4 @@ note: No external requirements error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0309" diff --git a/src/test/ui/nll/ty-outlives/ty-param-fn-body-nll-feature.stderr b/src/test/ui/nll/ty-outlives/ty-param-fn-body-nll-feature.stderr index fa9105df0702..3e2cab84b622 100644 --- a/src/test/ui/nll/ty-outlives/ty-param-fn-body-nll-feature.stderr +++ b/src/test/ui/nll/ty-outlives/ty-param-fn-body-nll-feature.stderr @@ -8,3 +8,4 @@ error[E0309]: the parameter type `T` may not live long enough error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0309" diff --git a/src/test/ui/nll/ty-outlives/ty-param-fn-body.stderr b/src/test/ui/nll/ty-outlives/ty-param-fn-body.stderr index 3334f4ecc7c8..cbfd2d412ef1 100644 --- a/src/test/ui/nll/ty-outlives/ty-param-fn-body.stderr +++ b/src/test/ui/nll/ty-outlives/ty-param-fn-body.stderr @@ -14,3 +14,4 @@ error[E0309]: the parameter type `T` may not live long enough error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0309" diff --git a/src/test/ui/nll/ty-outlives/ty-param-fn.stderr b/src/test/ui/nll/ty-outlives/ty-param-fn.stderr index 1e659e2e9f07..cf97c835013d 100644 --- a/src/test/ui/nll/ty-outlives/ty-param-fn.stderr +++ b/src/test/ui/nll/ty-outlives/ty-param-fn.stderr @@ -28,3 +28,4 @@ error[E0309]: the parameter type `T` may not live long enough error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0309" diff --git a/src/test/ui/no-patterns-in-args.stderr b/src/test/ui/no-patterns-in-args.stderr index 0db9eb9ded3b..bbf8e3b8a47d 100644 --- a/src/test/ui/no-patterns-in-args.stderr +++ b/src/test/ui/no-patterns-in-args.stderr @@ -30,3 +30,5 @@ error[E0561]: patterns aren't allowed in function pointer types error: aborting due to 5 previous errors +You've got a few errors: E0130, E0561 +If you want more information on an error, try using "rustc --explain E0130" diff --git a/src/test/ui/non-constant-expr-for-arr-len.stderr b/src/test/ui/non-constant-expr-for-arr-len.stderr index be7e8583824a..a3c3be65406a 100644 --- a/src/test/ui/non-constant-expr-for-arr-len.stderr +++ b/src/test/ui/non-constant-expr-for-arr-len.stderr @@ -6,3 +6,4 @@ error[E0435]: attempt to use a non-constant value in a constant error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0435" diff --git a/src/test/ui/non-exhaustive-pattern-witness.stderr b/src/test/ui/non-exhaustive-pattern-witness.stderr index f012dfed0b85..f2d8737b5c0d 100644 --- a/src/test/ui/non-exhaustive-pattern-witness.stderr +++ b/src/test/ui/non-exhaustive-pattern-witness.stderr @@ -42,3 +42,4 @@ error[E0004]: non-exhaustive patterns: `((), false)` not covered error: aborting due to 7 previous errors +If you want more information on this error, try using "rustc --explain E0004" diff --git a/src/test/ui/non_modrs_mods/non_modrs_mods.stderr b/src/test/ui/non_modrs_mods/non_modrs_mods.stderr index f60d2e93e369..5ea7e9806d10 100644 --- a/src/test/ui/non_modrs_mods/non_modrs_mods.stderr +++ b/src/test/ui/non_modrs_mods/non_modrs_mods.stderr @@ -36,3 +36,4 @@ error[E0658]: mod statements in non-mod.rs files are unstable (see issue #44660) error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/not-enough-arguments.stderr b/src/test/ui/not-enough-arguments.stderr index 291aa6ec4c11..03be57622281 100644 --- a/src/test/ui/not-enough-arguments.stderr +++ b/src/test/ui/not-enough-arguments.stderr @@ -9,3 +9,4 @@ error[E0061]: this function takes 4 parameters but 3 parameters were supplied error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0061" diff --git a/src/test/ui/numeric-fields.stderr b/src/test/ui/numeric-fields.stderr index 8261e9034a69..5cb2c0d7427c 100644 --- a/src/test/ui/numeric-fields.stderr +++ b/src/test/ui/numeric-fields.stderr @@ -14,3 +14,5 @@ error[E0026]: struct `S` does not have a field named `0x1` error: aborting due to 2 previous errors +You've got a few errors: E0026, E0560 +If you want more information on an error, try using "rustc --explain E0026" diff --git a/src/test/ui/object-safety-associated-consts.stderr b/src/test/ui/object-safety-associated-consts.stderr index f63ded9a8b10..ef1ba758eecf 100644 --- a/src/test/ui/object-safety-associated-consts.stderr +++ b/src/test/ui/object-safety-associated-consts.stderr @@ -8,3 +8,4 @@ error[E0038]: the trait `Bar` cannot be made into an object error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0038" diff --git a/src/test/ui/object-safety-generics.stderr b/src/test/ui/object-safety-generics.stderr index 7bc714163c7f..168ba2c0887d 100644 --- a/src/test/ui/object-safety-generics.stderr +++ b/src/test/ui/object-safety-generics.stderr @@ -16,3 +16,4 @@ error[E0038]: the trait `Bar` cannot be made into an object error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0038" diff --git a/src/test/ui/object-safety-mentions-Self.stderr b/src/test/ui/object-safety-mentions-Self.stderr index 8ed8dcc80315..9f90ce2e3775 100644 --- a/src/test/ui/object-safety-mentions-Self.stderr +++ b/src/test/ui/object-safety-mentions-Self.stderr @@ -16,3 +16,4 @@ error[E0038]: the trait `Baz` cannot be made into an object error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0038" diff --git a/src/test/ui/object-safety-sized.stderr b/src/test/ui/object-safety-sized.stderr index a733416ef6cc..e6d78e1c0435 100644 --- a/src/test/ui/object-safety-sized.stderr +++ b/src/test/ui/object-safety-sized.stderr @@ -8,3 +8,4 @@ error[E0038]: the trait `Bar` cannot be made into an object error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0038" diff --git a/src/test/ui/object-safety-supertrait-mentions-Self.stderr b/src/test/ui/object-safety-supertrait-mentions-Self.stderr index a5a67553c615..e67da8a3f882 100644 --- a/src/test/ui/object-safety-supertrait-mentions-Self.stderr +++ b/src/test/ui/object-safety-supertrait-mentions-Self.stderr @@ -8,3 +8,4 @@ error[E0038]: the trait `Baz` cannot be made into an object error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0038" diff --git a/src/test/ui/on-unimplemented/bad-annotation.stderr b/src/test/ui/on-unimplemented/bad-annotation.stderr index 7126cc76eb72..449fd408dd7b 100644 --- a/src/test/ui/on-unimplemented/bad-annotation.stderr +++ b/src/test/ui/on-unimplemented/bad-annotation.stderr @@ -74,3 +74,5 @@ error[E0232]: this attribute must have a valid value error: aborting due to 10 previous errors +You've got a few errors: E0230, E0231, E0232 +If you want more information on an error, try using "rustc --explain E0230" diff --git a/src/test/ui/on-unimplemented/multiple-impls.stderr b/src/test/ui/on-unimplemented/multiple-impls.stderr index cfac3981be28..efe73dc3b76e 100644 --- a/src/test/ui/on-unimplemented/multiple-impls.stderr +++ b/src/test/ui/on-unimplemented/multiple-impls.stderr @@ -63,3 +63,4 @@ error[E0277]: the trait bound `[i32]: Index>` is not satisfied error: aborting due to 6 previous errors +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/on-unimplemented/no-debug.stderr b/src/test/ui/on-unimplemented/no-debug.stderr index af5b1e91211f..44b80b2c93bb 100644 --- a/src/test/ui/on-unimplemented/no-debug.stderr +++ b/src/test/ui/on-unimplemented/no-debug.stderr @@ -36,3 +36,4 @@ error[E0277]: `no_debug::Bar` doesn't implement `std::fmt::Display` error: aborting due to 4 previous errors +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/on-unimplemented/on-impl.stderr b/src/test/ui/on-unimplemented/on-impl.stderr index ed2da68f0816..8925dc5d0644 100644 --- a/src/test/ui/on-unimplemented/on-impl.stderr +++ b/src/test/ui/on-unimplemented/on-impl.stderr @@ -21,3 +21,4 @@ error[E0277]: the trait bound `[i32]: Index` is not satisfied error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/on-unimplemented/on-trait.stderr b/src/test/ui/on-unimplemented/on-trait.stderr index 028200a5558c..d55b2b592c24 100644 --- a/src/test/ui/on-unimplemented/on-trait.stderr +++ b/src/test/ui/on-unimplemented/on-trait.stderr @@ -26,3 +26,4 @@ note: required by `foobar` error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/on-unimplemented/slice-index.stderr b/src/test/ui/on-unimplemented/slice-index.stderr index a1ecbce770a0..5d0d3c380d9d 100644 --- a/src/test/ui/on-unimplemented/slice-index.stderr +++ b/src/test/ui/on-unimplemented/slice-index.stderr @@ -18,3 +18,4 @@ error[E0277]: the trait bound `std::ops::RangeTo: std::slice::SliceIndex<[i error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/partialeq_help.stderr b/src/test/ui/partialeq_help.stderr index 25ae8b127681..36165269f86e 100644 --- a/src/test/ui/partialeq_help.stderr +++ b/src/test/ui/partialeq_help.stderr @@ -9,3 +9,4 @@ error[E0277]: the trait bound `&T: std::cmp::PartialEq` is not satisfied error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0277" diff --git a/src/test/ui/pat-slice-old-style.stderr b/src/test/ui/pat-slice-old-style.stderr index 29c41c49cc41..cfc0aa3da759 100644 --- a/src/test/ui/pat-slice-old-style.stderr +++ b/src/test/ui/pat-slice-old-style.stderr @@ -8,3 +8,4 @@ error[E0658]: non-reference pattern used to match a reference (see issue #42640) error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0658" diff --git a/src/test/ui/qualified-path-params-2.stderr b/src/test/ui/qualified-path-params-2.stderr index 35a9698451f1..96c5f1513461 100644 --- a/src/test/ui/qualified-path-params-2.stderr +++ b/src/test/ui/qualified-path-params-2.stderr @@ -14,3 +14,5 @@ error[E0223]: ambiguous associated type error: aborting due to 2 previous errors +You've got a few errors: E0109, E0223 +If you want more information on an error, try using "rustc --explain E0109" diff --git a/src/test/ui/reachable/expr_unary.stderr b/src/test/ui/reachable/expr_unary.stderr index 39120f0bdf98..a8e90d6e6457 100644 --- a/src/test/ui/reachable/expr_unary.stderr +++ b/src/test/ui/reachable/expr_unary.stderr @@ -32,3 +32,4 @@ error[E0600]: cannot apply unary operator `!` to type `!` error: aborting due to 3 previous errors +If you want more information on this error, try using "rustc --explain E0600" diff --git a/src/test/ui/recursive-requirements.stderr b/src/test/ui/recursive-requirements.stderr index 8cf2c65b1e25..3846915fb7ad 100644 --- a/src/test/ui/recursive-requirements.stderr +++ b/src/test/ui/recursive-requirements.stderr @@ -12,3 +12,4 @@ error[E0275]: overflow evaluating the requirement `Foo: std::marker::Sync` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0275" diff --git a/src/test/ui/region-borrow-params-issue-29793-small.stderr b/src/test/ui/region-borrow-params-issue-29793-small.stderr index 7cdea5b0bd26..af68b0a026ba 100644 --- a/src/test/ui/region-borrow-params-issue-29793-small.stderr +++ b/src/test/ui/region-borrow-params-issue-29793-small.stderr @@ -244,3 +244,5 @@ help: to force the closure to take ownership of `y` (and any other referenced va error: aborting due to 20 previous errors +You've got a few errors: E0373, E0597 +If you want more information on an error, try using "rustc --explain E0373" diff --git a/src/test/ui/regions-fn-subtyping-return-static.stderr b/src/test/ui/regions-fn-subtyping-return-static.stderr index 4a97537223cf..ac7763744c64 100644 --- a/src/test/ui/regions-fn-subtyping-return-static.stderr +++ b/src/test/ui/regions-fn-subtyping-return-static.stderr @@ -9,3 +9,4 @@ error[E0308]: mismatched types error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0308" diff --git a/src/test/ui/regions-nested-fns-2.stderr b/src/test/ui/regions-nested-fns-2.stderr index 5f0bbf6d12b1..244338dbb460 100644 --- a/src/test/ui/regions-nested-fns-2.stderr +++ b/src/test/ui/regions-nested-fns-2.stderr @@ -13,3 +13,4 @@ help: to force the closure to take ownership of `y` (and any other referenced va error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0373" diff --git a/src/test/ui/resolve-conflict-item-vs-import.stderr b/src/test/ui/resolve-conflict-item-vs-import.stderr index e2245b8a8b10..35d31abc5c56 100644 --- a/src/test/ui/resolve-conflict-item-vs-import.stderr +++ b/src/test/ui/resolve-conflict-item-vs-import.stderr @@ -15,3 +15,4 @@ help: You can use `as` to change the binding name of the import error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0255" diff --git a/src/test/ui/resolve-inconsistent-names.stderr b/src/test/ui/resolve-inconsistent-names.stderr index 8ae5a6b8a820..606234e00b66 100644 --- a/src/test/ui/resolve-inconsistent-names.stderr +++ b/src/test/ui/resolve-inconsistent-names.stderr @@ -16,3 +16,4 @@ error[E0408]: variable `b` is not bound in all patterns error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0408" diff --git a/src/test/ui/resolve/enums-are-namespaced-xc.stderr b/src/test/ui/resolve/enums-are-namespaced-xc.stderr index 5acc678df90e..ee6d22103e19 100644 --- a/src/test/ui/resolve/enums-are-namespaced-xc.stderr +++ b/src/test/ui/resolve/enums-are-namespaced-xc.stderr @@ -30,3 +30,5 @@ help: possible candidate is found in another module, you can import it into scop error: aborting due to 3 previous errors +You've got a few errors: E0422, E0425 +If you want more information on an error, try using "rustc --explain E0422" diff --git a/src/test/ui/resolve/issue-14254.stderr b/src/test/ui/resolve/issue-14254.stderr index 1bb5a4cab495..1a1cb8b0dd92 100644 --- a/src/test/ui/resolve/issue-14254.stderr +++ b/src/test/ui/resolve/issue-14254.stderr @@ -146,3 +146,5 @@ error[E0601]: main function not found error: aborting due to 25 previous errors +You've got a few errors: E0425, E0601 +If you want more information on an error, try using "rustc --explain E0425" diff --git a/src/test/ui/resolve/issue-16058.stderr b/src/test/ui/resolve/issue-16058.stderr index 322a1fea52ee..a0ccc2a11cfb 100644 --- a/src/test/ui/resolve/issue-16058.stderr +++ b/src/test/ui/resolve/issue-16058.stderr @@ -14,3 +14,4 @@ help: possible better candidates are found in other modules, you can import them error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0574" diff --git a/src/test/ui/resolve/issue-17518.stderr b/src/test/ui/resolve/issue-17518.stderr index ffb110d5c3af..10e7c9815ccd 100644 --- a/src/test/ui/resolve/issue-17518.stderr +++ b/src/test/ui/resolve/issue-17518.stderr @@ -10,3 +10,4 @@ help: possible candidate is found in another module, you can import it into scop error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0422" diff --git a/src/test/ui/resolve/issue-18252.stderr b/src/test/ui/resolve/issue-18252.stderr index edc7196d8464..c26bc052ee1f 100644 --- a/src/test/ui/resolve/issue-18252.stderr +++ b/src/test/ui/resolve/issue-18252.stderr @@ -6,3 +6,4 @@ error[E0423]: expected function, found struct variant `Foo::Variant` error: aborting due to previous error +If you want more information on this error, try using "rustc --explain E0423" diff --git a/src/test/ui/resolve/issue-19452.stderr b/src/test/ui/resolve/issue-19452.stderr index 7b14d49af51d..b80d4faefa95 100644 --- a/src/test/ui/resolve/issue-19452.stderr +++ b/src/test/ui/resolve/issue-19452.stderr @@ -12,3 +12,4 @@ error[E0423]: expected value, found struct variant `issue_19452_aux::Homura::Mad error: aborting due to 2 previous errors +If you want more information on this error, try using "rustc --explain E0423" diff --git a/src/test/ui/resolve/issue-21221-1.stderr b/src/test/ui/resolve/issue-21221-1.stderr index 88405fd841b0..cbf924d91b3c 100644 --- a/src/test/ui/resolve/issue-21221-1.stderr +++ b/src/test/ui/resolve/issue-21221-1.stderr @@ -47,3 +47,5 @@ help: possible candidate is found in another module, you can import it into scop error: cannot continue compilation due to previous error +You've got a few errors: E0405, E0412 +If you want more information on an error, try using "rustc --explain E0405" diff --git a/src/test/ui/resolve/issue-21221-2.stderr b/src/test/ui/resolve/issue-21221-2.stderr index 0ae8052758da..8a45bd58107b 100644 --- a/src/test/ui/resolve/issue-21221-2.stderr +++ b/src/test/ui/resolve/issue-21221-2.stderr @@ -12,3 +12,5 @@ error[E0601]: main function not found error: cannot continue compilation due to previous error +You've got a few errors: E0405, E0601 +If you want more information on an error, try using "rustc --explain E0405" diff --git a/src/test/ui/resolve/issue-21221-3.stderr b/src/test/ui/resolve/issue-21221-3.stderr index b26a8cdacb02..731d7bcd655b 100644 --- a/src/test/ui/resolve/issue-21221-3.stderr +++ b/src/test/ui/resolve/issue-21221-3.stderr @@ -10,3 +10,4 @@ help: possible candidate is found in another module, you can import it into scop error: cannot continue compilation due to previous error +If you want more information on this error, try using "rustc --explain E0405" diff --git a/src/test/ui/resolve/issue-21221-4.stderr b/src/test/ui/resolve/issue-21221-4.stderr index 0a22d8e1fe1a..446bd0e258de 100644 --- a/src/test/ui/resolve/issue-21221-4.stderr +++ b/src/test/ui/resolve/issue-21221-4.stderr @@ -10,3 +10,4 @@ help: possible candidate is found in another module, you can import it into scop error: cannot continue compilation due to previous error +If you want more information on this error, try using "rustc --explain E0405" diff --git a/src/test/ui/resolve/issue-23305.stderr b/src/test/ui/resolve/issue-23305.stderr index a0b4d424ec96..2da2044ca957 100644 --- a/src/test/ui/resolve/issue-23305.stderr +++ b/src/test/ui/resolve/issue-23305.stderr @@ -13,3 +13,4 @@ note: the cycle begins when processing `, } -pub fn extract_rendered(output: &str, proc_res: &ProcRes) -> String { - output.lines() - .filter_map(|line| if line.starts_with('{') { - match json::decode::(line) { - Ok(diagnostic) => diagnostic.rendered, - Err(error) => { - proc_res.fatal(Some(&format!("failed to decode compiler output as json: \ - `{}`\noutput: {}\nline: {}", - error, - line, - output))); - } - } - } else { - None - }) - .collect() -} - pub fn parse_output(file_name: &str, output: &str, proc_res: &ProcRes) -> Vec { output.lines() .flat_map(|line| parse_line(file_name, line, output, proc_res)) diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index c0f82d56d803..e5bee56de803 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -248,7 +248,7 @@ impl<'test> TestCx<'test> { } fn run_cfail_test(&self) { - let proc_res = self.compile_test(); + let proc_res = self.compile_test(&[]); self.check_if_test_should_compile(&proc_res); self.check_no_compiler_crash(&proc_res); @@ -267,7 +267,7 @@ impl<'test> TestCx<'test> { } fn run_rfail_test(&self) { - let proc_res = self.compile_test(); + let proc_res = self.compile_test(&[]); if !proc_res.status.success() { self.fatal_proc_rec("compilation failed!", &proc_res); @@ -309,7 +309,7 @@ impl<'test> TestCx<'test> { } fn run_rpass_test(&self) { - let proc_res = self.compile_test(); + let proc_res = self.compile_test(&[]); if !proc_res.status.success() { self.fatal_proc_rec("compilation failed!", &proc_res); @@ -336,7 +336,7 @@ impl<'test> TestCx<'test> { return self.run_rpass_test(); } - let mut proc_res = self.compile_test(); + let mut proc_res = self.compile_test(&[]); if !proc_res.status.success() { self.fatal_proc_rec("compilation failed!", &proc_res); @@ -578,7 +578,7 @@ impl<'test> TestCx<'test> { let mut cmds = commands.join("\n"); // compile test file (it should have 'compile-flags:-g' in the header) - let compiler_run_result = self.compile_test(); + let compiler_run_result = self.compile_test(&[]); if !compiler_run_result.status.success() { self.fatal_proc_rec("compilation failed!", &compiler_run_result); } @@ -835,7 +835,7 @@ impl<'test> TestCx<'test> { fn run_debuginfo_lldb_test_no_opt(&self) { // compile test file (it should have 'compile-flags:-g' in the header) - let compile_result = self.compile_test(); + let compile_result = self.compile_test(&[]); if !compile_result.status.success() { self.fatal_proc_rec("compilation failed!", &compile_result); } @@ -1272,12 +1272,15 @@ impl<'test> TestCx<'test> { } } - fn compile_test(&self) -> ProcRes { + fn compile_test(&self, extra_args: &[&'static str]) -> ProcRes { let mut rustc = self.make_compile_args( &self.testpaths.file, TargetLocation::ThisFile(self.make_exe_name()), ); + if !extra_args.is_empty() { + rustc.args(extra_args); + } rustc.arg("-L").arg(&self.aux_output_dir_name()); match self.config.mode { @@ -1629,8 +1632,11 @@ impl<'test> TestCx<'test> { .iter() .any(|s| s.starts_with("--error-format")) { - rustc.args(&["--error-format", "json"]); - }, + // In case no "--error-format" has been given in the test, we'll compile + // a first time to get the compiler's output then compile with + // "--error-format json" to check if all expected errors are actually there + // and that no new one appeared. + } MirOpt => { rustc.args(&[ "-Zdump-mir=all", @@ -2109,7 +2115,7 @@ impl<'test> TestCx<'test> { fn run_codegen_units_test(&self) { assert!(self.revision.is_none(), "revisions not relevant here"); - let proc_res = self.compile_test(); + let proc_res = self.compile_test(&[]); if !proc_res.status.success() { self.fatal_proc_rec("compilation failed!", &proc_res); @@ -2493,7 +2499,7 @@ impl<'test> TestCx<'test> { .iter() .any(|s| s.contains("--error-format")); - let proc_res = self.compile_test(); + let proc_res = self.compile_test(&[]); self.check_if_test_should_compile(&proc_res); let expected_stderr_path = self.expected_output_path(UI_STDERR); @@ -2505,13 +2511,8 @@ impl<'test> TestCx<'test> { let normalized_stdout = self.normalize_output(&proc_res.stdout, &self.props.normalize_stdout); - let stderr = if explicit { - proc_res.stderr.clone() - } else { - json::extract_rendered(&proc_res.stderr, &proc_res) - }; - - let normalized_stderr = self.normalize_output(&stderr, &self.props.normalize_stderr); + let normalized_stderr = self.normalize_output(&proc_res.stderr, + &self.props.normalize_stderr); let mut errors = 0; errors += self.compare_output("stdout", &normalized_stdout, &expected_stdout); @@ -2544,6 +2545,7 @@ impl<'test> TestCx<'test> { } } if !explicit { + let proc_res = self.compile_test(&["--error-format", "json"]); if !expected_errors.is_empty() || !proc_res.status.success() { // "// error-pattern" comments self.check_expected_errors(expected_errors, &proc_res); @@ -2555,7 +2557,7 @@ impl<'test> TestCx<'test> { } fn run_mir_opt_test(&self) { - let proc_res = self.compile_test(); + let proc_res = self.compile_test(&[]); if !proc_res.status.success() { self.fatal_proc_rec("compilation failed!", &proc_res);