(&self, msg: &str)
| 87 | } |
| 88 | |
| 89 | pub fn fatal(&self, msg: &str) -> ! { |
| 90 | if let Some(current_span) = self.current_span { |
| 91 | self.tcx.sess.span_fatal(current_span, msg) |
| 92 | } else { |
| 93 | self.tcx.sess.fatal(msg) |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | pub fn span(&self) -> Span { |
| 98 | self.current_span.unwrap_or(DUMMY_SP) |
no outgoing calls
no test coverage detected