diff --git a/compiler/rustc_metadata/src/rmeta/decoder.rs b/compiler/rustc_metadata/src/rmeta/decoder.rs index 4b2dcc7a70bc4..2a3693a360f21 100644 --- a/compiler/rustc_metadata/src/rmeta/decoder.rs +++ b/compiler/rustc_metadata/src/rmeta/decoder.rs @@ -1581,7 +1581,6 @@ impl<'a, 'tcx> CrateMetadataRef<'a> { non_narrow_chars, normalized_pos, start_pos, - end_pos, source_file_index, ); debug!( diff --git a/compiler/rustc_span/src/source_map.rs b/compiler/rustc_span/src/source_map.rs index c0fbb7f2c9f8e..108b169e30631 100644 --- a/compiler/rustc_span/src/source_map.rs +++ b/compiler/rustc_span/src/source_map.rs @@ -336,7 +336,6 @@ impl SourceMap { mut file_local_non_narrow_chars: Vec, mut file_local_normalized_pos: Vec, original_start_pos: BytePos, - _original_end_pos: BytePos, metadata_index: u32, ) -> Lrc { let start_pos = self diff --git a/compiler/rustc_span/src/source_map/tests.rs b/compiler/rustc_span/src/source_map/tests.rs index 2cada019b7f84..3058ec45a6468 100644 --- a/compiler/rustc_span/src/source_map/tests.rs +++ b/compiler/rustc_span/src/source_map/tests.rs @@ -251,7 +251,6 @@ fn t10() { non_narrow_chars, normalized_pos, start_pos, - end_pos, 0, );