We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90277a8 commit 433b324Copy full SHA for 433b324
compiler/rustc_span/src/source_map.rs
@@ -911,7 +911,8 @@ impl SourceMap {
911
912
/// Returns a new span representing just the last character of this span.
913
pub fn end_point(&self, sp: Span) -> Span {
914
- let sp = sp.data();
+ // We restrict the current span, so we cannot look around. Using the untracked data is ok.
915
+ let sp = sp.data_untracked();
916
let pos = sp.hi.0;
917
918
let width = self.find_width_of_character_at_span(sp, false);
0 commit comments