diff options
| author | bors <bors@rust-lang.org> | 2023-09-06 06:13:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-06 06:13:21 +0000 |
| commit | 6e4fd87002c7ebf24a8c97dfad0f0df2701cfb4c (patch) | |
| tree | 5dec19f4d974a33fb36aaaf936c4ab86b51b7f31 /src/tools/rustfmt | |
| parent | f2568c8316805749fe616e3de08c3f7c2bec3680 (diff) | |
| parent | b87067643257deddb36977b03e1b5497b2935595 (diff) | |
| download | rust-6e4fd87002c7ebf24a8c97dfad0f0df2701cfb4c.tar.gz rust-6e4fd87002c7ebf24a8c97dfad0f0df2701cfb4c.zip | |
Auto merge of #3053 - RalfJung:rustup, r=RalfJung
Rustup
Diffstat (limited to 'src/tools/rustfmt')
| -rw-r--r-- | src/tools/rustfmt/src/parse/session.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustfmt/src/parse/session.rs b/src/tools/rustfmt/src/parse/session.rs index d815d69d6ba..3f94bb29933 100644 --- a/src/tools/rustfmt/src/parse/session.rs +++ b/src/tools/rustfmt/src/parse/session.rs @@ -268,7 +268,7 @@ impl ParseSess { let source_file = self.parse_sess.source_map().lookup_char_pos(span.lo()).file; SnippetProvider::new( source_file.start_pos, - source_file.end_pos, + source_file.end_position(), Lrc::clone(source_file.src.as_ref().unwrap()), ) } |
