(text: T)
| 76 | |
| 77 | impl Diagnostic { |
| 78 | pub fn error<T: Into<String>>(text: T) -> Self { |
| 79 | Self { |
| 80 | inner: Repr::Single { |
| 81 | text: text.into(), |
| 82 | span: None, |
| 83 | }, |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | pub(crate) fn spans_error<T: Into<String>>(spans: (Span, Span), text: T) -> Self { |
| 88 | Self { |
no outgoing calls
no test coverage detected