rustc_const_eval: always demand typeck_tables for evaluating constants.

This commit is contained in:
Eduard-Mihai Burtescu 2017-02-15 15:00:20 +02:00
parent c832e6f327
commit e7a48821c0
60 changed files with 706 additions and 1222 deletions

View file

@ -46,11 +46,5 @@ error[E0425]: cannot find value `second` in module `m`
32 | let b: m::first = m::second; // Misspelled item in module.
| ^^^^^^^^^ did you mean `m::Second`?
error[E0080]: constant evaluation error
--> $DIR/levenshtein.rs:30:20
|
30 | let v = [0u32; MAXITEM]; // Misspelled constant name.
| ^^^^^^^ unresolved path in constant expression
error: aborting due to previous error
error: aborting due to 8 previous errors