pub fn store_diagnostics_for_anon_node(&self,
                                           dep_node_index: DepNodeIndex,
                                           mut diagnostics: Vec<Diagnostic>) {
        let mut current_diagnostics = self.current_diagnostics.borrow_mut();

        let x = current_diagnostics.entry(dep_node_index).or_insert_with(|| {
            mem::replace(&mut diagnostics, Vec::new())
        });

        x.extend(diagnostics.into_iter());
    }
/// Store a diagnostic emitted during computation of an anonymous query.
/// Since many anonymous queries can share the same `DepNode`, we aggregate
/// them -- as opposed to regular queries where we assume that there is a
/// 1:1 relationship between query-key and `DepNode`.
Store a diagnostic emitted during computation of an anonymous query.
Since many anonymous queries can share the same `DepNode`, we aggregate
them -- as opposed to regular queries where we assume that there is a
1:1 relationship between query-key and `DepNode`.
Store a diagnostic emitted during computation of an anonymous query . Since many anonymous queries can share the same ` DepNode ` we aggregate them -- as opposed to regular queries where we assume that there is a 1 : 1 relationship between query - key and ` DepNode ` .
pub fn store_diagnostics_for_anon_node(&self,
                                           dep_node_index: DepNodeIndex,
                                           mut diagnostics: Vec<Diagnostic>) {
        let mut current_diagnostics = self.current_diagnostics.borrow_mut();
        let x = current_diagnostics.entry(dep_node_index).or_insert_with(|| {
            mem::replace(&mut diagnostics, Vec::new())
        });
        x.extend(diagnostics.into_iter());
    }
pub fn store_diagnostics_for_anon_node ( & self , dep_node_index : DepNodeIndex , mut diagnostics : Vec < Diagnostic > ) { let mut current_diagnostics = self . current_diagnostics . borrow_mut ( ) ; let x = current_diagnostics . entry ( dep_node_index ) . or_insert_with ( | | { mem :: replace ( & mut diagnostics , Vec :: new ( ) ) } ) ; x . extend ( diagnostics . into_iter ( ) ) ; }
Store a diagnostic emitted during computation of an anonymous query.
Store a diagnostic emitted during computation of an anonymous query .
&self
dep_node_index
DepNodeIndex
diagnostics
Vec<Diagnostic>