about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/example/std_example.rs
diff options
context:
space:
mode:
authorGurinder Singh <frederick.the.fool@gmail.com>2024-04-30 15:17:47 +0530
committerGurinder Singh <frederick.the.fool@gmail.com>2024-04-30 15:17:47 +0530
commit741d40f327291404172b3f35377d8464688c2fe7 (patch)
treeae88dd54497b95ddf23d8963a0e2f9bf5f53170e /compiler/rustc_codegen_cranelift/example/std_example.rs
parentf9dca46218d4b8efa062aec4fd0820cbb4942aa2 (diff)
downloadrust-741d40f327291404172b3f35377d8464688c2fe7.tar.gz
rust-741d40f327291404172b3f35377d8464688c2fe7.zip
Remove redundant union check in `KnownPanicsLint const prop
because we are already marking unions `NoPropagation` in
`CanConstProp::check()`. That is enough to prevent any attempts
at const propagating unions and this second check is not needed.

Also improve a comment in `CanConstProp::check()`
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions