Skip to content

Commit 3600695

Browse files
spastorinomatthewjasper
authored andcommitted
Simplify pattern
1 parent ae9677c commit 3600695

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_codegen_ssa/mir/constant.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1414
constant: &mir::Constant<'tcx>,
1515
) -> Result<&'tcx ty::Const<'tcx>, ErrorHandled> {
1616
match constant.literal.val {
17-
ty::ConstKind::Unevaluated(def_id, ref substs) => {
18-
let substs = self.monomorphize(substs);
17+
ty::ConstKind::Unevaluated(def_id, substs) => {
18+
let substs = self.monomorphize(&substs);
1919
let instance = ty::Instance::resolve(
2020
self.cx.tcx(), ty::ParamEnv::reveal_all(), def_id, substs,
2121
).unwrap();

0 commit comments

Comments
 (0)