-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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/FileMap to SourceMap/SourceFile #52953
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
afb54b0
to
ed04285
Compare
It would be nice to use same case conventions for everything and consistently treat "source map" and "file map" as two words ( |
Ping from triage, @dsciarra! Some changes have been requested to your PR and it also needs to be rebased. Do you think you'll be able to work on this? |
ed04285
to
5c462a6
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@TimNN I hope your definition of "ability" does not include time :) @petrochenkov Summary of changes:
Anything to add? |
@dsciarra |
5c462a6
to
99554c1
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
bf31cad
to
6fcdcf6
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
6fcdcf6
to
97181ea
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
1e54cce
to
20bfd92
Compare
src/libproc_macro/lib.rs
Outdated
@@ -306,8 +306,8 @@ impl Span { | |||
|
|||
/// The original source file into which this span points. | |||
#[unstable(feature = "proc_macro_span", issue = "38356")] | |||
pub fn source_file(&self) -> SourceFile { | |||
SourceFile { | |||
pub fn original_source_file(&self) -> OriginalSourceFile { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a public-facing standard library interface, even if it's unstable.
Let's leave it alone for now and revert this commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A simple revert won't work. I had to come up with another name for this second SourceFile struct. Why not changing it? It's unstable....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just use syntax_pos::SourceFile
explicitly without importing it (you can see e.g. syntax_pos::Span
being treated in the same way).
r=me when Travis is green and the |
@bors p=1 |
Rename CodeMap/FileMap to SourceMap/SourceFile A first renaming for #51574
☀️ Test successful - status-appveyor, status-travis |
📣 Toolstate changed by #52953! Tested on commit 6bf6d50. 💔 clippy-driver on windows: test-pass → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra). |
Tested on commit rust-lang/rust@6bf6d50. Direct link to PR: <rust-lang/rust#52953> 💔 clippy-driver on windows: test-pass → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra). 💔 clippy-driver on linux: test-pass → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra). 💔 rls on windows: test-pass → build-fail (cc @nrc, @rust-lang/infra). 💔 rls on linux: test-pass → build-fail (cc @nrc, @rust-lang/infra).
Those types were renamed in rust-lang/rust#52953
Fix test failure on nightly due to `codemap::Span` change. Update due to rust-lang/rust#52953.
A first renaming for #51574