diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-02-23 09:57:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-23 09:57:44 +0100 |
| commit | bdd275de2affa203d5ef4185d32b9b68109e38ca (patch) | |
| tree | 951034622cd33610c5655846b3ff0819df6bc8d7 /src/libsyntax | |
| parent | ae50725dc3e272a46726f548aaff801a4f456563 (diff) | |
| parent | 20c9a40fec886826a3e7c4ec0c33ea4692f2c6a8 (diff) | |
| download | rust-bdd275de2affa203d5ef4185d32b9b68109e38ca.tar.gz rust-bdd275de2affa203d5ef4185d32b9b68109e38ca.zip | |
Rollup merge of #69375 - Menschenkindlein:master, r=Dylan-DPC
Rename CodeMap to SourceMap follow up See https://github.com/rust-lang/rust/issues/51574
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/util/comments.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/util/comments.rs b/src/libsyntax/util/comments.rs index 5a67531624d..0e42ae11fa2 100644 --- a/src/libsyntax/util/comments.rs +++ b/src/libsyntax/util/comments.rs @@ -189,8 +189,8 @@ fn split_block_comment_into_lines(text: &str, col: CharPos) -> Vec<String> { // it appears this function is called only from pprust... that's // probably not a good thing. pub fn gather_comments(sm: &SourceMap, path: FileName, src: String) -> Vec<Comment> { - let cm = SourceMap::new(sm.path_mapping().clone()); - let source_file = cm.new_source_file(path, src); + let sm = SourceMap::new(sm.path_mapping().clone()); + let source_file = sm.new_source_file(path, src); let text = (*source_file.src.as_ref().unwrap()).clone(); let text: &str = text.as_str(); |
