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

Cleanup E0749 #75328

Merged
merged 2 commits into from
Aug 10, 2020
Merged

Cleanup E0749 #75328

merged 2 commits into from
Aug 10, 2020

Conversation

GuillaumeGomez
Copy link
Member

@JohnTitor JohnTitor added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 9, 2020
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

Looks good!

@pickfire
Copy link
Contributor

pickfire commented Aug 9, 2020

@GuillaumeGomez Looks good to me but this feels familiar #75291 to the one you changed earlier. Lol when I was r? and I am slower but when without I am faster. Haha

Also, I have some questions regarding the fix.

impl !MyTrait for u32 {
type Foo = i32; // error!
}
# fn main() {}
Copy link
Contributor

@pickfire pickfire Aug 9, 2020

Choose a reason for hiding this comment

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

Do we suggest how to fix this? Is it clear that the user should remove the type and put?

 impl !MyTrait for u32 {}

Copy link
Member

Choose a reason for hiding this comment

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

Hm it's verbose for me. "item" here is ambiguous a bit?

Copy link
Member Author

Choose a reason for hiding this comment

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

The explanation below isn't enough?

Copy link
Contributor

Choose a reason for hiding this comment

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

Just enough but it is not as straightforward.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hum... I'm not sure to see what's missing so could please open a PR with your vision? (let's switch position for once! :p)

Set me as reviewer on it so we can move forward quickly! :)

declare that a trait is **not** implemented (and never will be) and
hence there is no need to specify the values for trait methods or
other items.
An item was added on a negative impl.
Copy link
Contributor

@pickfire pickfire Aug 9, 2020

Choose a reason for hiding this comment

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

@JohnTitor I think the "item" here like you said means "type". Should we change it?

Suggested change
An item was added on a negative impl.
An associated type was added on a negative impl.

The one below too.

Copy link
Member

Choose a reason for hiding this comment

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

Well, "item" means "associated items" so I don't think we should change it.

@Dylan-DPC-zz
Copy link

merging this

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Aug 9, 2020

📌 Commit 4e78760 has been approved by Dylan-DPC

@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 9, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 10, 2020
Rollup of 8 pull requests

Successful merges:

 - rust-lang#74200 (Std panicking unsafe block in unsafe fn)
 - rust-lang#75286 (Add additional case for Path starts with)
 - rust-lang#75318 (Resolve `char` as a primitive even if there is a module in scope)
 - rust-lang#75320 (Detect likely `for foo of bar` JS syntax)
 - rust-lang#75328 (Cleanup E0749)
 - rust-lang#75344 (Rename "Important traits" to "Notable traits")
 - rust-lang#75348 (Move to intra-doc links in library/core/src/time.rs)
 - rust-lang#75350 (Do not ICE when lowering invalid extern fn with bodies)

Failed merges:

r? @ghost
@bors bors merged commit f6c41fb into rust-lang:master Aug 10, 2020
@GuillaumeGomez GuillaumeGomez deleted the cleanup-e0749 branch August 10, 2020 10:03
@cuviper cuviper added this to the 1.47.0 milestone May 2, 2024
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.

6 participants