| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2025-09-06 | clean up some old const trait impl syntax | Nathaniel McCallum | -22/+11 | |
| 2025-08-10 | Constify remaining operators | ltdk | -19/+50 | |
| 2025-08-10 | Let forward_ref_* macros accept multiple attributes, and require attributes ↵ | ltdk | -13/+26 | |
| explicitly | ||||
| 2025-07-11 | fix const_ops tracking issue | Ralf Jung | -12/+12 | |
| 2025-07-04 | Make Rem const for floats | Kurt Heiritz (pseudo) | -1/+1 | |
| 2025-06-25 | Add Sub, Mul, Div, Rem as const_traits | Kurt Heiritz (pseudo) | -5/+19 | |
| 2025-05-17 | Switch library rustc_unimplemented to use `Self` and `This` | mejrs | -2/+2 | |
| 2025-02-27 | require trait impls to have matching const stabilities as the traits | Deadbeef | -0/+1 | |
| 2025-01-14 | Enforce syntactical stability of const traits in HIR | Michael Goulet | -0/+1 | |
| 2025-01-08 | update cfg(bootstrap) | Pietro Albini | -13/+1 | |
| 2024-11-21 | constify `Add` | Deadbeef | -0/+13 | |
| 2024-06-21 | Remove `feature(effects)` from the standard library | Deadbeef | -3/+1 | |
| 2024-04-10 | Add basic library support for `f16` and `f128` | Trevor Gross | -11/+11 | |
| Implement basic operation traits that get lowered to intrinsics. This includes codegen tests for implemented operations. | ||||
| 2024-02-04 | Reconstify `Add` | Deadbeef | -1/+3 | |
| 2024-01-05 | Replace some usage of `#[rustc_on_unimplemented]` with | Georg Semmler | -8/+8 | |
| `#[diagnostic::on_unimplemented]` This commit replaces those `#[rustc_on_unimplemented]` attributes with their equivalent `#[diagnostic::on_unimplemented]` where this is supported (So no filter or any extended option) | ||||
| 2023-11-24 | add track_caller for arith ops | bohan | -0/+10 | |
| 2023-05-07 | enable `rust_2018_idioms` for doctests | ozkanonur | -1/+1 | |
| Signed-off-by: ozkanonur <work@onurozkan.dev> | ||||
| 2023-04-16 | rm const traits in libcore | Deadbeef | -50/+26 | |
| 2023-02-04 | Fix #103320, add explanatory message for [#must_use] | yukang | -6/+12 | |
| 2023-01-30 | Improved wording of error messages of missing remainder implementations | Matthias Kaak | -2/+2 | |
| 2023-01-27 | Fixed confusement between mod and remainder | Matthias Kaak | -2/+2 | |
| 2022-09-16 | append_const_msg for std traits | Deadbeef | -31/+8 | |
| 2022-09-16 | Add more `const_trait` annotations | Deadbeef | -0/+9 | |
| 2022-09-16 | Add `const_trait`s | Deadbeef | -0/+2 | |
| 2022-01-26 | Add a minimal working `append_const_msg` argument | Deadbeef | -5/+30 | |
| 2021-10-22 | Added const versions of common numeric operations | AlexApps99 | -26/+39 | |
| # Conflicts: # library/core/src/lib.rs | ||||
| 2021-03-01 | Document panicking cases for integer remainder | Jim Turner | -3/+10 | |
| The panic when the right operand is `0` is expected, but the overflow-related panic (which occurs only for `MIN % -1`) is somewhat surprising for two reasons: a return value of `0` would be reasonable in this case, and, for most arithmetic operations, overflow results in panic only when `debug_assertions` is enabled. As a result, it's helpful to document this behavior. | ||||
| 2021-03-01 | Document panicking cases for integer division | Jim Turner | -3/+10 | |
| The panic on division by zero is expected, but the panic on overflow is somewhat surprising (since most arithmetic operations panic on overflow only when `debug_assertions` is enabled). As a result, it's helpful to document this behavior. | ||||
| 2020-10-17 | Improve wording of "cannot multiply" type error | Camelid | -2/+2 | |
| For example, if you had this code: fn foo(x: i32, y: f32) -> f32 { x * y } You would get this error: error[E0277]: cannot multiply `f32` to `i32` --> src/lib.rs:2:7 | 2 | x * y | ^ no implementation for `i32 * f32` | = help: the trait `Mul<f32>` is not implemented for `i32` However, that's not usually how people describe multiplication. People usually describe multiplication like how the division error words it: error[E0277]: cannot divide `i32` by `f32` --> src/lib.rs:2:7 | 2 | x / y | ^ no implementation for `i32 / f32` | = help: the trait `Div<f32>` is not implemented for `i32` So that's what this change does. It changes this: error[E0277]: cannot multiply `f32` to `i32` --> src/lib.rs:2:7 | 2 | x * y | ^ no implementation for `i32 * f32` | = help: the trait `Mul<f32>` is not implemented for `i32` To this: error[E0277]: cannot multiply `i32` by `f32` --> src/lib.rs:2:7 | 2 | x * y | ^ no implementation for `i32 * f32` | = help: the trait `Mul<f32>` is not implemented for `i32` | ||||
| 2020-09-23 | Use Self more in core in doc when possible | Alexis Bourget | -11/+11 | |
| 2020-09-10 | Add missing examples on core traits' method | Guillaume Gomez | -0/+77 | |
| 2020-07-27 | mv std libs to library/ | mark | -0/+900 | |
