Skip to content

add diagnostics for E0387 #27605

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

Merged
merged 3 commits into from
Aug 12, 2015
Merged

add diagnostics for E0387 #27605

merged 3 commits into from
Aug 12, 2015

Conversation

AlisdairO
Copy link
Contributor

As title :-)
Part of #24407.

r? @Manishearth

@Manishearth
Copy link
Member

Welcome back!

@Manishearth
Copy link
Member

I'd like to see some tips for cases where the function definition is not owned by the user too.

Something that hints the usage of interior mutability (std::cell) would be nice.

r+ as-is is also fine by me

@AlisdairO
Copy link
Contributor Author

Thanks! I'm not exactly firing on all cylinders, but hoping to get things done here and there :-).

Good point on the use of cell, that actually hadn't crossed my mind. I'll add it in.

@AlisdairO
Copy link
Contributor Author

Added info about cell types!


```
fn mutable() {
let x = std::cell::Cell::new(0u32);
Copy link
Member

Choose a reason for hiding this comment

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

nit: just use import std::cell::Cell; at the top, long paths look ugly inline

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done :)

@Manishearth
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Aug 11, 2015

📌 Commit f041966 has been approved by Manishearth

Manishearth added a commit to Manishearth/rust that referenced this pull request Aug 11, 2015
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Aug 12, 2015
@bors bors merged commit f041966 into rust-lang:master Aug 12, 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.

3 participants