1
Fork 0

rustc: remove Res::Upvar.

This commit is contained in:
Eduard-Mihai Burtescu 2019-05-28 18:06:01 +03:00
parent 340b91e2ff
commit ed1bbbb545
12 changed files with 61 additions and 84 deletions

View file

@ -1409,7 +1409,6 @@ impl Expr {
ExprKind::Path(QPath::Resolved(_, ref path)) => {
match path.res {
Res::Local(..)
| Res::Upvar(..)
| Res::Def(DefKind::Static, _)
| Res::Err => true,
_ => false,