diff options
| author | bors <bors@rust-lang.org> | 2024-12-03 04:39:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-12-03 04:39:48 +0000 |
| commit | efdd9e802053caeb52103945df858e87f837e59a (patch) | |
| tree | ba16a8a78b5db2b43298849d14d711b20cc444b9 /compiler/rustc_interface/src | |
| parent | 41cbe3e4d1ef8de310fbbd77043082960def9446 (diff) | |
| parent | 01ff36a6b9e9134421c4e353ccbc904fdfe53be6 (diff) | |
| download | rust-efdd9e802053caeb52103945df858e87f837e59a.tar.gz rust-efdd9e802053caeb52103945df858e87f837e59a.zip | |
Auto merge of #133321 - compiler-errors:const-checker, r=wesleywiser
Get rid of HIR const checker As far as I can tell, the HIR const checker was implemented in https://github.com/rust-lang/rust/pull/66170 because we were not able to issue useful const error messages in the MIR const checker. This seems to have changed in the last 5 years, probably due to work like #90532. I've tweaked the diagnostics slightly and think the error messages have gotten *better* in fact. Thus I think the HIR const checker has reached the end of its usefulness, and we can retire it. cc `@RalfJung`
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 2905fe688b5..06e27ed8060 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -830,7 +830,6 @@ fn run_required_analyses(tcx: TyCtxt<'_>) { tcx.ensure().check_mod_attrs(module); tcx.ensure().check_mod_naked_functions(module); tcx.ensure().check_mod_unstable_api_usage(module); - tcx.ensure().check_mod_const_bodies(module); }); }, { |
