pub fn bug<I>(&self, id: I, msg: String)
    where
        I: Into<NodeId>,
    {
        let mut d = DiagBuilder2::bug(msg);
        if let Some(span) = self.span(id) {
            d = d.span(span);
        }
        self.emit(d);
    }
/// Report a compiler bug associate with a node.
Report a compiler bug associate with a node.
Report a compiler bug associate with a node .
pub fn bug<I>(&self, id: I, msg: String)
    where
        I: Into<NodeId>,
    {
        let mut d = DiagBuilder2::bug(msg);
        if let Some(span) = self.span(id) {
            d = d.span(span);
        }
        self.emit(d);
    }
pub fn bug < I > ( & self , id : I , msg : String ) where I : Into < NodeId > , { let mut d = DiagBuilder2 :: bug ( msg ) ; if let Some ( span ) = self . span ( id ) { d = d . span ( span ) ; } self . emit ( d ) ; }
Report a compiler bug associate with a node.
Report a compiler bug associate with a node .
&self
id
I
msg
String
&self
id
I
msg
String