about summary refs log tree commit diff
path: root/compiler/rustc_span/src/span_encoding.rs
diff options
context:
space:
mode:
authorArthur Lafrance <lafrancearthur@gmail.com>2023-09-25 00:15:00 -0700
committerArthur Lafrance <lafrancearthur@gmail.com>2023-10-16 19:47:33 -0700
commitf77dea89e183b638841d42d4d7bea48058a98e76 (patch)
tree18bc71a5132be3dc008d7b45af46d2664db28dff /compiler/rustc_span/src/span_encoding.rs
parent8769e02d0b17e18e0a52b521a82da4bcae2e6385 (diff)
downloadrust-f77dea89e183b638841d42d4d7bea48058a98e76.tar.gz
rust-f77dea89e183b638841d42d4d7bea48058a98e76.zip
basic lint v2 implemented
Diffstat (limited to 'compiler/rustc_span/src/span_encoding.rs')
-rw-r--r--compiler/rustc_span/src/span_encoding.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/span_encoding.rs b/compiler/rustc_span/src/span_encoding.rs
index 69ad11e23f0..7c7f8448c97 100644
--- a/compiler/rustc_span/src/span_encoding.rs
+++ b/compiler/rustc_span/src/span_encoding.rs
@@ -75,6 +75,7 @@ use rustc_data_structures::fx::FxIndexSet;
 /// the dependency to the parent definition's span. This is performed
 /// using the callback `SPAN_TRACK` to access the query engine.
 ///
+#[cfg_attr(not(test), rustc_diagnostic_item = "Span")]
 #[derive(Clone, Copy, Eq, PartialEq, Hash)]
 #[rustc_pass_by_value]
 pub struct Span {
@@ -212,7 +213,6 @@ impl Span {
 
     /// This function is used as a fast path when decoding the full `SpanData` is not necessary.
     /// It's a cut-down version of `data_untracked`.
-    #[rustc_diagnostic_item = "SpanCtxt"]
     #[inline]
     pub fn ctxt(self) -> SyntaxContext {
         if self.len_with_tag_or_marker != BASE_LEN_INTERNED_MARKER {