hide `--explain` hint if error has no extended info

This commit is contained in:
Andy Russell 2019-04-17 13:26:38 -04:00
parent e577e49b9f
commit b6f148c8bd
No known key found for this signature in database
GPG Key ID: BE2221033EDBC374
833 changed files with 563 additions and 936 deletions

View File

@ -16,6 +16,7 @@ pub use emitter::ColorConfig;
use Level::*; use Level::*;
use emitter::{Emitter, EmitterWriter}; use emitter::{Emitter, EmitterWriter};
use registry::Registry;
use rustc_data_structures::sync::{self, Lrc, Lock, AtomicUsize, AtomicBool, SeqCst}; use rustc_data_structures::sync::{self, Lrc, Lock, AtomicUsize, AtomicBool, SeqCst};
use rustc_data_structures::fx::FxHashSet; use rustc_data_structures::fx::FxHashSet;
@ -651,7 +652,7 @@ impl Handler {
self.err_count() > 0 self.err_count() > 0
} }
pub fn print_error_count(&self) { pub fn print_error_count(&self, registry: &Registry) {
let s = match self.err_count() { let s = match self.err_count() {
0 => return, 0 => return,
1 => "aborting due to previous error".to_string(), 1 => "aborting due to previous error".to_string(),
@ -666,19 +667,22 @@ impl Handler {
let can_show_explain = self.emitter.borrow().should_show_explain(); let can_show_explain = self.emitter.borrow().should_show_explain();
let are_there_diagnostics = !self.emitted_diagnostic_codes.borrow().is_empty(); let are_there_diagnostics = !self.emitted_diagnostic_codes.borrow().is_empty();
if can_show_explain && are_there_diagnostics { if can_show_explain && are_there_diagnostics {
let mut error_codes = let mut error_codes = self
self.emitted_diagnostic_codes.borrow() .emitted_diagnostic_codes
.iter() .borrow()
.filter_map(|x| match *x { .iter()
DiagnosticId::Error(ref s) => Some(s.clone()), .filter_map(|x| match &x {
_ => None, DiagnosticId::Error(s) if registry.find_description(s).is_some() => {
}) Some(s.clone())
.collect::<Vec<_>>(); }
_ => None,
})
.collect::<Vec<_>>();
if !error_codes.is_empty() { if !error_codes.is_empty() {
error_codes.sort(); error_codes.sort();
if error_codes.len() > 1 { if error_codes.len() > 1 {
let limit = if error_codes.len() > 9 { 9 } else { error_codes.len() }; let limit = if error_codes.len() > 9 { 9 } else { error_codes.len() };
self.failure(&format!("Some errors occurred: {}{}", self.failure(&format!("Some errors have detailed explanations: {}{}",
error_codes[..limit].join(", "), error_codes[..limit].join(", "),
if error_codes.len() > 9 { "..." } else { "." })); if error_codes.len() > 9 { "..." } else { "." }));
self.failure(&format!("For more information about an error, try \ self.failure(&format!("For more information about an error, try \

View File

@ -111,7 +111,9 @@ where
crate_name: config.crate_name, crate_name: config.crate_name,
}; };
let _sess_abort_error = OnDrop(|| compiler.sess.diagnostic().print_error_count()); let _sess_abort_error = OnDrop(|| {
compiler.sess.diagnostic().print_error_count(&util::diagnostics_registry());
});
if compiler.sess.profile_queries() { if compiler.sess.profile_queries() {
profile::begin(&compiler.sess); profile::begin(&compiler.sess);

View File

@ -49,5 +49,5 @@ LL | #[derive(HashStable)]
error: aborting due to 6 previous errors error: aborting due to 6 previous errors
Some errors occurred: E0601, E0658. Some errors have detailed explanations: E0601, E0658.
For more information about an error, try `rustc --explain E0601`. For more information about an error, try `rustc --explain E0601`.

View File

@ -6,4 +6,3 @@ LL | #![plugin(rlib_crate_test)]
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0457`.

View File

@ -6,4 +6,3 @@ LL | NUM = 20;
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0594`.

View File

@ -6,4 +6,3 @@ LL | NUM = 20;
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0594`.

View File

@ -6,4 +6,3 @@ LL | NUM = 20;
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0594`.

View File

@ -12,4 +12,3 @@ LL | asm!("nop" "nop" : "=r"(a));
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0660`.

View File

@ -6,4 +6,3 @@ LL | asm!("nop" : "r"(a));
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0661`.

View File

@ -6,4 +6,3 @@ LL | : "=test"("a")
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0662`.

View File

@ -6,4 +6,3 @@ LL | : "+test"("a")
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0663`.

View File

@ -6,4 +6,3 @@ LL | : "{eax}"
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0664`.

View File

@ -6,4 +6,3 @@ LL | #[derive(Default)]
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0665`.

View File

@ -308,4 +308,3 @@ LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<Fn(&())>, &'t0 (), fn(&(), &()
error: aborting due to 22 previous errors error: aborting due to 22 previous errors
For more information about this error, try `rustc --explain E0631`.

View File

@ -6,4 +6,3 @@ LL | asm!("xor %eax, %eax" : : : "{eax}");
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0664`.

View File

@ -12,5 +12,3 @@ LL | asm!("mov $1, $0" : "=r"(y) : "+r"(5));
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
Some errors occurred: E0662, E0663.
For more information about an error, try `rustc --explain E0662`.

View File

@ -6,4 +6,3 @@ LL | asm!("mov $1, $0" : "r"(x) : "r"(5));
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0661`.

View File

@ -39,5 +39,5 @@ LL | let 0 ..= <<A>::B>::C;
error: aborting due to 6 previous errors error: aborting due to 6 previous errors
Some errors occurred: E0029, E0412. Some errors have detailed explanations: E0029, E0412.
For more information about an error, try `rustc --explain E0029`. For more information about an error, try `rustc --explain E0029`.

View File

@ -45,5 +45,5 @@ LL | fn paint<C:BoxCar>(c: C, d: C::Color) {
error: aborting due to 4 previous errors error: aborting due to 4 previous errors
Some errors occurred: E0191, E0221. Some errors have detailed explanations: E0191, E0221.
For more information about an error, try `rustc --explain E0191`. For more information about an error, try `rustc --explain E0191`.

View File

@ -33,5 +33,5 @@ LL | baz(&a);
error: aborting due to 3 previous errors error: aborting due to 3 previous errors
Some errors occurred: E0271, E0308. Some errors have detailed explanations: E0271, E0308.
For more information about an error, try `rustc --explain E0271`. For more information about an error, try `rustc --explain E0271`.

View File

@ -122,5 +122,5 @@ LL | | }
error: aborting due to 7 previous errors error: aborting due to 7 previous errors
Some errors occurred: E0271, E0277. Some errors have detailed explanations: E0271, E0277.
For more information about an error, try `rustc --explain E0271`. For more information about an error, try `rustc --explain E0271`.

View File

@ -12,4 +12,3 @@ LL | trait Foo: Iterator<Item = i32> {}
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0284`.

View File

@ -18,5 +18,5 @@ LL | pub fn f2<T: Foo + Bar>(a: T, x: T::A) {}
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
Some errors occurred: E0220, E0221. Some errors have detailed explanations: E0220, E0221.
For more information about an error, try `rustc --explain E0220`. For more information about an error, try `rustc --explain E0220`.

View File

@ -48,5 +48,5 @@ LL | let _: i32 = f2(2i32);
error: aborting due to 6 previous errors error: aborting due to 6 previous errors
Some errors occurred: E0277, E0308. Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`. For more information about an error, try `rustc --explain E0277`.

View File

@ -11,4 +11,3 @@ LL | let z: I::A = if cond { x } else { y };
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0623`.

View File

@ -6,4 +6,3 @@ LL | x: I::A)
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0212`.

View File

@ -6,4 +6,3 @@ LL | field: I::A
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0212`.

View File

@ -6,4 +6,3 @@ LL | fn some_method(&self, arg: I::A);
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0212`.

View File

@ -18,4 +18,3 @@ LL | let _c: <T as Trait<'a>>::Type = b;
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0623`.

View File

@ -6,4 +6,3 @@ LL | let x: isize = Foo::bar();
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0284`.

View File

@ -22,4 +22,3 @@ LL | (a, b)
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0623`.

View File

@ -23,4 +23,3 @@ LL | bar(foo, x)
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0495`.

View File

@ -21,4 +21,3 @@ LL | let b = bar(foo, x);
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0623`.

View File

@ -11,4 +11,3 @@ LL | let b = bar(f, y);
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0623`.

View File

@ -19,4 +19,3 @@ LL | fn baz<'a,'b>(x: Type<'a>) -> Type<'static> {
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0495`.

View File

@ -18,5 +18,5 @@ LL | y
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
Some errors occurred: E0505, E0596. Some errors have detailed explanations: E0505, E0596.
For more information about an error, try `rustc --explain E0505`. For more information about an error, try `rustc --explain E0505`.

View File

@ -20,5 +20,5 @@ LL | x;
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
Some errors occurred: E0382, E0596. Some errors have detailed explanations: E0382, E0596.
For more information about an error, try `rustc --explain E0382`. For more information about an error, try `rustc --explain E0382`.

View File

@ -18,5 +18,4 @@ LL | auto trait MyTrait { fn foo() {} }
error: aborting due to 3 previous errors error: aborting due to 3 previous errors
Some errors occurred: E0380, E0567, E0568. For more information about this error, try `rustc --explain E0380`.
For more information about an error, try `rustc --explain E0380`.

View File

@ -36,4 +36,3 @@ LL | match await { await => () }
error: aborting due to 6 previous errors error: aborting due to 6 previous errors
For more information about this error, try `rustc --explain E0721`.

View File

@ -6,4 +6,3 @@ LL | await!()
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0721`.

View File

@ -20,5 +20,5 @@ LL | fn bar() { log(debug, x); }
error: aborting due to 3 previous errors error: aborting due to 3 previous errors
Some errors occurred: E0425, E0434. Some errors have detailed explanations: E0425, E0434.
For more information about an error, try `rustc --explain E0425`. For more information about an error, try `rustc --explain E0425`.

View File

@ -20,5 +20,5 @@ LL | fn bar() { log(debug, x); }
error: aborting due to 3 previous errors error: aborting due to 3 previous errors
Some errors occurred: E0425, E0434. Some errors have detailed explanations: E0425, E0434.
For more information about an error, try `rustc --explain E0425`. For more information about an error, try `rustc --explain E0425`.

View File

@ -20,5 +20,5 @@ LL | fn bar() { log(debug, x); }
error: aborting due to 3 previous errors error: aborting due to 3 previous errors
Some errors occurred: E0425, E0434. Some errors have detailed explanations: E0425, E0434.
For more information about an error, try `rustc --explain E0425`. For more information about an error, try `rustc --explain E0425`.

View File

@ -30,5 +30,5 @@ LL | None = Some(3);
error: aborting due to 5 previous errors error: aborting due to 5 previous errors
Some errors occurred: E0067, E0070. Some errors have detailed explanations: E0067, E0070.
For more information about an error, try `rustc --explain E0067`. For more information about an error, try `rustc --explain E0067`.

View File

@ -27,5 +27,5 @@ LL | fn main(arguments: Vec<String>) {
error: aborting due to 4 previous errors error: aborting due to 4 previous errors
Some errors occurred: E0425, E0580. Some errors have detailed explanations: E0425, E0580.
For more information about an error, try `rustc --explain E0425`. For more information about an error, try `rustc --explain E0425`.

View File

@ -27,5 +27,5 @@ LL | fn main(arguments: Vec<String>) {
error: aborting due to 4 previous errors error: aborting due to 4 previous errors
Some errors occurred: E0423, E0425, E0580. Some errors have detailed explanations: E0423, E0425, E0580.
For more information about an error, try `rustc --explain E0423`. For more information about an error, try `rustc --explain E0423`.

View File

@ -20,5 +20,5 @@ LL | #[link(name = "foo", kind = "bar")]
error: aborting due to 3 previous errors error: aborting due to 3 previous errors
Some errors occurred: E0454, E0458, E0459. Some errors have detailed explanations: E0454, E0458, E0459.
For more information about an error, try `rustc --explain E0454`. For more information about an error, try `rustc --explain E0454`.

View File

@ -18,4 +18,3 @@ LL | simd_add(a, b)
error: aborting due to 3 previous errors error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0511`.

View File

@ -26,5 +26,5 @@ LL | let x: Vec<Trait + Sized> = Vec::new();
error: aborting due to 3 previous errors error: aborting due to 3 previous errors
Some errors occurred: E0225, E0277. Some errors have detailed explanations: E0225, E0277.
For more information about an error, try `rustc --explain E0225`. For more information about an error, try `rustc --explain E0225`.

View File

@ -91,5 +91,5 @@ LL | | &mut f;
error: aborting due to 8 previous errors error: aborting due to 8 previous errors
Some errors occurred: E0382, E0502, E0505, E0507. Some errors have detailed explanations: E0382, E0502, E0505, E0507.
For more information about an error, try `rustc --explain E0382`. For more information about an error, try `rustc --explain E0382`.

View File

@ -76,5 +76,5 @@ LL | &mut f;
error: aborting due to 8 previous errors error: aborting due to 8 previous errors
Some errors occurred: E0382, E0502, E0505, E0507. Some errors have detailed explanations: E0382, E0502, E0505, E0507.
For more information about an error, try `rustc --explain E0382`. For more information about an error, try `rustc --explain E0382`.

View File

@ -25,5 +25,5 @@ LL | let x = foo(5)(2);
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
Some errors occurred: E0308, E0618. Some errors have detailed explanations: E0308, E0618.
For more information about an error, try `rustc --explain E0308`. For more information about an error, try `rustc --explain E0308`.

View File

@ -22,5 +22,5 @@ LL | b + 3
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
Some errors occurred: E0277, E0308. Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`. For more information about an error, try `rustc --explain E0277`.

View File

@ -72,5 +72,4 @@ LL | let _h = to_fn_mut(move || { set(&mut z); to_fn(move || z = 42); })
error: aborting due to 6 previous errors error: aborting due to 6 previous errors
Some errors occurred: E0594, E0596. For more information about this error, try `rustc --explain E0596`.
For more information about an error, try `rustc --explain E0594`.

View File

@ -74,5 +74,5 @@ LL | let _h = to_fn_mut(move || { set(&mut z); to_fn(move || z = 42); })
error: aborting due to 6 previous errors error: aborting due to 6 previous errors
Some errors occurred: E0387, E0594, E0596. Some errors have detailed explanations: E0387, E0596.
For more information about an error, try `rustc --explain E0387`. For more information about an error, try `rustc --explain E0387`.

View File

@ -61,5 +61,5 @@ LL | a.use_mut();
error: aborting due to 6 previous errors error: aborting due to 6 previous errors
Some errors occurred: E0499, E0502, E0505. Some errors have detailed explanations: E0499, E0502, E0505.
For more information about an error, try `rustc --explain E0499`. For more information about an error, try `rustc --explain E0499`.

View File

@ -60,5 +60,5 @@ LL | }
error: aborting due to 6 previous errors error: aborting due to 6 previous errors
Some errors occurred: E0499, E0502, E0505. Some errors have detailed explanations: E0499, E0502, E0505.
For more information about an error, try `rustc --explain E0499`. For more information about an error, try `rustc --explain E0499`.

View File

@ -42,5 +42,5 @@ LL | let _y = &mut *foo_ref.f;
error: aborting due to 6 previous errors error: aborting due to 6 previous errors
Some errors occurred: E0389, E0596. Some errors have detailed explanations: E0389, E0596.
For more information about an error, try `rustc --explain E0389`. For more information about an error, try `rustc --explain E0389`.

View File

@ -39,5 +39,5 @@ LL | *a += 1;
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
Some errors occurred: E0499, E0503. Some errors have detailed explanations: E0499, E0503.
For more information about an error, try `rustc --explain E0499`. For more information about an error, try `rustc --explain E0499`.

View File

@ -77,5 +77,5 @@ LL | asm!("nop" : : "r"(x), "r"(x) );
error: aborting due to 7 previous errors error: aborting due to 7 previous errors
Some errors occurred: E0381, E0382, E0384, E0503, E0506. Some errors have detailed explanations: E0381, E0382, E0384, E0503, E0506.
For more information about an error, try `rustc --explain E0381`. For more information about an error, try `rustc --explain E0381`.

View File

@ -72,5 +72,5 @@ LL | asm!("nop" : : "r"(x), "r"(x) );
error: aborting due to 8 previous errors error: aborting due to 8 previous errors
Some errors occurred: E0381, E0382, E0384, E0503, E0506. Some errors have detailed explanations: E0381, E0382, E0384, E0503, E0506.
For more information about an error, try `rustc --explain E0381`. For more information about an error, try `rustc --explain E0381`.

View File

@ -77,5 +77,5 @@ LL | asm!("nop" : : "r"(x), "r"(x) );
error: aborting due to 7 previous errors error: aborting due to 7 previous errors
Some errors occurred: E0381, E0382, E0384, E0503, E0506. Some errors have detailed explanations: E0381, E0382, E0384, E0503, E0506.
For more information about an error, try `rustc --explain E0381`. For more information about an error, try `rustc --explain E0381`.

View File

@ -16,4 +16,3 @@ LL | *s.pointer += 1;
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0594`.

View File

@ -20,5 +20,5 @@ LL | *z.pointer += 1;
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
Some errors occurred: E0503, E0506. Some errors have detailed explanations: E0503, E0506.
For more information about an error, try `rustc --explain E0503`. For more information about an error, try `rustc --explain E0503`.

View File

@ -6,4 +6,3 @@ LL | foo = 6;
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0594`.

View File

@ -6,4 +6,3 @@ LL | foo = 6;
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0594`.

View File

@ -6,4 +6,3 @@ LL | foo = 6;
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0594`.

View File

@ -112,5 +112,5 @@ LL | let bar1 = &mut foo.bar1;
error: aborting due to 11 previous errors error: aborting due to 11 previous errors
Some errors occurred: E0499, E0502, E0596. Some errors have detailed explanations: E0499, E0502, E0596.
For more information about an error, try `rustc --explain E0499`. For more information about an error, try `rustc --explain E0499`.

View File

@ -164,5 +164,5 @@ LL | }
error: aborting due to 15 previous errors error: aborting due to 15 previous errors
Some errors occurred: E0499, E0502, E0596. Some errors have detailed explanations: E0499, E0502, E0596.
For more information about an error, try `rustc --explain E0499`. For more information about an error, try `rustc --explain E0499`.

View File

@ -112,5 +112,5 @@ LL | let bar1 = &mut foo.bar1;
error: aborting due to 11 previous errors error: aborting due to 11 previous errors
Some errors occurred: E0499, E0502, E0596. Some errors have detailed explanations: E0499, E0502, E0596.
For more information about an error, try `rustc --explain E0499`. For more information about an error, try `rustc --explain E0499`.

View File

@ -120,5 +120,5 @@ LL | let bar1 = &mut foo.bar1;
error: aborting due to 11 previous errors error: aborting due to 11 previous errors
Some errors occurred: E0499, E0502, E0596. Some errors have detailed explanations: E0499, E0502, E0596.
For more information about an error, try `rustc --explain E0499`. For more information about an error, try `rustc --explain E0499`.

View File

@ -27,5 +27,5 @@ LL | let x: &mut isize = &mut **t0;
error: aborting due to 3 previous errors error: aborting due to 3 previous errors
Some errors occurred: E0502, E0594, E0596. Some errors have detailed explanations: E0502, E0596.
For more information about an error, try `rustc --explain E0502`. For more information about an error, try `rustc --explain E0502`.

View File

@ -25,5 +25,5 @@ LL | let x: &mut isize = &mut **t0;
error: aborting due to 3 previous errors error: aborting due to 3 previous errors
Some errors occurred: E0389, E0502. Some errors have detailed explanations: E0389, E0502.
For more information about an error, try `rustc --explain E0389`. For more information about an error, try `rustc --explain E0389`.

View File

@ -84,5 +84,4 @@ LL | *x.y_mut() = 3;
error: aborting due to 14 previous errors error: aborting due to 14 previous errors
Some errors occurred: E0594, E0596. For more information about this error, try `rustc --explain E0596`.
For more information about an error, try `rustc --explain E0594`.

View File

@ -84,5 +84,4 @@ LL | *x.y_mut() = 3;
error: aborting due to 14 previous errors error: aborting due to 14 previous errors
Some errors occurred: E0594, E0596. For more information about this error, try `rustc --explain E0596`.
For more information about an error, try `rustc --explain E0594`.

View File

@ -42,5 +42,4 @@ LL | **x = 3;
error: aborting due to 7 previous errors error: aborting due to 7 previous errors
Some errors occurred: E0594, E0596. For more information about this error, try `rustc --explain E0596`.
For more information about an error, try `rustc --explain E0594`.

View File

@ -42,5 +42,4 @@ LL | **x = 3;
error: aborting due to 7 previous errors error: aborting due to 7 previous errors
Some errors occurred: E0594, E0596. For more information about this error, try `rustc --explain E0596`.
For more information about an error, try `rustc --explain E0594`.

View File

@ -161,5 +161,5 @@ LL | }
error: aborting due to 16 previous errors error: aborting due to 16 previous errors
Some errors occurred: E0382, E0502, E0503, E0505. Some errors have detailed explanations: E0382, E0502, E0503, E0505.
For more information about an error, try `rustc --explain E0382`. For more information about an error, try `rustc --explain E0382`.

View File

@ -112,5 +112,5 @@ LL | drop(c1);
error: aborting due to 8 previous errors error: aborting due to 8 previous errors
Some errors occurred: E0502, E0506. Some errors have detailed explanations: E0502, E0506.
For more information about an error, try `rustc --explain E0502`. For more information about an error, try `rustc --explain E0502`.

View File

@ -92,5 +92,5 @@ LL | }
error: aborting due to 8 previous errors error: aborting due to 8 previous errors
Some errors occurred: E0502, E0506. Some errors have detailed explanations: E0502, E0506.
For more information about an error, try `rustc --explain E0502`. For more information about an error, try `rustc --explain E0502`.

View File

@ -112,5 +112,5 @@ LL | drop(c1);
error: aborting due to 8 previous errors error: aborting due to 8 previous errors
Some errors occurred: E0502, E0506. Some errors have detailed explanations: E0502, E0506.
For more information about an error, try `rustc --explain E0502`. For more information about an error, try `rustc --explain E0502`.

View File

@ -28,5 +28,4 @@ LL | c2(); c1();
error: aborting due to 3 previous errors error: aborting due to 3 previous errors
Some errors occurred: E0524, E0596. For more information about this error, try `rustc --explain E0596`.
For more information about an error, try `rustc --explain E0524`.

View File

@ -28,5 +28,4 @@ LL | let mut c2 = || set(&mut *x);
error: aborting due to 3 previous errors error: aborting due to 3 previous errors
Some errors occurred: E0524, E0596. For more information about this error, try `rustc --explain E0596`.
For more information about an error, try `rustc --explain E0524`.

View File

@ -15,4 +15,3 @@ LL | c2(); c1();
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0524`.

View File

@ -15,4 +15,3 @@ LL | }
error: aborting due to previous error error: aborting due to previous error
For more information about this error, try `rustc --explain E0524`.

View File

@ -50,5 +50,4 @@ LL | let c1 = |y: &'static mut isize| x = y;
error: aborting due to 4 previous errors error: aborting due to 4 previous errors
Some errors occurred: E0500, E0524, E0594. For more information about this error, try `rustc --explain E0500`.
For more information about an error, try `rustc --explain E0500`.

View File

@ -65,5 +65,5 @@ LL | x
error: aborting due to 5 previous errors error: aborting due to 5 previous errors
Some errors occurred: E0500, E0524, E0595. Some errors have detailed explanations: E0500, E0595.
For more information about an error, try `rustc --explain E0500`. For more information about an error, try `rustc --explain E0500`.

View File

@ -379,5 +379,5 @@ LL | drop(x);
error: aborting due to 30 previous errors error: aborting due to 30 previous errors
Some errors occurred: E0382, E0499, E0502, E0503. Some errors have detailed explanations: E0382, E0499, E0502, E0503.
For more information about an error, try `rustc --explain E0382`. For more information about an error, try `rustc --explain E0382`.

View File

@ -242,5 +242,5 @@ LL | drop(x);
error: aborting due to 26 previous errors error: aborting due to 26 previous errors
Some errors occurred: E0382, E0499, E0502, E0503. Some errors have detailed explanations: E0382, E0499, E0502, E0503.
For more information about an error, try `rustc --explain E0382`. For more information about an error, try `rustc --explain E0382`.

View File

@ -373,5 +373,5 @@ LL | drop(x);
error: aborting due to 32 previous errors error: aborting due to 32 previous errors
Some errors occurred: E0382, E0499, E0502, E0503. Some errors have detailed explanations: E0382, E0499, E0502, E0503.
For more information about an error, try `rustc --explain E0382`. For more information about an error, try `rustc --explain E0382`.

View File

@ -128,5 +128,5 @@ LL | x.b = box 1;
error: aborting due to 14 previous errors error: aborting due to 14 previous errors
Some errors occurred: E0381, E0382, E0499, E0505. Some errors have detailed explanations: E0381, E0382, E0499, E0505.
For more information about an error, try `rustc --explain E0381`. For more information about an error, try `rustc --explain E0381`.

View File

@ -125,5 +125,5 @@ LL | drop(x.b);
error: aborting due to 14 previous errors error: aborting due to 14 previous errors
Some errors occurred: E0381, E0382, E0499, E0505. Some errors have detailed explanations: E0381, E0382, E0499, E0505.
For more information about an error, try `rustc --explain E0381`. For more information about an error, try `rustc --explain E0381`.

View File

@ -26,5 +26,5 @@ LL | f.n.insert(*a);
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
Some errors occurred: E0500, E0501. Some errors have detailed explanations: E0500, E0501.
For more information about an error, try `rustc --explain E0500`. For more information about an error, try `rustc --explain E0500`.

View File

@ -104,5 +104,4 @@ LL | drop(p);
error: aborting due to 9 previous errors error: aborting due to 9 previous errors
Some errors occurred: E0506, E0594. For more information about this error, try `rustc --explain E0506`.
For more information about an error, try `rustc --explain E0506`.

View File

@ -78,5 +78,5 @@ LL | **y.a = 2;
error: aborting due to 9 previous errors error: aborting due to 9 previous errors
Some errors occurred: E0389, E0506. Some errors have detailed explanations: E0389, E0506.
For more information about an error, try `rustc --explain E0389`. For more information about an error, try `rustc --explain E0389`.

View File

@ -104,5 +104,4 @@ LL | drop(p);
error: aborting due to 9 previous errors error: aborting due to 9 previous errors
Some errors occurred: E0506, E0594. For more information about this error, try `rustc --explain E0506`.
For more information about an error, try `rustc --explain E0506`.

View File

@ -89,5 +89,5 @@ LL | }
error: aborting due to 8 previous errors error: aborting due to 8 previous errors
Some errors occurred: E0499, E0502. Some errors have detailed explanations: E0499, E0502.
For more information about an error, try `rustc --explain E0499`. For more information about an error, try `rustc --explain E0499`.

View File

@ -24,5 +24,5 @@ LL | *q + 3; // OK to use the new alias `q`
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
Some errors occurred: E0502, E0503. Some errors have detailed explanations: E0502, E0503.
For more information about an error, try `rustc --explain E0502`. For more information about an error, try `rustc --explain E0502`.

View File

@ -21,5 +21,5 @@ LL | }
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
Some errors occurred: E0502, E0503. Some errors have detailed explanations: E0502, E0503.
For more information about an error, try `rustc --explain E0502`. For more information about an error, try `rustc --explain E0502`.

View File

@ -63,5 +63,5 @@ LL | n => {
error: aborting due to 3 previous errors error: aborting due to 3 previous errors
Some errors occurred: E0507, E0509. Some errors have detailed explanations: E0507, E0509.
For more information about an error, try `rustc --explain E0507`. For more information about an error, try `rustc --explain E0507`.

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