Skip to content

Commit

Permalink
Auto merge of rust-lang#132384 - matthiaskrgr:rollup-0ze5wc4, r=matth…
Browse files Browse the repository at this point in the history
…iaskrgr

Rollup of 4 pull requests

Successful merges:

 - rust-lang#132347 (Remove `ValueAnalysis` and `ValueAnalysisWrapper`.)
 - rust-lang#132365 (pass `RUSTC_HOST_FLAGS` at once without the for loop)
 - rust-lang#132366 (Do not enforce `~const` constness effects in typeck if `rustc_do_not_const_check`)
 - rust-lang#132376 (Annotate `input` reference tests)

r? `@ghost`
`@rustbot` modify labels: rollup
  • Loading branch information
bors committed Oct 31, 2024
2 parents c8b8378 + 49a76c1 commit 4d296ea
Show file tree
Hide file tree
Showing 28 changed files with 355 additions and 511 deletions.
5 changes: 5 additions & 0 deletions compiler/rustc_hir_typeck/src/callee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,11 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
return;
}

// If we have `rustc_do_not_const_check`, do not check `~const` bounds.
if self.tcx.has_attr(self.body_id, sym::rustc_do_not_const_check) {
return;
}

let host = match self.tcx.hir().body_const_context(self.body_id) {
Some(hir::ConstContext::Const { .. } | hir::ConstContext::Static(_)) => {
ty::BoundConstness::Const
Expand Down
Loading

0 comments on commit 4d296ea

Please sign in to comment.