1
Fork 0

Switch compiler/ to intra-doc links

rustc_lint and rustc_lint_defs weren't switched because they're included
in the compiler book and so can't use intra-doc links.
This commit is contained in:
Joshua Nelson 2020-12-01 17:41:09 -05:00
parent d8d3ab96aa
commit 35f16c60e7
5 changed files with 2 additions and 8 deletions

View file

@ -138,8 +138,6 @@ impl Diagnostic {
///
/// This span is *not* considered a ["primary span"][`MultiSpan`]; only
/// the `Span` supplied when creating the diagnostic is primary.
///
/// [`MultiSpan`]: ../rustc_span/struct.MultiSpan.html
pub fn span_label<T: Into<String>>(&mut self, span: Span, label: T) -> &mut Self {
self.span.push_span_label(span, label.into());
self