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

Extract impl_header_lifetime_elision out of in_band_lifetimes #53016

Merged
merged 3 commits into from
Aug 7, 2018

Conversation

scottmcm
Copy link
Member

@scottmcm scottmcm commented Aug 3, 2018

This way we can experiment with impl Debug for &MyType separately from impl Debug for &'a MyType.

I can't say I know what the code in here is doing, so please let me know if there's a better way 🙂

I marked this as enabled in 2018 so that edition code continues to work without another flag.

Actual feature PR #49251; Tracking Issue #15872; In-band lifetimes tracking issue #44524.

cc @aturon, per discussion on discord earlier
cc @cramertj & @nikomatsakis, who actually wrote these features

@rust-highfive
Copy link
Collaborator

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 3, 2018
@rust-highfive

This comment has been minimized.

@pnkfelix
Copy link
Member

pnkfelix commented Aug 3, 2018

unassigning self as i'm about to go on PTO

@pnkfelix pnkfelix removed their assignment Aug 3, 2018
@pnkfelix
Copy link
Member

pnkfelix commented Aug 3, 2018

r? @nikomatsakis

(who I assume will have good sense to delegate accordingly if necessary)

As mentioned in the 2018-08-04 edition status update, these are postponed as lacking consensus to stabilize.
@scottmcm
Copy link
Member Author

scottmcm commented Aug 4, 2018

I included a commit here (1c7af27) to remove in-band lifetimes from being automatically-on in the 2018 edition since it seems like that's wanted for edition preview 2 (cc @Centril).

Copy link
Contributor

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

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

I have a nit, but it hardly matters

@@ -718,6 +720,10 @@ impl<'a> LoweringContext<'a> {
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like we could remove this if, as it serves no purpose now

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Aug 6, 2018

📌 Commit 1c7af27 has been approved by nikomatsakis

@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 Aug 6, 2018
@nikomatsakis
Copy link
Contributor

@bors p=1

Giving higher priority because this is an EP2 blocker

@bors
Copy link
Contributor

bors commented Aug 6, 2018

⌛ Testing commit 1c7af27 with merge 45a9d41...

bors added a commit that referenced this pull request Aug 6, 2018
…atsakis

Extract impl_header_lifetime_elision out of in_band_lifetimes

This way we can experiment with `impl Debug for &MyType` separately from `impl Debug for &'a MyType`.

I can't say I know what the code in here is doing, so please let me know if there's a better way 🙂

I marked this as enabled in 2018 so that edition code continues to work without another flag.

Actual feature PR #49251; Tracking Issue #15872; In-band lifetimes tracking issue #44524.

cc @aturon, per discussion on discord earlier
cc @cramertj & @nikomatsakis, who actually wrote these features
@bors
Copy link
Contributor

bors commented Aug 7, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: nikomatsakis
Pushing 45a9d41 to master...

@bors bors merged commit 1c7af27 into rust-lang:master Aug 7, 2018
@rust-highfive
Copy link
Collaborator

📣 Toolstate changed by #53016!

Tested on commit 45a9d41.
Direct link to PR: #53016

💔 clippy-driver on windows: test-fail → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra).
💔 clippy-driver on linux: test-fail → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra).

rust-highfive added a commit to rust-lang-nursery/rust-toolstate that referenced this pull request Aug 7, 2018
Tested on commit rust-lang/rust@45a9d41.
Direct link to PR: <rust-lang/rust#53016>

💔 clippy-driver on windows: test-fail → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra).
💔 clippy-driver on linux: test-fail → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra).
scottmcm added a commit to scottmcm/rust-clippy that referenced this pull request Aug 7, 2018
In-band lifetimes are no longer in the edition, so update the one place that was using them.
@scottmcm scottmcm deleted the impl-header-lifetime-elision branch August 7, 2018 07:39
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.

None yet

5 participants