comment out removed error codes

This commit is contained in:
Cengiz Can 2017-04-18 16:56:08 +03:00
parent 6383de15b1
commit 8b45a21bd1
2 changed files with 5 additions and 53 deletions

View file

@ -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

View file

@ -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,