We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c40a7f1 commit e36c186Copy full SHA for e36c186
src/librustc_trans/mir/constant.rs
@@ -82,7 +82,7 @@ impl<'tcx> Const<'tcx> {
82
},
83
ConstVal::Integral(Infer(v)) => C_integral(llty, v as u64, false),
84
ConstVal::Integral(InferSigned(v)) => C_integral(llty, v as u64, true),
85
- ConstVal::Str(ref v) => C_str_slice(ccx, v.clone()),
+ ConstVal::Str(v) => C_str_slice(ccx, v),
86
ConstVal::ByteStr(ref v) => consts::addr_of(ccx, C_bytes(ccx, v), 1, "byte_str"),
87
ConstVal::Struct(did, mut field_values) => {
88
let repr = adt::represent_type(ccx, ty);
0 commit comments