(&self, msg: &str)
| 79 | } |
| 80 | |
| 81 | pub fn err(&self, msg: &str) { |
| 82 | if let Some(current_span) = self.current_span { |
| 83 | self.tcx.sess.span_err(current_span, msg); |
| 84 | } else { |
| 85 | self.tcx.sess.err(msg); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | pub fn fatal(&self, msg: &str) -> ! { |
| 90 | if let Some(current_span) = self.current_span { |
no outgoing calls
no test coverage detected