@@ -1662,7 +1662,7 @@ fn check_fn(_fk: visit::fn_kind, _decl: fn_decl,
16621662enum ReadKind {
16631663 PossiblyUninitializedVariable ,
16641664 PossiblyUninitializedField ,
1665- MovedVariable
1665+ MovedValue
16661666}
16671667
16681668impl @Liveness {
@@ -1815,7 +1815,7 @@ impl @Liveness {
18151815 lnk : LiveNodeKind ,
18161816 var : Variable ) {
18171817
1818- // the only time that it is possible to have a moved variable
1818+ // the only time that it is possible to have a moved value
18191819 // used by ExitNode would be arguments or fields in a ctor.
18201820 // we give a slightly different error message in those cases.
18211821 if lnk == ExitNode {
@@ -1837,7 +1837,7 @@ impl @Liveness {
18371837 }
18381838 }
18391839
1840- self . report_illegal_read ( move_span, lnk, var, MovedVariable ) ;
1840+ self . report_illegal_read ( move_span, lnk, var, MovedValue ) ;
18411841 self . tcx . sess . span_note (
18421842 move_span, ~"move of variable occurred here") ;
18431843
@@ -1852,7 +1852,7 @@ impl @Liveness {
18521852 ~"possibly uninitialized variable"
18531853 }
18541854 PossiblyUninitializedField => ~"possibly uninitialized field",
1855- MovedVariable => ~"moved variable "
1855+ MovedValue => ~"moved value "
18561856 } ;
18571857 let name = ( * self . ir ) . variable_name ( var) ;
18581858 match lnk {
0 commit comments