Skip to content

Commit e800895

Browse files
committed
rustc: Remove obsolete error_out_of_root_scope variant
1 parent fa43f6a commit e800895

File tree

1 file changed

+0
-17
lines changed
  • src/librustc/middle/borrowck

1 file changed

+0
-17
lines changed

src/librustc/middle/borrowck/mod.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ impl Repr for RestrictionSet {
334334
#[deriving(Eq)]
335335
pub enum bckerr_code {
336336
err_mutbl,
337-
err_out_of_root_scope(ty::Region, ty::Region), // superscope, subscope
338337
err_out_of_scope(ty::Region, ty::Region), // superscope, subscope
339338
err_borrowed_pointer_too_short(
340339
ty::Region, ty::Region, RestrictionSet), // loan, ptr
@@ -616,9 +615,6 @@ impl<'a> BorrowckCtxt<'a> {
616615
}
617616
}
618617
}
619-
err_out_of_root_scope(..) => {
620-
format!("cannot root managed value long enough")
621-
}
622618
err_out_of_scope(..) => {
623619
let msg = match opt_loan_path(&err.cmt) {
624620
None => format!("borrowed value"),
@@ -694,19 +690,6 @@ impl<'a> BorrowckCtxt<'a> {
694690
match code {
695691
err_mutbl(..) => { }
696692

697-
err_out_of_root_scope(super_scope, sub_scope) => {
698-
note_and_explain_region(
699-
self.tcx,
700-
"managed value would have to be rooted for ",
701-
sub_scope,
702-
"...");
703-
note_and_explain_region(
704-
self.tcx,
705-
"...but can only be rooted for ",
706-
super_scope,
707-
"");
708-
}
709-
710693
err_out_of_scope(super_scope, sub_scope) => {
711694
note_and_explain_region(
712695
self.tcx,

0 commit comments

Comments
 (0)