about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-09 09:05:10 +0100
committerGitHub <noreply@github.com>2025-01-09 09:05:10 +0100
commita1cadeab68e5eee105d9b5819bbb83264ae073fc (patch)
treeebe27c31562af958ca9a3a8a580203c1beb373b1 /compiler/rustc_hir_analysis/src
parentb593085a9ed610d041f6b7732026713b36b0da26 (diff)
parenteb917ea24deeeb92ab76fcb215aac4c7a567644d (diff)
downloadrust-a1cadeab68e5eee105d9b5819bbb83264ae073fc.tar.gz
rust-a1cadeab68e5eee105d9b5819bbb83264ae073fc.zip
Rollup merge of #135269 - estebank:unneeded-into, r=compiler-errors
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();