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 in_band_lifetimes from rustc_codegen_ssa #91885

Merged
merged 1 commit into from
Dec 15, 2021

Conversation

LegionMammal978
Copy link
Contributor

See #91867 for more information.

In compiler/rustc_codegen_ssa/src/coverageinfo/map.rs, there are several functions with an explicit 'a lifetime but only a single &'a self parameter. These lifetimes should be redundant given lifetime elision, unless the existential impl Iterator has weird issues regarding that. Should the redundant lifetimes be removed?

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Dec 14, 2021
@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 @estebank (or someone else) soon.

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 Dec 14, 2021
Copy link
Member

@workingjubilee workingjubilee left a comment

Choose a reason for hiding this comment

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

Yeah, if you can manage to pull out needless lifetimes labels for "nameless" ( 'a, 'b ) lifetimes then feel free to do so.

compiler/rustc_codegen_ssa/src/mir/analyze.rs Outdated Show resolved Hide resolved
@LegionMammal978 LegionMammal978 changed the title Remove inband_lifetimes from rustc_codegen_ssa Remove in_band_lifetimes from rustc_codegen_ssa Dec 15, 2021
@workingjubilee
Copy link
Member

Nice.
@bors r+ rollup=always

@bors
Copy link
Contributor

bors commented Dec 15, 2021

📌 Commit eaf39cb has been approved by workingjubilee

@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 Dec 15, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 15, 2021
…askrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#91880 (fix clippy::single_char_pattern perf findings)
 - rust-lang#91885 (Remove `in_band_lifetimes` from `rustc_codegen_ssa`)
 - rust-lang#91898 (Make `TyS::is_suggestable` check for non-suggestable types structually)
 - rust-lang#91915 (Add another regression test for unnormalized fn args with Self)
 - rust-lang#91916 (Fix a bunch of typos)
 - rust-lang#91918 (Constify `bool::then{,_some}`)
 - rust-lang#91920 (Use `tcx.def_path_hash` in `ExistentialPredicate.stable_cmp`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 700670f into rust-lang:master Dec 15, 2021
@rustbot rustbot added this to the 1.59.0 milestone Dec 15, 2021
@LegionMammal978 LegionMammal978 deleted the less-inband-codegen_ssa branch January 9, 2022 13:16
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. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants