rustc: take TyCtxt and RegionMaps in CodeMap::span.

This commit is contained in:
Eduard-Mihai Burtescu 2017-08-30 02:39:06 +03:00
parent 28ddd7a4ef
commit ea6aca7726
13 changed files with 119 additions and 169 deletions

View file

@ -4,7 +4,6 @@ error[E0271]: type mismatch resolving `for<'r> <[closure@$DIR/closure-mismatch.r
18 | baz(|_| ());
| ^^^ expected bound lifetime parameter, found concrete lifetime
|
= note: concrete lifetime that was found is lifetime '_#0r
= note: required because of the requirements on the impl of `Foo` for `[closure@$DIR/closure-mismatch.rs:18:9: 18:15]`
= note: required by `baz`