We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
find_width_of_character_at_span
1 parent 3e5beb2 commit 95013e6Copy full SHA for 95013e6
src/libsyntax/source_map.rs
@@ -727,6 +727,11 @@ impl SourceMap {
727
debug!("find_width_of_character_at_span: local_begin=`{:?}`, local_end=`{:?}`",
728
local_begin, local_end);
729
730
+ if local_begin.sf.start_pos != local_end.sf.start_pos {
731
+ debug!("find_width_of_character_at_span: begin and end are in different files");
732
+ return 1;
733
+ }
734
+
735
let start_index = local_begin.pos.to_usize();
736
let end_index = local_end.pos.to_usize();
737
debug!("find_width_of_character_at_span: start_index=`{:?}`, end_index=`{:?}`",
0 commit comments