Skip to content

Commit 8cbd2c8

Browse files
committed
Auto merge of #115398 - matthiaskrgr:rollup-88lj9gk, r=matthiaskrgr
Rollup of 3 pull requests Successful merges: - #115373 (Fix bors missing a commit when merging #115355) - #115378 (`ignore-cross-compile` remaining tests that run binaries) - #115393 (Make `termcolor` types public in `rustc_errors`) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 008c21c + 82675f6 commit 8cbd2c8

File tree

9 files changed

+9
-6
lines changed

9 files changed

+9
-6
lines changed

compiler/rustc_errors/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ use std::num::NonZeroUsize;
5555
use std::panic;
5656
use std::path::{Path, PathBuf};
5757

58-
use termcolor::{Color, ColorSpec};
58+
pub use termcolor::{Color, ColorSpec, WriteColor};
5959

6060
pub mod annotate_snippet_emitter_writer;
6161
mod diagnostic;

compiler/rustc_trait_selection/src/solve/search_graph/mod.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,9 @@ pub(super) struct SearchGraph<'tcx> {
5151

5252
impl<'tcx> SearchGraph<'tcx> {
5353
pub(super) fn new(tcx: TyCtxt<'tcx>, mode: SolverMode) -> SearchGraph<'tcx> {
54-
let local_overflow_limit = {
55-
let recursion_limit = tcx.recursion_limit().0;
56-
if recursion_limit == 0 { 0 } else { recursion_limit.ilog2() as usize }
57-
};
5854
Self {
5955
mode,
60-
local_overflow_limit,
56+
local_overflow_limit: tcx.recursion_limit().0.checked_ilog2().unwrap_or(0) as usize,
6157
stack: Default::default(),
6258
provisional_cache: ProvisionalCache::empty(),
6359
}

tests/run-make/pgo-branch-weights/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# needs-profiler-support
22
# ignore-windows-gnu
3+
# ignore-cross-compile
34

45
# FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works
56
# properly. Since we only have GCC on the CI ignore the test for now.

tests/run-make/pgo-gen-lto/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# needs-profiler-support
22
# ignore-windows-gnu
3+
# ignore-cross-compile
34

45
# FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works
56
# properly. Since we only have GCC on the CI ignore the test for now.

tests/run-make/pgo-gen/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# needs-profiler-support
22
# ignore-windows-gnu
3+
# ignore-cross-compile
34

45
# FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works
56
# properly. Since we only have GCC on the CI ignore the test for now.

tests/run-make/pgo-indirect-call-promotion/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# needs-profiler-support
22
# ignore-windows-gnu
3+
# ignore-cross-compile
34

45
# FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works
56
# properly. Since we only have GCC on the CI ignore the test for now.

tests/run-make/pgo-use/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# needs-profiler-support
22
# ignore-windows-gnu
3+
# ignore-cross-compile
34

45
# FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works
56
# properly. Since we only have GCC on the CI ignore the test for now.

tests/run-make/pointer-auth-link-with-c/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
include ../tools.mk
22

33
# only-aarch64
4+
# ignore-cross-compile
45

56
all:
67
$(COMPILE_OBJ) $(TMPDIR)/test.o test.c

tests/run-make/profile/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# needs-profiler-support
2+
# ignore-cross-compile
23

34
include ../tools.mk
45

0 commit comments

Comments
 (0)