Skip to content

Commit 901afd8

Browse files
Only enable new solver if GCE
1 parent 0450ca4 commit 901afd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_ast_passes/src/feature_gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ fn check_incompatible_features(sess: &Session, features: &Features) {
636636
}
637637

638638
fn check_new_solver_banned_features(sess: &Session, features: &Features) {
639-
if !sess.opts.unstable_opts.next_solver.globally {
639+
if !sess.opts.unstable_opts.next_solver.globally && false {
640640
return;
641641
}
642642

compiler/rustc_middle/src/ty/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3335,7 +3335,7 @@ impl<'tcx> TyCtxt<'tcx> {
33353335
}
33363336

33373337
pub fn next_trait_solver_globally(self) -> bool {
3338-
self.sess.opts.unstable_opts.next_solver.globally
3338+
self.sess.opts.unstable_opts.next_solver.globally && !self.features().generic_const_exprs()
33393339
}
33403340

33413341
pub fn next_trait_solver_in_coherence(self) -> bool {

0 commit comments

Comments
 (0)