about summary refs log tree commit diff
path: root/src/librustc_borrowck/borrowck
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2016-06-01 15:10:44 +0300
committerEduard Burtescu <edy.burt@gmail.com>2016-06-05 13:58:51 +0300
commitbcec7a58485c82e69a58a8ee849a05fd8f42d5af (patch)
tree6a0bdec5007dd98aa65c647cf73a076bed19954a /src/librustc_borrowck/borrowck
parentf97c411548f2b64f74f2bcb84dcc37075c05e2a0 (diff)
downloadrust-bcec7a58485c82e69a58a8ee849a05fd8f42d5af.tar.gz
rust-bcec7a58485c82e69a58a8ee849a05fd8f42d5af.zip
rustc: add ReErased to be used by trait selection, MIR and trans.
Diffstat (limited to 'src/librustc_borrowck/borrowck')
-rw-r--r--src/librustc_borrowck/borrowck/gather_loans/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_borrowck/borrowck/gather_loans/mod.rs b/src/librustc_borrowck/borrowck/gather_loans/mod.rs
index 7d4f02bfe11..7f814f5dfaa 100644
--- a/src/librustc_borrowck/borrowck/gather_loans/mod.rs
+++ b/src/librustc_borrowck/borrowck/gather_loans/mod.rs
@@ -369,7 +369,8 @@ impl<'a, 'tcx> GatherLoanCtxt<'a, 'tcx> {
                     ty::ReLateBound(..) |
                     ty::ReEarlyBound(..) |
                     ty::ReVar(..) |
-                    ty::ReSkolemized(..) => {
+                    ty::ReSkolemized(..) |
+                    ty::ReErased => {
                         span_bug!(
                             cmt.span,
                             "invalid borrow lifetime: {:?}",