-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
fully deprecate the legacy integral modules #146882
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
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
|
I'm still kind of meh on these deprecations personally, but we should probably finish what was started. With that said, I'm strongly opposed to applying Once the |
438bfa3 to
7fa9c6a
Compare
This comment has been minimized.
This comment has been minimized.
|
I've removed the |
Perhaps! But the solution is definitely not to completely hide them.
Sure, same thing applies here. I don't know anything about how rustdoc's search result ranking works, but it seems reasonable that it could take deprecation status into account. |
|
@rfcbot merge |
|
Team member @BurntSushi has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
…mdev give a better example why `std` modules named like primitives are needed A small update to the `std` `lib.rs` introduction to replace mentions of `std::i32` (never needed) with `std::char` (sometimes needed). Related to rust-lang#146882.
…mdev give a better example why `std` modules named like primitives are needed A small update to the `std` `lib.rs` introduction to replace mentions of `std::i32` (never needed) with `std::char` (sometimes needed). Related to rust-lang#146882.
…mdev give a better example why `std` modules named like primitives are needed A small update to the `std` `lib.rs` introduction to replace mentions of `std::i32` (never needed) with `std::char` (sometimes needed). Related to rust-lang#146882.
give a better example why `std` modules named like primitives are needed A small update to the `std` `lib.rs` introduction to replace mentions of `std::i32` (never needed) with `std::char` (sometimes needed). Related to rust-lang/rust#146882.
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
It seems the doc(hidden) part got removed; please also update the PR description since it will permanently become part pf the git history. |
|
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
This might be a general area of improvement of Rust Docs. Move older deprecated modules/structs/etc into a hidden state (if anything was deprecated an automatic mention at top to 'optionally include them'), search would not be affected of course. When I say 'older' I literally mean code deprecated eg 12 months ago based on publishing date. |
7fa9c6a to
d7984d2
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment has been minimized.
This comment has been minimized.
d7984d2 to
6ae2c73
Compare
This comment has been minimized.
This comment has been minimized.
aab59e6 to
ddd855f
Compare
|
The Miri subtree was changed cc @rust-lang/miri |
This comment has been minimized.
This comment has been minimized.
ddd855f to
5ecd92b
Compare
|
Some changes occurred in src/tools/rustfmt cc @rust-lang/rustfmt |
This comment has been minimized.
This comment has been minimized.
5ecd92b to
6002eba
Compare
|
cc @Amanieu, @folkertdev, @sayantn |
This comment has been minimized.
This comment has been minimized.
6002eba to
e7e27f5
Compare
This comment has been minimized.
This comment has been minimized.
e7e27f5 to
bde8767
Compare
|
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
| macro_rules! fixed_atan2_cases{ | ||
| ($float_type:ident) => {{ | ||
| use std::$float_type::consts::{PI, FRAC_PI_2, FRAC_PI_4}; | ||
| use $float_type::{INFINITY, NEG_INFINITY}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does useing these no longer work? I'd prefer not to make the tests below more verbose with all these long paths.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, there is no good way for this. I added two constants instead for now, but I'm not happy with that solution either.
bde8767 to
1767156
Compare
This PR implements the last step of #68490: marking the
std::u8etc. modules and the constants instd::f32andstd::f64(but not the undeprecatedconstssubmodule) as fully deprecated.Revival of #107587 (cc @tgross35).
Closes: #68490
r? libs-api