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

Remove unused abs_path method from rustc_span::source_map::FileLoader #71263

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

shlevy
Copy link
Contributor

@shlevy shlevy commented Apr 17, 2020

No description provided.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 17, 2020
@shlevy
Copy link
Contributor Author

shlevy commented Apr 17, 2020

I noticed this was unused, but I'm not sure if we want to keep it around for compatibility or not.

@shlevy shlevy force-pushed the FileLoader-remove-abs_path branch from 2b8faca to c7899a0 Compare April 17, 2020 21:58
@Xanewok
Copy link
Member

Xanewok commented Apr 17, 2020

FWIW it's used by the RLS but the function is so trivial I'd be fine with removing this (in fact it is even reimplemented in the ipc bridge for of the RLS).

@shlevy
Copy link
Contributor Author

shlevy commented Apr 17, 2020

@Xanewok Looks like it's only used to implement the method itself in a wrapper? 🙂

@Xanewok
Copy link
Member

Xanewok commented Apr 17, 2020

Well, you're right - rustc won't use it anyway so we might just get rid of it entirely. Thanks 👍

r? @Xanewok
@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 17, 2020

📌 Commit c7899a0 has been approved by Xanewok

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 17, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Apr 18, 2020
…r=Xanewok

Remove unused abs_path method from rustc_span::source_map::FileLoader
@Dylan-DPC-zz
Copy link

probably breaking rls in the rollup

@bors r-

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Apr 18, 2020
@Xanewok
Copy link
Member

Xanewok commented Apr 18, 2020

Is this no-breakage week for tools already?

@Dylan-DPC-zz
Copy link

Yep

@shlevy
Copy link
Contributor Author

shlevy commented Apr 18, 2020

Sorry, does this mean we can't do this removal at all, or just that we have to wait a week?

If we can't remove it, can we mark it deprecated/unused?

@Dylan-DPC-zz
Copy link

@shlevy just have to wait a week :)

@shlevy
Copy link
Contributor Author

shlevy commented Apr 26, 2020

@Xanewok @Dylan-DPC Good to move forward?

@Xanewok
Copy link
Member

Xanewok commented Apr 26, 2020

I believe so, thanks

@bors r+

@bors
Copy link
Contributor

bors commented Apr 26, 2020

📌 Commit c7899a0 has been approved by Xanewok

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 26, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 27, 2020
Rollup of 6 pull requests

Successful merges:

 - rust-lang#68716 (Stabilize `Span::mixed_site`)
 - rust-lang#71263 (Remove unused abs_path method from rustc_span::source_map::FileLoader)
 - rust-lang#71409 (Point at the return type on `.into()` failure caused by `?`)
 - rust-lang#71419 (add message for resolution failure because wrong namespace)
 - rust-lang#71438 (Tweak some suggestions in `rustc_resolve`)
 - rust-lang#71589 (remove Unique::from for shared pointer types)

Failed merges:

r? @ghost
@bors bors merged commit 89aff5f into rust-lang:master Apr 27, 2020
Xanewok added a commit to Xanewok/rust that referenced this pull request Apr 27, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 28, 2020
Update RLS to unbreak toolstate

Breakage caused by rust-lang#71263.

r? @ghost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants