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

Require inherent impls to be located adjacent to their types #17059

Closed
pcwalton opened this issue Sep 7, 2014 · 1 comment
Closed

Require inherent impls to be located adjacent to their types #17059

pcwalton opened this issue Sep 7, 2014 · 1 comment
Labels
A-resolve Area: Name resolution B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented.
Milestone

Comments

@pcwalton
Copy link
Contributor

pcwalton commented Sep 7, 2014

RFC: rust-lang/rfcs#155

Nominating for 1.0, P-backcompat-lang.

@pcwalton pcwalton added I-nominated B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented. A-resolve Area: Name resolution labels Sep 7, 2014
@pnkfelix pnkfelix added this to the 1.0 milestone Sep 11, 2014
@pnkfelix
Copy link
Member

1.0, P-backcompat-lang.

bors added a commit that referenced this issue Sep 14, 2014
…hton

type they provide an implementation for.

This breaks code like:

    mod foo {
        struct Foo { ... }
    }

    impl foo::Foo {
        ...
    }

Change this code to:

    mod foo {
        struct Foo { ... }

        impl Foo {
            ...
        }
    }

Closes #17059.

RFC #155.

[breaking-change]

r? @brson
lnicola pushed a commit to lnicola/rust that referenced this issue Apr 20, 2024
…r=Veykril

internal: make function builder create ast directly

I am working on rust-lang#17050.
In the process, I noticed a place in the code that could be refactored.
Currently, the `function builder` creates the `ast` through the `function template` , but those two processes can be combined into one function.
I thought I should work on this first and created a PR.
lnicola pushed a commit to lnicola/rust that referenced this issue Apr 20, 2024
…r=Veykril

internal: make function builder create ast directly

I am working on rust-lang#17050.
In the process, I noticed a place in the code that could be refactored.
Currently, the `function builder` creates the `ast` through the `function template` , but those two processes can be combined into one function.
I thought I should work on this first and created a PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-resolve Area: Name resolution B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants