Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename codemap to source map #173

Merged
merged 1 commit into from
Apr 23, 2019
Merged

Rename codemap to source map #173

merged 1 commit into from
Apr 23, 2019

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Apr 22, 2019

Fixes #156. This matches the renames in rust-lang/rust#51574 / rust-lang/rust#55190. Does not affect public API.

@dtolnay dtolnay merged commit ed21fad into dtolnay:master Apr 23, 2019
@dtolnay dtolnay deleted the sourcemap branch April 23, 2019 00:34
@@ -384,7 +384,7 @@ impl Span {

#[cfg(procmacro2_semver_exempt)]
pub fn source_file(&self) -> SourceFile {
CODEMAP.with(|cm| {
SOURCE_MAP.with(|cm| {
let cm = cm.borrow();
let fi = cm.fileinfo(*self);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the cm variables (here and elsewhere) could've been renamed to sm as well (but this is a very minor nitpick).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename "codemap" to "source map".
2 participants