Skip to content

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

Merged
bors merged 1 commit into
rust-lang:masterfrom
shlevy:FileLoader-remove-abs_path
Apr 27, 2020
Merged

Remove unused abs_path method from rustc_span::source_map::FileLoader#71263
bors merged 1 commit into
rust-lang:masterfrom
shlevy:FileLoader-remove-abs_path

Conversation

@shlevy

Copy link
Copy Markdown
Contributor

No description provided.

@rust-highfive

Copy link
Copy Markdown
Contributor

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-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 17, 2020
@shlevy

Copy link
Copy Markdown
ContributorAuthor

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

@shlevy
shlevyforce-pushed the FileLoader-remove-abs_path branch from 2b8faca to c7899a0CompareApril 17, 2020 21:58
@Xanewok

Copy link
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

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

@Xanewok

Copy link
Copy Markdown
Contributor

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

bors commented Apr 17, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit c7899a0 has been approved by Xanewok

@borsbors 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
Copy Markdown

probably breaking rls in the rollup

@bors r-

@borsbors 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
Copy Markdown
Contributor

Is this no-breakage week for tools already?

@Dylan-DPC-zz

Copy link
Copy Markdown

Yep

@shlevy

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown

@shlevy just have to wait a week :)

@shlevy

Copy link
Copy Markdown
ContributorAuthor

@Xanewok@Dylan-DPC Good to move forward?

@Xanewok

Copy link
Copy Markdown
Contributor

I believe so, thanks

@bors r+

@bors

bors commented Apr 26, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit c7899a0 has been approved by Xanewok

@borsbors 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:masterApr 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: 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

@shlevy@rust-highfive@Xanewok@bors@Dylan-DPC-zz@nikomatsakis