diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index ec4444ac4e36..618561f3b025 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -1807,63 +1807,13 @@ makes a difference in practice.) [rfc401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md "##, -/* - -E0101: r##" -#### Note: this error code is no longer emitted by the compiler. - -You hit this error because the compiler lacks the information to -determine a type for this expression. Erroneous code example: - -```ignore -let x = |_| {}; // error: cannot determine a type for this expression -``` - -You have two possibilities to solve this situation: - -* Give an explicit definition of the expression -* Infer the expression - -Examples: - -``` -let x = |_ : u32| {}; // ok! -// or: -let x = |_| {}; -x(0u32); -``` -"##, - -E0102: r##" -#### Note: this error code is no longer emitted by the compiler. - -You hit this error because the compiler lacks the information to -determine the type of this variable. Erroneous code example: - -```ignore -// could be an array of anything -let x = []; // error: cannot determine a type for this local variable -``` - -To solve this situation, constrain the type of the variable. -Examples: - -``` -#![allow(unused_variables)] - -fn main() { - let x: [u8; 0] = []; -} -``` -"##, - -*/ - } register_diagnostics! { // E0006 // merged with E0005 +// E0101, // replaced with E0282 +// E0102, // replaced with E0282 // E0134, // E0135, E0278, // requirement is not satisfied diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 36094d6a8f6b..68afcae2b674 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -4102,6 +4102,8 @@ register_diagnostics! { // E0068, // E0085, // E0086, +// E0103, +// E0104, // E0123, // E0127, // E0129, @@ -4118,7 +4120,7 @@ register_diagnostics! { // E0188, // can not cast an immutable reference to a mutable pointer // E0189, // deprecated: can only cast a boxed pointer to a boxed object // E0190, // deprecated: can only cast a &-pointer to an &-object - E0196, // cannot determine a type for this closure // @cengizIO: this is no longer thrown. should I DELETE THIS? +// E0196, // cannot determine a type for this closure E0203, // type parameter has more than one relaxed default bound, // and only one is supported E0208,