Skip to content

"can be built on Ref::map"… how? #32100

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 2 commits into from
Mar 10, 2016
Merged

"can be built on Ref::map"… how? #32100

merged 2 commits into from
Mar 10, 2016

Conversation

SimonSapin
Copy link
Contributor

Now that std::cell::Ref::filter_map and RefMut::filter_map are deprecated, using them gives a warning like:

script/dom/element.rs:754:9: 754:24 warning: use of deprecated item: can be built on Ref::map, #[warn(deprecated)] on by default

But it’s not at all obvious how the functionality can be built on Ref::map. This PR adds to the warning message a crates.io URL for a crate that does.

Now that `std::cell::Ref::filter_map` and `RefMut::filter_map` are deprecated, using them gives a warning like:
```
script/dom/element.rs:754:9: 754:24 warning: use of deprecated item: can be built on Ref::map, #[warn(deprecated)] on by default
```

But it’s not at all obvious *how* the functionality can be built on `Ref::map`. This PR adds to the warning message a crates.io URL for a crate that does.
@alexcrichton
Copy link
Member

@bors: r+ 57b3cfd

@alexcrichton alexcrichton self-assigned this Mar 8, 2016
bors added a commit that referenced this pull request Mar 10, 2016
"can be built on Ref::map"… how?

Now that `std::cell::Ref::filter_map` and `RefMut::filter_map` are deprecated, using them gives a warning like:
```
script/dom/element.rs:754:9: 754:24 warning: use of deprecated item: can be built on Ref::map, #[warn(deprecated)] on by default
```

But it’s not at all obvious *how* the functionality can be built on `Ref::map`. This PR adds to the warning message a crates.io URL for a crate that does.
@bors
Copy link
Collaborator

bors commented Mar 10, 2016

⌛ Testing commit 57b3cfd with merge 25a2327...

@bors bors merged commit 57b3cfd into rust-lang:master Mar 10, 2016
@SimonSapin SimonSapin deleted the patch-6 branch March 19, 2016 08:39
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