about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2023-06-16 15:21:34 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2023-06-16 16:03:19 -0700
commit3ec4eeddefcf022af3aafab708d36830f40d8a47 (patch)
treed315d11dfcd3acad6673f5ad2d66e098aea45fab /compiler/rustc_const_eval/src
parent6bba061467f7c2cab04b262b95eb67bf89265587 (diff)
downloadrust-3ec4eeddefcf022af3aafab708d36830f40d8a47.tar.gz
rust-3ec4eeddefcf022af3aafab708d36830f40d8a47.zip
[libs] Simplify `unchecked_{shl,shr}`
There's no need for the `const_eval_select` dance here.  And while I originally wrote the `.try_into().unwrap_unchecked()` implementation here, it's kinda a mess in MIR -- this new one is substantially simpler, as shown by the old one being above the inlining threshold but the new one being below it.
Diffstat (limited to 'compiler/rustc_const_eval/src')
0 files changed, 0 insertions, 0 deletions