(&self, msg: &str)
| 71 | } |
| 72 | |
| 73 | pub fn struct_err(&self, msg: &str) -> DiagnosticBuilder<'_, ErrorGuaranteed> { |
| 74 | if let Some(current_span) = self.current_span { |
| 75 | self.tcx.sess.struct_span_err(current_span, msg) |
| 76 | } else { |
| 77 | self.tcx.sess.struct_err(msg) |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | pub fn err(&self, msg: &str) { |
| 82 | if let Some(current_span) = self.current_span { |
no outgoing calls
no test coverage detected