diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-01-08 21:18:46 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-01-08 21:19:28 +0000 |
| commit | eb917ea24deeeb92ab76fcb215aac4c7a567644d (patch) | |
| tree | a5e75bc8e25bb793fd283e3276c18829ed5c8817 /compiler/rustc_hir_analysis/src | |
| parent | a580b5c379b4fca50dfe5afc0fc0ce00921e4e00 (diff) | |
| download | rust-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.rs | 2 |
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(); |
