/// Emit a diagnostic that a node is not implemented.
Emit a diagnostic that a node is not implemented.
Emit a diagnostic that a node is not implemented .
pub fn unimp<T, R>(&self, node: &T) -> Result<R>
    where
        T: HasSpan + HasDesc,
    {
        self.emit(
            DiagBuilder2::bug(format!("{} not implemented", node.desc())).span(node.human_span()),
        );
        Err(())
    }
pub fn unimp < T , R > ( & self , node : & T ) -> Result < R > where T : HasSpan + HasDesc , { self . emit ( DiagBuilder2 :: bug ( format ! ( " " node desc ( ) ) ) . span ( node . human_span ( ) ) , ) ; Err ( ( ) ) }
Emit a diagnostic that a node is not implemented.
Emit a diagnostic that a node is not implemented .
&self
node
&T