diff options
| author | Cengiz Can <canc@thoughtworks.com> | 2017-04-18 16:56:08 +0300 |
|---|---|---|
| committer | Cengiz Can <canc@thoughtworks.com> | 2017-04-18 21:43:22 +0300 |
| commit | 8b45a21bd1900fa7935fea96bdaf8583e1002832 (patch) | |
| tree | 40514559a650a70112318899b0d7fdd3f3423273 | |
| parent | 6383de15b186254f892bd7298abb48a46f127e6d (diff) | |
| download | rust-8b45a21bd1900fa7935fea96bdaf8583e1002832.tar.gz rust-8b45a21bd1900fa7935fea96bdaf8583e1002832.zip | |
comment out removed error codes
| -rw-r--r-- | src/librustc/diagnostics.rs | 54 | ||||
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 4 |
2 files changed, 5 insertions, 53 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index ec4444ac4e3..618561f3b02 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 36094d6a8f6..68afcae2b67 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, |
