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

Prohibit type parameter shadowing with a clunky hammer. #20728

Merged
merged 1 commit into from
Jan 8, 2015

Conversation

huonw
Copy link
Member

@huonw huonw commented Jan 8, 2015

No description provided.

@rust-highfive
Copy link
Collaborator

r? @nick29581

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

This is a [breaking-change].

Change

    impl<T> Foo<T> {
        fn bar<T>(...

to (for example)

    impl<T> Foo<T> {
        fn bar<U>(...

Per RFC 459.

Closes rust-lang#19390.
@Diggsey
Copy link
Contributor

Diggsey commented Jan 8, 2015

This looks like it should fix #20702 as well?

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 8, 2015
Conflicts:
	src/librustc_typeck/check/wf.rs
@bors bors merged commit 92cd8ea into rust-lang:master Jan 8, 2015
Sign up for free to 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