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

Tutorial: make struct section more coherent #5441

Merged
merged 1 commit into from
Mar 22, 2013
Merged

Tutorial: make struct section more coherent #5441

merged 1 commit into from
Mar 22, 2013

Conversation

lucab
Copy link
Contributor

@lucab lucab commented Mar 19, 2013

In struct section of tutorial, make everything more coherent and
clear by always using "struct Point".
Also, do not prematurely introduce pointers and arrays.
Fixes #5240

@lucab
Copy link
Contributor Author

lucab commented Mar 21, 2013

Ouch, sorry, I didn't realize that we were testing the code example in docs. I'll make a check pass and rebase this commit soon.

In struct section of tutorial, make everything more coherent and
clear by always using "struct Point". Also, do not prematurely
introduce pointers and arrays. Fixes #5240

Signed-off-by: Luca Bruno <lucab@debian.org>
@lucab
Copy link
Contributor Author

lucab commented Mar 21, 2013

«summary of 11 test runs: 1408 passed; 0 failed; 136 ignored»
Sorry for previous false start...

bors added a commit that referenced this pull request Mar 22, 2013
In struct section of tutorial, make everything more coherent and
clear by always using "struct Point".
Also, do not prematurely introduce pointers and arrays.
Fixes #5240
@bors bors closed this Mar 22, 2013
@bors bors merged commit f9bb7b7 into rust-lang:incoming Mar 22, 2013
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 2, 2020
Check for clone-on-copy in argument positions

Earlier if arguments to method calls matched the above pattern they were
not reported. This patch ensures such arguments are checked as well.

Fixes rust-lang#5436

changelog: apply clone_on_copy lint to func args as well
lnicola pushed a commit to lnicola/rust that referenced this pull request Aug 23, 2022
…predicate, r=lowr

Consider bounds on inherent impl in method resolution

There are three type-related things we should consider in method resolution: `Self` type, receiver type, and impl bounds. While we check the first two and impl bounds on trait impls, we've been ignoring the impl bounds on inherent impls. With this patch rust-analyzer now takes them into account and is able to select the appropriate inherent method.

Resolves rust-lang#5441
Resolves rust-lang#12308
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.

2 participants