You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@huonw asked me to file this as a bug; I'm not sure how to describe the exact bug: if it is that collections::string::String appears in the results, that it's missing on the collections::string::String page, and/or that std::string::String should be in the results.
The text was updated successfully, but these errors were encountered:
… r=HKalbasi
Use anonymous lifetime where possible
Because anonymous lifetimes are *super* cool.
More seriously, I believe anonymous lifetimes, especially those in impl headers, reduce cognitive load to a certain extent because they usually signify that they are not relevant in the signature of the methods within (or that we can apply the usual lifetime elision rules even if they are relevant).
For example: http://doc.rust-lang.org/collections/?search=into_ascii_lower
includes a link to: http://doc.rust-lang.org/collections/string/struct.String.html#method.into_ascii_lower
Even though that anchor isn't present on that page. It is, however, on: http://doc.rust-lang.org/std/string/struct.String.html
@huonw asked me to file this as a bug; I'm not sure how to describe the exact bug: if it is that collections::string::String appears in the results, that it's missing on the collections::string::String page, and/or that std::string::String should be in the results.
The text was updated successfully, but these errors were encountered: