-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Make Sub
, Mul
, Div
and Rem
const_traits
#143000
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
Conversation
This comment has been minimized.
This comment has been minimized.
cc @rust-lang/project-const-traits — I am unsure of the current status of const traits and whether this is wanted at this point in time |
Not sure either, but maybe #133999? cc @compiler-errors as you may know |
As far as I know @oli-obk had made a similar PR a few days ago that made |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'd say our general approach here is still "don't make things const unless necessary". The We're in the moment of transitioning to a new syntax and I'd want us to avoid introducing extra work/churn when a transition to new syntax comes eventually |
@fee1-dead should we proceed with unconstifying |
No, see #133237 |
I personally am fine with changing our policy and @compiler-errors and I talked about it a week or two ago. Since we don't have bootstrap issues anymore, we can just rip out const traits that are a problem during any changes of the implementation, so adding more isn't much of an issue |
Works for me. @bors r+ rollup |
Make `Sub`, `Mul`, `Div` and `Rem` `const_traits` Generally useful for implementation, like Add.
@rustbot label +F-const_trait_impl |
could you please squash into one commit? thanks |
I think it works now? |
@SciMind2460: 🔑 Insufficient privileges: Not in reviewers |
@SciMind2460: 🔑 Insufficient privileges: not in try users |
@bors r=jhpratt |
Make `Sub`, `Mul`, `Div` and `Rem` `const_traits` Generally useful for implementation, like Add.
Ah, then no concerns from me |
I may work on |
Rollup of 7 pull requests Successful merges: - #142146 (Withdraw the claim `extern "C-cmse-nonsecure-*"` always matches `extern "C"`) - #142200 (`tests/ui`: A New Order [8/N]) - #142724 (Add runtime check to avoid overwrite arg in `Diag`) - #142809 (Add PrintTAFn flag for targeted type analysis printing) - #142976 (Check CoerceUnsized impl validity before coercing) - #142992 (Convert some ABI tests to use `extern "rust-invalid"`) - #143000 (Make `Sub`, `Mul`, `Div` and `Rem` `const_traits`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #143000 - SciMind2460:master, r=jhpratt Make `Sub`, `Mul`, `Div` and `Rem` `const_traits` Generally useful for implementation, like Add.
Rollup of 7 pull requests Successful merges: - rust-lang/rust#142146 (Withdraw the claim `extern "C-cmse-nonsecure-*"` always matches `extern "C"`) - rust-lang/rust#142200 (`tests/ui`: A New Order [8/N]) - rust-lang/rust#142724 (Add runtime check to avoid overwrite arg in `Diag`) - rust-lang/rust#142809 (Add PrintTAFn flag for targeted type analysis printing) - rust-lang/rust#142976 (Check CoerceUnsized impl validity before coercing) - rust-lang/rust#142992 (Convert some ABI tests to use `extern "rust-invalid"`) - rust-lang/rust#143000 (Make `Sub`, `Mul`, `Div` and `Rem` `const_traits`) r? `@ghost` `@rustbot` modify labels: rollup
#90080
Generally useful for implementation, like Add.