Skip to content

Conversation

@jarcane
Copy link
Contributor

@jarcane jarcane commented Jun 19, 2015

This sample throws a warning in line 36 currently, which does not appear to be intended:

warning: use of deprecated item: use `String::from` instead, #[warn(deprecated)] on by default

As making the suggested change produces this warning instead:

warning: unused or unknown feature, #[warn(unused_features)] on by default

...the reference to #![feature(collections)] is removed as well.

This sample throws a warning in line 36 currently, which does not appear to be intended: 

```
warning: use of deprecated item: use `String::from` instead, #[warn(deprecated)] on by default
```
As making the suggested change produces this warning instead: 
```
warning: unused or unknown feature, #[warn(unused_features)] on by default
``` 
...the reference to `#![feature(collections)]` is removed as well.
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

steveklabnik added a commit that referenced this pull request Jun 19, 2015
std/str: Fix warning: deprecated item
@steveklabnik steveklabnik merged commit ae58bd6 into rust-lang:master Jun 19, 2015
@steveklabnik
Copy link
Contributor

Thanks!

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