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

Make deriving errors slightly less cryptic #11826

Merged
merged 1 commit into from
Jan 28, 2014

Conversation

huonw
Copy link
Member

@huonw huonw commented Jan 26, 2014

cc #7621.

See the commit message. I'm not sure if we should merge this now, or wait until we can write Clone::clone(x) which will directly solve the above issue with perfect error messages.

This unfortunately changes an error like

    error: mismatched types: expected `&&NotClone` but found `&NotClone`

into

    error: type `NotClone` does not implement any method in scope named `clone`
bors added a commit that referenced this pull request Jan 28, 2014
cc #7621.

See the commit message. I'm not sure if we should merge this now, or wait until we can write `Clone::clone(x)` which will directly solve the above issue with perfect error messages.
@bors bors closed this Jan 28, 2014
@bors bors merged commit cb02a37 into rust-lang:master Jan 28, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 1, 2023
Fix typos in recent lint documentation.

Fixes typos and markup errors, and also makes the examples more realistic by hiding the `;`s so as not to visibly be discarding the computed value. Affected lints:

* `redundant_as_str`
* `unnecessary_map_on_constructor`

changelog: none
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