Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/consteval.rs')
| -rw-r--r-- | crates/hir-ty/src/consteval.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/hir-ty/src/consteval.rs b/crates/hir-ty/src/consteval.rs index 80e7e05d76..87633ad4aa 100644 --- a/crates/hir-ty/src/consteval.rs +++ b/crates/hir-ty/src/consteval.rs @@ -16,7 +16,6 @@ use rustc_abi::Size; use rustc_apfloat::Float; use rustc_type_ir::inherent::IntoKind; use stdx::never; -use triomphe::Arc; use crate::{ LifetimeElisionKind, ParamEnvAndCrate, TyLoweringContext, @@ -300,7 +299,7 @@ pub(crate) fn eval_to_const<'db>(expr: ExprId, ctx: &mut InferenceContext<'_, 'd if let Some(body_owner) = ctx.owner.as_def_with_body() && let Ok(mir_body) = lower_body_to_mir(ctx.db, body_owner, Body::of(ctx.db, body_owner), &infer, expr) - && let Ok((Ok(result), _)) = interpret_mir(ctx.db, Arc::new(mir_body), true, None) + && let Ok((Ok(result), _)) = interpret_mir(ctx.db, &mir_body, true, None) { return Const::new_from_allocation( ctx.interner(), |