-
Couldn't load subscription status.
- Fork 13.9k
Add #[must_use] to to_value conversions #89794
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
Add #[must_use] to to_value conversions #89794
Conversation
This comment has been minimized.
This comment has been minimized.
b142b8f to
0cf84c8
Compare
|
For the methods that consume self, "without modifying the original" seems misleading. Perhaps something like "consume the value and return a new value, rather than modifying the original in-place"? |
|
The ones that take |
|
Fair enough. @bors r+ |
|
📌 Commit 0cf84c8 has been approved by |
…ions, r=joshtriplett Add #[must_use] to to_value conversions `NonNull<T>::cast` snuck in when I wasn't looking. What a scamp! Parent issue: rust-lang#89692 r? ``@joshtriplett``
…ions, r=joshtriplett Add #[must_use] to to_value conversions `NonNull<T>::cast` snuck in when I wasn't looking. What a scamp! Parent issue: rust-lang#89692 r? ```@joshtriplett```
Rollup of 12 pull requests Successful merges: - rust-lang#89768 (add some more testcases) - rust-lang#89777 (Edit explanation of test for nested type ascriptions) - rust-lang#89781 (Add missing words in `Infallible` docs) - rust-lang#89782 (Improve CJK font in rustdoc) - rust-lang#89794 (Add #[must_use] to to_value conversions) - rust-lang#89814 (Fix uppercase/lowercase error) - rust-lang#89816 (Fix invalid rules in .gitignore) - rust-lang#89817 (Add #[inline] to int log10 functions.) - rust-lang#89818 (Use Option::map_or instead of open coding it) - rust-lang#89828 (Fix config.toml overflow-checks options) - rust-lang#89840 (fix the stage0 tools config file path in `config.toml.example`) - rust-lang#89845 (Add davidtwco to the `.mailmap`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
NonNull<T>::castsnuck in when I wasn't looking. What a scamp!Parent issue: #89692
r? @joshtriplett