Skip to content

librustc: Stop assuming that implementations and traits only contain - #16286

Merged
bors merged 1 commit into
rust-lang:masterfrom
pcwalton:associated-items-groundwork
Aug 14, 2014
Merged

librustc: Stop assuming that implementations and traits only contain#16286
bors merged 1 commit into
rust-lang:masterfrom
pcwalton:associated-items-groundwork

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

methods.

This paves the way to associated items by introducing an extra level of
abstraction ("impl-or-trait item") between traits/implementations and
methods. This new abstraction is encoded in the metadata and used
throughout the compiler where appropriate.

There are no functional changes; this is purely a refactoring.

r? @nick29581

@pcwalton

Copy link
Copy Markdown
ContributorAuthor

r? @nikomatsakis

@nikomatsakis

Copy link
Copy Markdown
Contributor

r+

@sfackler

Copy link
Copy Markdown
Member

Needs a rebase

@nrc

nrc commented Aug 9, 2014

Copy link
Copy Markdown
Member

Sorry I missed the review ping - gmail spam-filtered the email for me :-(

methods.
This paves the way to associated items by introducing an extra level of
abstraction ("impl-or-trait item") between traits/implementations and
methods. This new abstraction is encoded in the metadata and used
throughout the compiler where appropriate.
There are no functional changes; this is purely a refactoring.
bors added a commit that referenced this pull request Aug 14, 2014
…ikomatsakis
methods.
This paves the way to associated items by introducing an extra level of
abstraction ("impl-or-trait item") between traits/implementations and
methods. This new abstraction is encoded in the metadata and used
throughout the compiler where appropriate.
There are no functional changes; this is purely a refactoring.
r? @nick29581
@borsbors closed this Aug 14, 2014
@bors
bors merged commit 9907fa4 into rust-lang:masterAug 14, 2014
lnicola pushed a commit to lnicola/rust that referenced this pull request Aug 29, 2024
…ebold
internal: Be more resilient to bad language item definitions in binop inference
Fixesrust-lang#16287Fixesrust-lang#16286
There's one more in `write_fn_trait_method_resolution`, but I'm not sure if it won't cause further problems in `infer_closures`.
flip1995 pushed a commit to flip1995/rust that referenced this pull request Dec 25, 2025
…{} else {}` expressions (rust-lang#16286)
If two `if` arms contain only a single `if {..} else {..}` statement,
don't suggest a collapse as this can lead to less readable code.
Fixesrust-lang/rust-clippy#4971
changelog: [`collapsible_else_if`]: prevent emitting lint when the all
`if` arms contain only an `if {..} else {..}` expression.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@pcwalton@nikomatsakis@sfackler@nrc@bors