diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index a49284eb55a..86e77d404ff 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 459be9db578..b9d166589b0 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 2beb0aac862..b89f67d9069 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 4bd3b684b7b..96ae2afe220 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 f258488ee2f..fa8b82b8a9b 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 cf5486fec5f..90104e64972 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 ab0e1003a9e..6ec274ac4f9 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 a2afe905cb5..e741aa742c1 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 6215c1dc089..b924fbaeb39 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 1a49cc7a283..b1819961127 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 b0196234bda..33b83b787ad 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 b9c012630e9..6ab0e0029c9 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 0367270d166..d3d3e0b6dd3 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 4a2490bac91..64897fadaa6 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 d3588be2669..227e157cf9f 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 d4024f41c26..8c8e30a7262 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 20c7dc416f3..b64a0c62a1a 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 888a64c1bb1..4b0c4bb776c 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 453f3879f4b..3e434a0ca3f 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 946d1804894..3b6fd336583 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 22bbb2aadf6..fbf3c6bd40a 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 cd8c28cd2cf..e6e1cfdc3ab 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 3b4f514de7d..f2d98a1bb74 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 c6113ae0c9f..57e500dba82 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 c3d5f21b0a5..6b9fef6cba6 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 29dbd5a8cf5..bbe0e883cc7 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 3881bb46258..39d55aced3a 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 49dedcd0742..d57c5cbde5f 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 88e8490843d..1df7be00a78 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 0ec744f4a07..a9d585e332e 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 cc0bd15c489..9dca165c022 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 f8963c175c8..6becf90214f 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 6e47c46cdec..cafc608d794 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 c16c80345d5..b4edd80bfe7 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 f99bbb20ccd..2199c3ca45c 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 f36ed050515..4f212e7d79e 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 fb6917141fc..27e34fde244 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 899ffb446b9..2c3509e9902 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 40e1878f732..68aeae30e71 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 13305fd9656..377171510c9 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 2b614561d82..755765a0383 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 716edd21982..2064129ab74 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 e8323247af9..435640769dd 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 6aa0846f53e..69f4742424b 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 346ebf07fc3..cdf4d30ee4c 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 db0a33e927f..0f0a5054b51 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 1febe6a618f..2262ae8338b 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 55d41848b17..b2a73a86bb1 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 8db6854dba9..ccaa6e845b8 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 ce3c8593a97..1b24d82be2d 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 50287fa3fde..ba93d78a970 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 1fc1d05636e..018d35b7c71 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 5c612522d9a..876e7b488a4 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 77ce1176b5c..791cdb46231 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 4eed4461eba..98579a28217 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 c195940ade6..05abf485378 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 a7d52301476..168aebf13dd 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 3474803b00d..0d9654c8697 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 bc333bde93c..f7bcaa64fdd 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 bd8ffba00d4..c7fc7d4271a 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 c5afa5ec1a4..87b8f04ad1f 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 cfe3d527136..73ef9219e7e 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 0ccdd207651..858e3e53349 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 dc801b20dfb..edb970ffdff 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 c887821c6d1..cd52f414f64 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 32202062663..0435aed7c8a 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 c0cfeef194d..8798081ad6d 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 9ffd08ca06f..879553740f3 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 93f57216ca0..1e327a614a5 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 57b746f19e8..ba8ad78ed40 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 e5e91df771f..e77771b43dd 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 aca6800deb5..45a2bef9dc2 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 c94ffd60d26..884afe72d04 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 24d9b26fe9d..95a034ac877 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 c27e1ad7620..33849086280 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 db32bcb81c6..0e398eed792 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 9b5b67fe9c7..c784dbecb9c 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 48ca45914c6..fd7f98ea563 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 e6e93d14b3c..f695aa75906 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 2b8a268fdcc..59af795be57 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 d89b3a921b9..8941abb6f16 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 156143cd54c..c5e7cad7cfd 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 4620248e2ef..9a5cb6267c3 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 e3a1eb9ee66..84460922b67 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 ba5284eb653..74b529aab03 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 983d87d5b88..97f96c7a6a5 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 60f9a3a37ba..d702d942107 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 a9d29d01071..fa8ddaaf43d 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 98c6ae1b9bc..a02a587d0fd 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 e64af57a186..0caa87d22a2 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 82baab620ff..c2fe2ff367e 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 f6587c703bd..b501a552a2e 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 4f4f8b5ad00..a66453c4e62 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 4f6a98fb8eb..17872f90bb8 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 d23bf3b411b..2246e01711e 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 6e6c2130e1c..8678bc48d4b 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 af48b773638..d2bba1ca29f 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 5441937e4dd..9dccf4af6f4 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 ba948643a37..5946f94f700 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 a0156554646..7bc6dd51244 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 4c2896e2207..3b91929ba3b 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 732cf9bacbc..2a0a4c8838d 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 4fe8849feef..29571a8f704 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 1ca4576d88f..8ab3bafa620 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 c44dc5a0468..9aa6421d47e 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 9010de081da..b1dac9b64b7 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 e9591a64784..f574ae0fa84 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 cd96d28ac98..725ede6d37b 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 a4921046c78..9b290ae99f7 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 a53d3d7277a..135d3ad945c 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 cfaff973170..2a7ffeab737 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 73319d567bd..03f71fbb183 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 f17672b234f..f866887433b 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 65de724616d..a5269c4e1a8 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 c58958c7f5e..086ed136ce1 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 6a262b31026..aab6427c144 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 569bfa11803..cc52f2a7830 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 75d904d394a..12282b2fdee 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 33bf2e1160c..3bc94dfbd63 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 d8c089806cd..47b11f707d2 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 7ca3e8728fd..b861064399e 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 88d63cdbb5d..cc4886f3b0f 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 0b71fc1d306..e11ed5d4c4f 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 2c7701e9965..2891c771a36 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 0cc157aa5bb..748b7165e51 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 5390e541fb7..e10abdbb4f9 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 2bc7e9e46e7..529c8c11f32 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 860c6bb5b90..f78fa4c48b2 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 325a19eee14..2923d6f760a 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 660110cd737..c8c649fd597 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 733810006d7..be844013ba1 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 2a0f9ee34f2..33fad022116 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 8aa4fba7085..bd7580ca751 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 2c788e952ed..cb4f3d21398 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 4fa188908fd..0fdedfb7cf5 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 79fb9222d5c..ce3ffc034c5 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 926dac3f9b1..00953ef2eee 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 4c1f9405fb9..cebd6e20453 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 8bbae56d843..47489fecd6c 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 4417ea9099f..a2d340fa211 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 3ea1c9adc9b..df5978100d7 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 84fb049df35..d62c37f5aae 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 3c90f19a0dc..14c70ee6987 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 53bda3bb575..a42ac11bc53 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 0d24a3712d5..58fbc2220d3 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 598057db3a6..e212e229001 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 8f99a6ecffb..2b00f3d346d 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 b592c87efa7..4a5df56c0cc 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 360e8c08a3c..3b5d512a1c4 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 3cce3d07994..764f302552d 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 277f523e497..f1bb3e70ac3 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 a85419e9a13..d3b0088905e 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 efbe066e52e..a97b2b90ffe 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 fb71da23677..ee70e949533 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 01dbee6e092..aa17639c13b 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 8eeb94a42f4..7874d14fe61 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 35f9109fe99..8cb6b976e17 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 30f5b960a36..afe340cdd8d 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 70b017b782f..b431d137520 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 3dd9393d6b3..1e9db4c8e7e 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 efd0d780658..65125791b2b 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 35d40cb1017..f1e8ca92db7 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 6d88ef88bff..556adc02fc9 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 e13ba62b073..6633b0b592b 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 82a90fff342..c3aa61f106a 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 d873fbe9819..06dd74e9a67 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 f63597d6970..db842bb4773 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 e5a31153781..736e3037a84 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 4181c7b1f7f..bab28d27ec6 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 924ac49695c..56440936035 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 e05e4e1cac7..cf1131d38af 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 3d899e636ee..3a22329790e 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 c8dd08211ec..34a56ff9e5e 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 0910009d2c0..f40f378d1be 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 942718d50f7..43febfbf236 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 b10494633ed..c415bfdb865 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 2f6d9c72eeb..cd35aeee1e6 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 cf89e46af04..52f72e23f3a 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 c596b560ea7..a8222549b64 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 2dbe5be2155..a9d37a7049c 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 bcbe81ac11a..88f229a3188 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 6a0f21ef144..f44a65befbe 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 38d14ed7bce..2e43add36b2 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 835162740da..2a5a31822ee 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 9fdb6b178c4..2eb2fb06260 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 f6a2adc0ad3..9dc54f670f6 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 2dfed66ecac..8d2489a10fa 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 ff4ee32d47b..9b294b055af 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 c7b33a490d1..1a1641c0f87 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 6528c97a560..8a51a087b68 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 1e4beeae176..a7b40c54184 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 905b0210abf..b137b840924 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 ccb13856df9..52830fc150f 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 1f248f4ed2c..5f96293e214 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 edd463d705c..4d7c53adfac 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 a37591521c8..123ad197d93 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 d036adb4e29..4b73b4aee51 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 ec210294cdb..de32010b96a 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 e085329bac5..0a9e63a7223 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 a10b0b87f37..2d2b5d64bda 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 6c466cbb52e..c291bfc5ac7 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 10728e21901..33aa79f1d34 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 728cec10325..3fec25ac3d6 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 e6d76a696d3..41d47397caf 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 5c5c01cb988..a2b73d5789c 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 d63aa378eee..a69da16477f 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 125af35cb57..2589be70777 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 c30d8c00b80..75e36157b98 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 29bab3f6dd9..269b03179e0 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 f71437cd6b0..28486c92bf5 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 1c66bb0e5f0..4280947c574 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 dda922b5b68..b2727806655 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 6ee2125af04..daeef5bdfce 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 5e5cfe16e50..9ae1700727a 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 a48a3ade5c9..b86cc8d6729 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 aee398efedd..7bc9bc2b43b 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 d1fd432f4f0..f778af9f411 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 250ecaeb368..d836b9ddfda 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 bb05effd732..088a6db16ac 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 c739536c0ab..1e9072e65db 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 96cf50500fd..b5a78e6d352 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 b5c80aa23f6..0bc6ffb6bf9 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 c7a786b7402..29fbaf2a677 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 6d808f038a3..4b47ceb3aa6 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 691c5922f8f..46cc308992d 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 06880acdb35..3963b4ec695 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 855903b7ec3..e3468ca409e 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 ffad571d061..7cb07e98470 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 df587395356..ecea63eb86f 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 77930d5e08d..418a8b67005 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 83210a996e0..32eef81cf59 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 34a387e6459..d8bcc3d1396 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 6f19fd17eb2..86cfb607c2e 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 ebf8ef5ccf1..b929ff049d0 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 e44d9457045..f1d3064c0de 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 7b599543e00..c7f59695e0c 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 1b61ca9b177..ceb949f884c 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 3587319ed0c..4ec7178ba6c 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 0c29bee849b..a1c4929fce7 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 d63d0edc2c6..36c6052abb1 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 467784f3367..affad8a5861 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 aee8b53e39d..e127a54dc10 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 9cdd0d5f300..2ecc7772598 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 512788e1948..b6d5f8983b3 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 208c00cc7c9..830d48e57f7 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 f909fa48c27..53d3e5c0138 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 c1989662312..e08878a9e8d 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 1d5ded5bd9a..e0dda17cea0 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 ab9a08a5348..c68e8810f56 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 c3057d9b558..7bb752be432 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 e578cffe564..ae96fa38f64 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 112e2c47780..23a1e13b4a5 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 0f1b183dba9..4003c8ed4dd 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 dfb327d48ea..d2db97835b8 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 407ebb8fc7b..59345a23703 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 6da0fdbeb34..8e0638697c6 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 b714350393b..a926535c938 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 ad25bb216a3..ca2845d6e55 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 620929653f6..3417ac19ab0 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 968c47fa7a2..8dc45703fe9 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 99a4a63cc9f..3120b6a8bfb 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 272c38859ab..9d9e86ac6fc 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 819fab0088f..3c3527c7ef7 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 7cd705e6d0b..2041ed2282a 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 ff75b07ced6..1b353efd3a9 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 be9039be2b6..bb49f9d6451 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 7c0306cc772..4e92db34b04 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 4eb91ce35d4..48d7cd5d545 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 fe7a5483e59..58b183cd98d 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 c116201794d..5a4219a5b7d 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 0bdf104ec6b..c5a2aa6a949 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 aedd2d59142..71b2bfb32ad 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 65b917ad4bd..9491f5ac7e3 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 0041b7689a6..757c3fcdd7a 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 cad313b90a6..1abc2222f0e 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 ac206834023..21dd0d4f80a 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 49967f4ad81..28528c90626 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 3cf16bdc3c3..9b4263507a8 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 7316ee6475f..87a961dbcd2 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 0274506926f..ff9ac3cefc0 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 fec5f416919..34e1c56fe2f 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 cb6c05326e2..d72b426cf82 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 1d8e2fa9340..71af28add7b 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 78d1c4dd476..28f77417ecc 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 0b44de25fb5..fe694b3eb19 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 17051da1319..b606bd9113b 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 5dfe6ad59b8..2fcb050e628 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 ab75fe82af3..89095cbdf81 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 561164cd277..56c088fd2be 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 351e9208e95..3fa9be7e0de 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 33fe78bc18c..e08b2edd63f 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 21fdaf84dc9..0535f13a4c4 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 242cc36f0b9..806fed59f79 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 fb3f9269f7c..3481a1e3a05 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 1dccd06b376..2cf889ce6fb 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 49d63538624..b72ab2de414 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 87024376596..9f364f55dd6 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 564a9472ac9..5c18afebf5a 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 c529a838bf7..c9d5542ee17 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 977f44a9c97..9135da97825 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 0afb05a8a5e..621b82df43c 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 e314afd221e..d035359b73a 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 e039d645fa6..82b0568b59a 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 c18d8090233..461edabf5c9 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 c2410e2f733..266afa893bf 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 00000000000..c17e3c878b8 --- /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 00000000000..35a35430fe1 --- /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 b3c2b23cd32..cd8511426ff 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 e1621d34d46..9f8571a311d 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 ce31474caed..7bef59e9b1e 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 b3f7cd218d3..62a6a2dfd99 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 63ede50e1ea..4a6f41c453e 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 76d96f929be..dd06b1b7f31 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 31de8d76285..42789389a59 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 3e2573eda21..6d02a1cc57f 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 e19f3288e81..d5b6892e75a 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 f110afb35a0..ec17a33da72 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 e04f44886dd..cb8c7d5d514 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 ca47d40dc8f..bbb5e923452 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 33e8806678d..e22c4bebfaf 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 481e6dc7055..277193c07ed 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 aba0f72d35c..804e3d59dea 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 1d44797cddc..97fd18aab17 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 f9cccde3761..a1d6d17bd4d 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 ca009331b69..7457fc27682 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 eefaa724650..e3490edf9fb 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 4b3bfbbe27a..73e9a9c896b 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 f808e78acce..05f1a09a05b 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 ace23b38d2d..0a1332719b5 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 a0a03bdcd46..27126894749 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 3e4a74636f9..ff563978402 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 3e07aa17440..de0d3c36114 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 edb3c5d62ae..ee4e33f4005 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 d0a07e3d3c9..cec3ed47607 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 0ef6921c64d..0d39479ba8f 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 a9a1e493a45..2c4ed467ab4 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 f3d39477387..1448bad3d18 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 bc4b687800d..18b855d6b4f 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 ecd1ff5a6c4..9c22f89a7ef 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 9b324672f22..2604d8bb53d 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 322a38a996f..0c080934446 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 fadc76bc0c0..ede92642f75 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 f4d726c8c41..3652834ce8e 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 08878e17204..fdc26a6c0e3 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 86066285a55..20168ba0e5a 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 c7144f09bd6..37fbd9fa270 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 e009e0bc3c4..df9da6b7a2c 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 ee2d384e998..1aef2aea33a 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 36d854892be..7a23eeee44c 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 2d26c6ae8eb..2796686fe41 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 cdeca7026b0..d6af01c1a9b 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 d6ba4b8ad66..ad744c0257c 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 3185281ce4b..e11791dcdf0 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 111cd06cb3c..5e01782f2d4 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 022e53b6be0..82228e40f0b 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 71caa37963f..c826ad637c4 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 db6c99bceed..43d68c85b2e 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 28d8a80e602..84a196e7178 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 f559227f717..7991ff18662 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 c047914fb3b..9d5d05d9aa3 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 a18d104cc2b..561037217d7 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 8d82f6ee9e3..9e0c1577a92 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 ca946579f5d..72a0729a2eb 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 06fdeadbbf6..c87852f6352 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 ee81a269214..76f50579f28 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 c906fa5a2f4..d9ebdcee0e9 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 3b03ef2dd33..d39d568741e 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 918c749504a..16a2099955c 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 28e3dab8fa7..31c1c46734c 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 78070d52f1f..b098a4377fe 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 8aada72fb0c..796c0a0d283 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 136658f23fd..28a57bcdfef 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 54764b1920c..008ccecc4fd 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 e58693d35c2..dd773465ceb 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 363b1753f4a..d0c8f601b27 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 f47a5076e79..652f32448e2 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 553a7d3d131..4693110d471 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 ee1844c0922..c8b6d8efc2d 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 02dbab07bde..0a4d68174ad 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 56e9c8b37e3..e3810f4adeb 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 1bedfb7f8be..bf7e061eb2c 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 a3a3f7bd174..08dcc5ccd26 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 5f72234e5df..6f700a8216b 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 11b8c31e6df..3cbd4d9053b 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 d4311594517..5f1d5abcf34 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 2fd04f51e7e..d38ac8e04fa 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 4135462305a..129af48d6c7 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 c7af8cf6aab..358e8b10188 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 7fc89852002..5183856f6b9 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 deb707752b0..e1b2e8abc44 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 320f40e31b8..307c79dde04 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 4ceb697d0df..137369fb79a 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 b1658c3be16..5924e80dcef 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 beb734a8ef8..3bc15decae3 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 c1725a62ada..cd66dd812e2 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 c588cabe239..20cdf786eca 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 b54b2d89994..b15d2c36a60 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 fb5bd9d1afe..c612d1d90b4 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 5487ae21f3b..e8845e87b5e 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 f2893cbb97d..8998d742e03 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 e430a04a3e8..5363b3874f8 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 982ebb01016..20720a786d3 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 d1292e95491..29c6b3cf017 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 f47588c3a7d..9c7323ea45c 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 922898b7d36..781f621dfdb 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 6d77161864f..eadda45a184 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 447706ab858..c923ae6e9a9 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 7a2e67c8982..a7c275fe793 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 61cbe42d0fb..6e7a6741f5b 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 9ec4f6480b1..855eacb63ca 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 4d2e2f671c5..992772c9116 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 b6ad1b65691..064c9f7e247 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 f7b05d5cf25..1846ebbb106 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 eae3baa7e4d..2a126dde0bc 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 fa6ef84a7f5..95da92acd85 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 ae14054b6e3..661be5b21eb 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 a27b00aaac0..808b21f50fc 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 3d0dd15b07f..47441afbea7 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 ca8a5924946..18baf0450c3 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 07c5e1ad640..6e5b0573f6c 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 978ce5982ba..75820283cc7 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 4714df9e96c..51d68132ac4 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 14b66cb5c81..a1f8dcbb8bf 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 d9b555e2634..0e122ea5d56 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 6d5ab1fd2c5..d263fe5ffbe 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 10190ef93f0..04350a145fd 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 f7d5473f443..1d33bc55611 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 444c4176994..8af406aef6d 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 60a9382bdb8..c0d8aa5c31c 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 a76f0219f7a..4e844ba5889 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 5de3204f931..a603836daa0 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 eace1dc413a..ebf7100c35b 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 f7d5473f443..1d33bc55611 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 59068279fde..c91b262c7ed 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 4ec5c9ebd27..7e2b6a43dd4 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 37241e61510..2fc359946fa 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 cb84eaedb33..1d58bca15fa 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 deaf00fff07..01ef5753424 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 0f7d2e540d8..ab81501f237 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 fd1667128ab..04e4397cc5c 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 4d2e228685a..84a5edf4f22 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 e65c8f1546e..cd2d16fd662 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 6b39b272d0e..2346714b212 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 fbb72884156..b752a4c064c 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 7adb2cc5598..a61adcf4a77 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 06e43bf35e1..87a85c6845f 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 06561853dee..f69948c9004 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 8a265c065b9..b7faca23ed3 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 c6ee3b8e9e7..3aa4130a148 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 d0575a0e47b..2f3c41f71c3 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 ea55e032e47..27a13a6382c 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 114fe8ffcab..d28ea1d4368 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 7269f729737..d2aa84f3c09 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 0351923eff6..6726f40dd06 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 11ce6b1656d..aa06e82a250 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 fb8e00bfa94..fb1cf205b62 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 73d470cc29e..53bc268e327 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 d6e31ba1e1f..f69840238a7 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 8ec81903803..c30b0d7f648 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 885c3941971..7010ab1e471 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 29769456849..d5cc1ea8085 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 52d3931011a..8ffbd29eabe 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 882113b8176..f136fd4072c 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 1417c71ca12..134386825d6 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 b4dd6c8446c..688d0b3be44 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 9903e26bbbd..ab41e44cdea 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 b457e025c29..d3ae05eb4e5 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 ec261ed63b1..d8e31a750ff 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 08de0eb99a3..a0a24cc9d04 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 6e5b91a11c9..707f0081cd6 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 32d78666004..02e7e34d32e 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 75294f7bf12..6b917b98062 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 8f4325fa12c..709a36dab29 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 e0e26bc4db0..9b3a8e7f6c3 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 42714f21685..66451f49f28 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 a9913f6b644..0a63092acf7 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 c33b088f0fa..0e4e75469a9 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 0c1231e01de..b81b5f56f14 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 58ff1694fb7..8e5a37b03c5 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 7aab31eb909..0345e0dd611 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 fd6be01da9f..b970afe0bae 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 14f9098c6c2..192eb5d3e8a 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 a8df6dbca0a..a9cc6845133 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 e2340dbba23..265eb32b3cc 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 49b82fa495a..1aa3e21beba 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 e1652b6c262..d9ed32f6bb9 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 f4beb44b82d..78b790be87f 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 58df416030c..1fa998bef37 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 be1de60bca5..5dbef279db4 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 68127b282ed..24ca8c0c437 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 9b8c3df7d59..ce243b6963f 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 20103d389ff..2ab61bf90db 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 e36c278df6e..9ce8b066b37 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 b72c23987ec..46add9bec2c 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 aec828a90d1..932fd5a82dd 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 fb8fb058daa..fb73fbcd007 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 e0b5bdb93d8..b500e706b36 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 aca2fa5ed04..1d41e207147 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 9c77752be20..ccbcda57db1 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 a762c0876b5..306c713da44 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 593507a5d45..244da658f80 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 31050802261..cb8a9608075 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 1cd899925ca..d2f3219b233 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 489abf715de..7c3f0aad4f6 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 b4d4f6f1bbf..42f768139b1 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 035901abac6..023c12ecce8 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 2a5ddd1b611..e0dc9560462 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 ec953103a1c..1be006865b0 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 e177e8ede62..fab7d8698ca 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 123d61a261d..9bf44df608a 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 9498000ca56..70e17bdd063 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 1c594cb6cb8..1e3685403f5 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 23d05edc919..f884c80ccae 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 8853d43408c..5b87b95b81a 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 048ae5834e3..7626324b2f2 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 38a22257ff8..c84657b4c59 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 eae6c2de9c5..638e783e067 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 0658c07fb1d..1248d2075a5 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 c4a1c4f80c8..5438ce4b797 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 76f543cff79..0a7e239d32f 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 e5181960753..e5ea6a5dd6f 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 496a7aff7b7..36875037959 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 2db67c7ec00..9b2ab554794 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 c89f7241f5b..893ff498513 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 969cf3577fb..9df8386e671 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 55af26dd91e..de1e30dc08b 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 467cfc53388..e774f538a99 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 914cc6fc426..bb7f58cf3cd 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 3b6599ccbd6..c617a1ce507 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 b95438314c3..8adb3570dfe 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 b850852623f..77565c3c057 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 5b61aa98c3f..07a9b61fb7a 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 3b124ff4063..1d4fb6a3399 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 e6424e535ee..842276453a4 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 2e3b20e43ff..0feb1fbfc37 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 b24544743d8..8958cf0139a 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 6d4ed9c0111..3b5eed4e7b8 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 61717ee60ff..d7e7c953c4b 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 cf24a8312af..e6e88f300e5 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 8d9afb5be79..6999a745034 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 6237aae67be..5b753e6f385 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 0b81526d655..32e40787758 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 061c3d49323..9564e225f64 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 7d8e10a7606..4f080774073 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 2d5e2966df9..d5e21463b60 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 b0c314912cc..edd4549f09a 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 14f2d5195d6..d6d37753c4d 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 f907e3adaf1..24eaf17e6a7 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 4909340fa4c..dfb94fefda1 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 78c9ce9a1b1..c71f6956122 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 dcef7fb9ac0..a0e66611567 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 0bc4e4dcf5f..75ec71e729f 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 86c2ad4c0e7..368b223722d 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 2057e14d55f..ede41118891 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 982de00b4fa..427fade0ce0 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 105de33fac4..d308ae10f14 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 3550314d44b..21e1d3a04a2 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 b9cad7e113d..b11a0b63bcb 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 ee4a38312e2..2d3ce35c65f 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 d59bcaa316e..fc5e915d9b0 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 677d2f10fd6..a35eb4e34ca 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 cb9740b8779..7dadb495cf1 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 f9524696ed7..7def583e92a 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 d4cffbff4ef..675855dcf34 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 226cb473e77..e63fd140f11 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 cc7c0179070..676a296661e 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 53f2f54325d..722c246f032 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 2e1e5afad32..a52f2d3f6a1 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 828cf636951..7bc3e878099 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 946c1a8f372..9b961a73e73 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 78775ce94ad..aa7c5866ff1 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 f68a76c3d0d..a0e7e7720cf 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 b7120017a2c..3113046ef5e 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 ed4d4b1e68f..95a86ccae31 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 fa9105df070..3e2cab84b62 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 3334f4ecc7c..cbfd2d412ef 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 1e659e2e9f0..cf97c835013 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 0db9eb9ded3..bbf8e3b8a47 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 be7e8583824..a3c3be65406 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 f012dfed0b8..f2d8737b5c0 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 f60d2e93e36..5ea7e9806d1 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 291aa6ec4c1..03be5762228 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 8261e9034a6..5cb2c0d7427 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 f63ded9a8b1..ef1ba758eec 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 7bc714163c7..168ba2c0887 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 8ed8dcc8031..9f90ce2e377 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 a733416ef6c..e6d78e1c043 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 a5a67553c61..e67da8a3f88 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 7126cc76eb7..449fd408dd7 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 cfac3981be2..efe73dc3b76 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 af5b1e91211..44b80b2c93b 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 ed2da68f081..8925dc5d064 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 028200a5558..d55b2b592c2 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 a1ecbce770a..5d0d3c380d9 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 25ae8b12768..36165269f86 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 29c41c49cc4..cfc0aa3da75 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 35a9698451f..96c5f151346 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 39120f0bdf9..a8e90d6e645 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 8cf2c65b1e2..3846915fb7a 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 7cdea5b0bd2..af68b0a026b 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 4a97537223c..ac7763744c6 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 5f0bbf6d12b..244338dbb46 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 e2245b8a8b1..35d31abc5c5 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 8ae5a6b8a82..606234e00b6 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 5acc678df90..ee6d22103e1 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 1bb5a4cab49..1a1cb8b0dd9 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 322a1fea52e..a0ccc2a11cf 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 ffb110d5c3a..10e7c9815cc 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 edc7196d846..c26bc052ee1 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 7b14d49af51..b80d4faefa9 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 88405fd841b..cbf924d91b3 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 0ae8052758d..8a45bd58107 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 b26a8cdacb0..731d7bcd655 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 0a22d8e1fe1..446bd0e258d 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 a0b4d424ec9..2da2044ca95 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 c0f82d56d80..e5bee56de80 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);