mirror of https://github.com/rust-lang/rust.git
Rollup merge of #115373 - lqd:come-on-bors, r=compiler-errors
Fix bors missing a commit when merging #115355 bors incorrectly merged an outdated version of PR #115355 (via rollup #115370): - it [recorded r+](https://github.com/rust-lang/rust/pull/115355#issuecomment-1698372365) as approving commit325b585259
, and thus merged the original revision7762ac7bb5
- but the branch at the time was at commiteefa07d69b
, so bors missed the `compiler/rustc_trait_selection/src/solve/search_graph/mod.rs` cleanup in commit0e1e964a34
😓 Thankfully the change that bors missed was small, and this new PR corrects the situation (as I'd rather avoid having confusing multiple merge commits of PR #115355 in the git history) r? ``@compiler-errors``
This commit is contained in:
commit
0b62835043
|
@ -51,13 +51,9 @@ pub(super) struct SearchGraph<'tcx> {
|
|||
|
||||
impl<'tcx> SearchGraph<'tcx> {
|
||||
pub(super) fn new(tcx: TyCtxt<'tcx>, mode: SolverMode) -> SearchGraph<'tcx> {
|
||||
let local_overflow_limit = {
|
||||
let recursion_limit = tcx.recursion_limit().0;
|
||||
if recursion_limit == 0 { 0 } else { recursion_limit.ilog2() as usize }
|
||||
};
|
||||
Self {
|
||||
mode,
|
||||
local_overflow_limit,
|
||||
local_overflow_limit: tcx.recursion_limit().0.checked_ilog2().unwrap_or(0) as usize,
|
||||
stack: Default::default(),
|
||||
provisional_cache: ProvisionalCache::empty(),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue