diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2015-07-06 14:13:19 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2015-07-21 21:55:19 +1200 |
| commit | f47d20aecdcd7db34d41ad1666fd3eee095cc943 (patch) | |
| tree | 7bad65f9a57209784410c8af9e2b42a5009eaea3 /src/libsyntax/codemap.rs | |
| parent | bf34187a2f874690798b06d9350c1f6c4755243a (diff) | |
| download | rust-f47d20aecdcd7db34d41ad1666fd3eee095cc943.tar.gz rust-f47d20aecdcd7db34d41ad1666fd3eee095cc943.zip | |
Use a span from the correct file for the inner span of a module
This basically only affects modules which are empty (or only contain comments). Closes #26755
Diffstat (limited to 'src/libsyntax/codemap.rs')
| -rw-r--r-- | src/libsyntax/codemap.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index 3e5c10702b6..e6bc3218897 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -894,7 +894,7 @@ impl CodeMap { FileMapAndBytePos {fm: fm, pos: offset} } - /// Converts an absolute BytePos to a CharPos relative to the filemap and above. + /// Converts an absolute BytePos to a CharPos relative to the filemap. pub fn bytepos_to_file_charpos(&self, bpos: BytePos) -> CharPos { let idx = self.lookup_filemap_idx(bpos); let files = self.files.borrow(); |
