Skip to content

Only get ImplKind::Impl once #76783

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Sep 22, 2020
Merged

Only get ImplKind::Impl once #76783

merged 1 commit into from
Sep 22, 2020

Conversation

tesuji
Copy link
Contributor

@tesuji tesuji commented Sep 16, 2020

With this, the code panics in one place instead of two.

@rust-highfive
Copy link
Contributor

r? @GuillaumeGomez

(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 Sep 16, 2020
@GuillaumeGomez
Copy link
Member

Do you have a test to confirm it too please? :) Otherwise looks good to me!

@tesuji
Copy link
Contributor Author

tesuji commented Sep 16, 2020

I don't know how to write tests for this :p . It is just obvious at source level,
we've never known what optimizer does behind our backs.

@GuillaumeGomez
Copy link
Member

r=me once CI is green. :)

@jyn514 jyn514 added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Sep 16, 2020
@jyn514
Copy link
Member

jyn514 commented Sep 16, 2020

@bors r=GuillaumeGomez

@bors
Copy link
Collaborator

bors commented Sep 16, 2020

📌 Commit eede953 has been approved by GuillaumeGomez

@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 Sep 16, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 19, 2020
Only get ImplKind::Impl once

With this, the code panics in one place instead of two.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 19, 2020
Only get ImplKind::Impl once

With this, the code panics in one place instead of two.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 20, 2020
Only get ImplKind::Impl once

With this, the code panics in one place instead of two.
RalfJung added a commit to RalfJung/rust that referenced this pull request Sep 20, 2020
Only get ImplKind::Impl once

With this, the code panics in one place instead of two.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 21, 2020
Only get ImplKind::Impl once

With this, the code panics in one place instead of two.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 22, 2020
Only get ImplKind::Impl once

With this, the code panics in one place instead of two.
ecstatic-morse added a commit to ecstatic-morse/rust that referenced this pull request Sep 22, 2020
Only get ImplKind::Impl once

With this, the code panics in one place instead of two.
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 22, 2020
…atic-morse

Rollup of 13 pull requests

Successful merges:

 - rust-lang#72734 (Reduce duplicate in liballoc reserve error handling)
 - rust-lang#76131 (Don't use `zip` to compare iterators during pretty-print hack)
 - rust-lang#76150 (Don't recommend ManuallyDrop to customize drop order)
 - rust-lang#76275 (Implementation of Write for some immutable ref structs)
 - rust-lang#76489 (Add explanation for E0756)
 - rust-lang#76581 (do not ICE on bound variables, return `TooGeneric` instead)
 - rust-lang#76655 (Make some methods of `Pin` unstable const)
 - rust-lang#76783 (Only get ImplKind::Impl once)
 - rust-lang#76807 (Use const-checking to forbid use of unstable features in const-stable functions)
 - rust-lang#76888 (use if let instead of single match arm expressions)
 - rust-lang#76914 (extend `Ty` and `TyCtxt` lints to self types)
 - rust-lang#77022 (Reduce boilerplate for BytePos and CharPos)
 - rust-lang#77032 (lint missing docs for extern items)

Failed merges:

r? `@ghost`
@bors bors merged commit b3433c7 into rust-lang:master Sep 22, 2020
@rustbot rustbot added this to the 1.48.0 milestone Sep 22, 2020
@tesuji tesuji deleted the rd_impl_kind branch September 22, 2020 08:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc 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