Skip to content

Commit 4d296ea

Browse files
committed
Auto merge of #132384 - matthiaskrgr:rollup-0ze5wc4, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - #132347 (Remove `ValueAnalysis` and `ValueAnalysisWrapper`.) - #132365 (pass `RUSTC_HOST_FLAGS` at once without the for loop) - #132366 (Do not enforce `~const` constness effects in typeck if `rustc_do_not_const_check`) - #132376 (Annotate `input` reference tests) r? `@ghost` `@rustbot` modify labels: rollup
2 parents c8b8378 + 49a76c1 commit 4d296ea

28 files changed

+355
-511
lines changed

Diff for: compiler/rustc_hir_typeck/src/callee.rs

+5
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,11 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
851851
return;
852852
}
853853

854+
// If we have `rustc_do_not_const_check`, do not check `~const` bounds.
855+
if self.tcx.has_attr(self.body_id, sym::rustc_do_not_const_check) {
856+
return;
857+
}
858+
854859
let host = match self.tcx.hir().body_const_context(self.body_id) {
855860
Some(hir::ConstContext::Const { .. } | hir::ConstContext::Static(_)) => {
856861
ty::BoundConstness::Const

0 commit comments

Comments
 (0)