implement the basics of the lint static analysis
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user