diff options
| author | Ralf Jung <post@ralfj.de> | 2022-07-05 17:38:46 -0400 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-07-09 07:27:29 -0400 |
| commit | ac265cdc19fe99b5909410893dd1583d6cb895fe (patch) | |
| tree | e3808875f4616db2cd84b500083f3a279cb10a43 /compiler/rustc_codegen_cranelift/src/constant.rs | |
| parent | 052651dd134c6016108c5fc50bfe4196012a6a8f (diff) | |
| download | rust-ac265cdc19fe99b5909410893dd1583d6cb895fe.tar.gz rust-ac265cdc19fe99b5909410893dd1583d6cb895fe.zip | |
review feedback
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/constant.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/constant.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/constant.rs b/compiler/rustc_codegen_cranelift/src/constant.rs index f90ad534970..0739061fdbd 100644 --- a/compiler/rustc_codegen_cranelift/src/constant.rs +++ b/compiler/rustc_codegen_cranelift/src/constant.rs @@ -167,7 +167,7 @@ pub(crate) fn codegen_const_value<'tcx>( } match const_val { - ConstValue::ZST => unreachable!(), // we already handles ZST above + ConstValue::Zst => unreachable!(), // we already handles ZST above ConstValue::Scalar(x) => match x { Scalar::Int(int) => { if fx.clif_type(layout.ty).is_some() { |
