about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-01-08 21:18:46 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-01-08 21:19:28 +0000
commiteb917ea24deeeb92ab76fcb215aac4c7a567644d (patch)
treea5e75bc8e25bb793fd283e3276c18829ed5c8817 /compiler/rustc_hir_analysis/src
parenta580b5c379b4fca50dfe5afc0fc0ce00921e4e00 (diff)
downloadrust-eb917ea24deeeb92ab76fcb215aac4c7a567644d.tar.gz
rust-eb917ea24deeeb92ab76fcb215aac4c7a567644d.zip
Remove some unnecessary `.into()` calls
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
-rw-r--r--compiler/rustc_hir_analysis/src/check/wfcheck.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/wfcheck.rs b/compiler/rustc_hir_analysis/src/check/wfcheck.rs
index 81a5e9ee90d..dd6adb17c5e 100644
--- a/compiler/rustc_hir_analysis/src/check/wfcheck.rs
+++ b/compiler/rustc_hir_analysis/src/check/wfcheck.rs
@@ -1120,7 +1120,7 @@ fn check_type_defn<'tcx>(
                     } else {
                         // Evaluate the constant proactively, to emit an error if the constant has
                         // an unconditional error. We only do so if the const has no type params.
-                        let _ = tcx.const_eval_poly(def_id.into());
+                        let _ = tcx.const_eval_poly(def_id);
                     }
                 }
                 let field_id = field.did.expect_local();