diff options
| author | Gurinder Singh <frederick.the.fool@gmail.com> | 2024-04-30 15:17:47 +0530 |
|---|---|---|
| committer | Gurinder Singh <frederick.the.fool@gmail.com> | 2024-04-30 15:17:47 +0530 |
| commit | 741d40f327291404172b3f35377d8464688c2fe7 (patch) | |
| tree | ae88dd54497b95ddf23d8963a0e2f9bf5f53170e /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | f9dca46218d4b8efa062aec4fd0820cbb4942aa2 (diff) | |
| download | rust-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_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
