@@ -334,7 +334,6 @@ impl Repr for RestrictionSet {
334
334
#[ deriving( Eq ) ]
335
335
pub enum bckerr_code {
336
336
err_mutbl,
337
- err_out_of_root_scope( ty:: Region , ty:: Region ) , // superscope, subscope
338
337
err_out_of_scope( ty:: Region , ty:: Region ) , // superscope, subscope
339
338
err_borrowed_pointer_too_short(
340
339
ty:: Region , ty:: Region , RestrictionSet ) , // loan, ptr
@@ -616,9 +615,6 @@ impl<'a> BorrowckCtxt<'a> {
616
615
}
617
616
}
618
617
}
619
- err_out_of_root_scope( ..) => {
620
- format ! ( "cannot root managed value long enough" )
621
- }
622
618
err_out_of_scope( ..) => {
623
619
let msg = match opt_loan_path ( & err. cmt ) {
624
620
None => format ! ( "borrowed value" ) ,
@@ -694,19 +690,6 @@ impl<'a> BorrowckCtxt<'a> {
694
690
match code {
695
691
err_mutbl( ..) => { }
696
692
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
-
710
693
err_out_of_scope( super_scope, sub_scope) => {
711
694
note_and_explain_region (
712
695
self . tcx ,
0 commit comments