File tree Expand file tree Collapse file tree 9 files changed +9
-6
lines changed
rustc_trait_selection/src/solve/search_graph
pgo-indirect-call-promotion Expand file tree Collapse file tree 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;
5555use std:: panic;
5656use std:: path:: { Path , PathBuf } ;
5757
58- use termcolor:: { Color , ColorSpec } ;
58+ pub use termcolor:: { Color , ColorSpec , WriteColor } ;
5959
6060pub mod annotate_snippet_emitter_writer;
6161mod diagnostic;
Original file line number Diff line number Diff line change @@ -51,13 +51,9 @@ pub(super) struct SearchGraph<'tcx> {
5151
5252impl < ' 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 }
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 11include ../tools.mk
22
33# only-aarch64
4+ # ignore-cross-compile
45
56all :
67 $(COMPILE_OBJ ) $(TMPDIR ) /test.o test.c
Original file line number Diff line number Diff line change 11# needs-profiler-support
2+ # ignore-cross-compile
23
34include ../tools.mk
45
You can’t perform that action at this time.
0 commit comments