fn check_if_path_is_moved(&self,
                              id: ast::NodeId,
                              span: Span,
                              use_kind: MovedValueUseKind,
                              lp: &Rc<LoanPath<'tcx>>) {
        debug!("check_if_path_is_moved(id={}, use_kind={:?}, lp={:?})",
               id, use_kind, lp);

        // FIXME (22079): if you find yourself tempted to cut and paste
        // the body below and then specializing the error reporting,
        // consider refactoring this instead!

        let base_lp = owned_ptr_base_path_rc(lp);
        self.move_data.each_move_of(id, &base_lp, |the_move, moved_lp| {
            self.bccx.report_use_of_moved_value(
                span,
                use_kind,
                &**lp,
                the_move,
                moved_lp,
                self.param_env);
            false
        });
    }
/// Reports an error if `expr` (which should be a path)
/// is using a moved/uninitialized value
Reports an error if `expr` (which should be a path)
is using a moved/uninitialized value
Reports an error if ` expr ` ( which should be a path ) is using a moved / uninitialized value
fn check_if_path_is_moved(&self,
                              id: ast::NodeId,
                              span: Span,
                              use_kind: MovedValueUseKind,
                              lp: &Rc<LoanPath<'tcx>>) {
        debug!("check_if_path_is_moved(id={}, use_kind={:?}, lp={:?})",
               id, use_kind, lp);
        // FIXME (22079): if you find yourself tempted to cut and paste
        // the body below and then specializing the error reporting,
        // consider refactoring this instead!
        let base_lp = owned_ptr_base_path_rc(lp);
        self.move_data.each_move_of(id, &base_lp, |the_move, moved_lp| {
            self.bccx.report_use_of_moved_value(
                span,
                use_kind,
                &**lp,
                the_move,
                moved_lp,
                self.param_env);
            false
        });
    }
fn check_if_path_is_moved ( & self , id : ast :: NodeId , span : Span , use_kind : MovedValueUseKind , lp : & Rc < LoanPath < ' tcx > > ) { debug ! ( " " id use_kind lp ) ; // FIXME (22079): if you find yourself tempted to cut and paste // the body below and then specializing the error reporting, // consider refactoring this instead! let base_lp = owned_ptr_base_path_rc ( lp ) ; self . move_data . each_move_of ( id , & base_lp , | the_move , moved_lp | { self . bccx . report_use_of_moved_value ( span , use_kind , & * * lp , the_move , moved_lp , self . param_env ) ; false } ) ; }
Reports an error if `expr` (which should be a path)
is using a moved/uninitialized value
Reports an error if ` expr ` ( which should be a path ) is using a moved / uninitialized value
&self
id
ast::NodeId
span
Span
use_kind
MovedValueUseKind
lp
&Rc<LoanPath<'tcx>>
&self
id
ast::NodeId
span
Span
use_kind
MovedValueUseKind
lp
&Rc<LoanPath<'tcx>>