diff options
| author | Michael Goulet <michael@errs.io> | 2025-06-08 22:40:40 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-06-08 22:40:44 -0400 |
| commit | d2afab4d60d393bcaead85b051a33b8fddeaf5a6 (patch) | |
| tree | 1a241e17e50747589fce7a7c52284c878d407faa /compiler/rustc_const_eval/src/check_consts/check.rs | |
| parent | 6ccd4476036edfce364e6271f9e190ec7a2a1ff5 (diff) | |
| download | rust-d2afab4d60d393bcaead85b051a33b8fddeaf5a6.tar.gz rust-d2afab4d60d393bcaead85b051a33b8fddeaf5a6.zip | |
Dont make ObligationCtxts with diagnostics unnecessarily
Diffstat (limited to 'compiler/rustc_const_eval/src/check_consts/check.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/check_consts/check.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/check.rs b/compiler/rustc_const_eval/src/check_consts/check.rs index 6167f8cd4b5..9719d405259 100644 --- a/compiler/rustc_const_eval/src/check_consts/check.rs +++ b/compiler/rustc_const_eval/src/check_consts/check.rs @@ -395,7 +395,7 @@ impl<'mir, 'tcx> Checker<'mir, 'tcx> { } let (infcx, param_env) = tcx.infer_ctxt().build_with_typing_env(self.body.typing_env(tcx)); - let ocx = ObligationCtxt::new_with_diagnostics(&infcx); + let ocx = ObligationCtxt::new(&infcx); let body_id = self.body.source.def_id().expect_local(); let host_polarity = match self.const_kind() { |
