about summary refs log tree commit diff
path: root/src/test/ui/consts/const-int-conversion-rpass.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-19/+0
2020-06-10Migrate to numeric associated constsLzu Tao-2/+2
2020-02-22Stabilize const for integer {to,from}_{be,le,ne}_bytes methodsTrevor Spiteri-2/+0
All of these functions can be implemented simply and naturally as const functions, e.g. u32::from_le_bytes can be implemented as (bytes[0] as u32) | (bytes[1] as u32) << 8 | (bytes[2] as u32) << 16 | (bytes[3] as u32) << 24 So stabilizing the constness will not expose that internally they are implemented using transmute which is not const in stable.
2019-07-27tests: Move run-pass tests with naming conflicts to uiVadim Petrochenkov-0/+21