rust/compiler/rustc_const_eval/src
bors 4e5fec2f1e Auto merge of #134757 - RalfJung:const_swap, r=scottmcm
stabilize const_swap

libs-api FCP passed in https://github.com/rust-lang/rust/issues/83163.

However, I only just realized that this actually involves an intrinsic. The intrinsic could be implemented entirely with existing stable const functionality, but we choose to make it a primitive to be able to detect more UB. So nominating for `@rust-lang/lang`  to make sure they are aware; I leave it up to them whether they want to FCP this.

While at it I also renamed the intrinsic to make the "nonoverlapping" constraint more clear.

Fixes #83163
2024-12-30 23:46:42 +00:00
..
check_consts Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
const_eval Spruce up the docs of several queries related to the type/trait system and const eval 2024-12-27 11:44:23 +01:00
interpret Auto merge of #134757 - RalfJung:const_swap, r=scottmcm 2024-12-30 23:46:42 +00:00
util Begin to implement type system layer of unsafe binders 2024-12-22 21:57:57 +00:00
errors.rs Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
lib.rs report UB when the niche value refers to the untagged variant 2024-11-30 18:26:30 +01:00