diff options
| author | Arthur Lafrance <lafrancearthur@gmail.com> | 2023-09-23 23:50:47 -0700 |
|---|---|---|
| committer | Arthur Lafrance <lafrancearthur@gmail.com> | 2023-10-16 19:47:33 -0700 |
| commit | 8769e02d0b17e18e0a52b521a82da4bcae2e6385 (patch) | |
| tree | 25e12e712976127861140b509fa1cd5683d332a2 /compiler/rustc_span/src | |
| parent | 39164b84e0c6d94b15c78fcbf9bb5cfb76693045 (diff) | |
| download | rust-8769e02d0b17e18e0a52b521a82da4bcae2e6385.tar.gz rust-8769e02d0b17e18e0a52b521a82da4bcae2e6385.zip | |
implement the basics of the lint static analysis
Diffstat (limited to 'compiler/rustc_span/src')
| -rw-r--r-- | compiler/rustc_span/src/span_encoding.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_span/src/symbol.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/span_encoding.rs b/compiler/rustc_span/src/span_encoding.rs index bfc9e125362..69ad11e23f0 100644 --- a/compiler/rustc_span/src/span_encoding.rs +++ b/compiler/rustc_span/src/span_encoding.rs @@ -212,6 +212,7 @@ 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 { diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs index ea261923c65..be8c65862dc 100644 --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs @@ -303,6 +303,7 @@ symbols! { SliceIndex, SliceIter, Some, + SpanCtxt, String, StructuralEq, StructuralPartialEq, |
