File tree 9 files changed +9
-6
lines changed
rustc_trait_selection/src/solve/search_graph
pgo-indirect-call-promotion
9 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ use std::num::NonZeroUsize;
55
55
use std:: panic;
56
56
use std:: path:: { Path , PathBuf } ;
57
57
58
- use termcolor:: { Color , ColorSpec } ;
58
+ pub use termcolor:: { Color , ColorSpec , WriteColor } ;
59
59
60
60
pub mod annotate_snippet_emitter_writer;
61
61
mod diagnostic;
Original file line number Diff line number Diff line change @@ -51,13 +51,9 @@ pub(super) struct SearchGraph<'tcx> {
51
51
52
52
impl < ' tcx > SearchGraph < ' tcx > {
53
53
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
- } ;
58
54
Self {
59
55
mode,
60
- local_overflow_limit,
56
+ local_overflow_limit : tcx . recursion_limit ( ) . 0 . checked_ilog2 ( ) . unwrap_or ( 0 ) as usize ,
61
57
stack : Default :: default ( ) ,
62
58
provisional_cache : ProvisionalCache :: empty ( ) ,
63
59
}
Original file line number Diff line number Diff line change 1
1
# needs-profiler-support
2
2
# ignore-windows-gnu
3
+ # ignore-cross-compile
3
4
4
5
# FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works
5
6
# properly. Since we only have GCC on the CI ignore the test for now.
Original file line number Diff line number Diff line change 1
1
# needs-profiler-support
2
2
# ignore-windows-gnu
3
+ # ignore-cross-compile
3
4
4
5
# FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works
5
6
# properly. Since we only have GCC on the CI ignore the test for now.
Original file line number Diff line number Diff line change 1
1
# needs-profiler-support
2
2
# ignore-windows-gnu
3
+ # ignore-cross-compile
3
4
4
5
# FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works
5
6
# properly. Since we only have GCC on the CI ignore the test for now.
Original file line number Diff line number Diff line change 1
1
# needs-profiler-support
2
2
# ignore-windows-gnu
3
+ # ignore-cross-compile
3
4
4
5
# FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works
5
6
# properly. Since we only have GCC on the CI ignore the test for now.
Original file line number Diff line number Diff line change 1
1
# needs-profiler-support
2
2
# ignore-windows-gnu
3
+ # ignore-cross-compile
3
4
4
5
# FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works
5
6
# properly. Since we only have GCC on the CI ignore the test for now.
Original file line number Diff line number Diff line change 1
1
include ../tools.mk
2
2
3
3
# only-aarch64
4
+ # ignore-cross-compile
4
5
5
6
all :
6
7
$(COMPILE_OBJ ) $(TMPDIR ) /test.o test.c
Original file line number Diff line number Diff line change 1
1
# needs-profiler-support
2
+ # ignore-cross-compile
2
3
3
4
include ../tools.mk
4
5
You can’t perform that action at this time.
0 commit comments