File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
compiler/rustc_hir_typeck/src
tests/ui/rfcs/rfc-2632-const-trait-impl/effects Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ impl<'tcx> FnCtxt<'_, 'tcx> {
2424 self . fulfillment_cx. borrow_mut( ) . pending_obligations( )
2525 ) ;
2626
27- let fallback_occured = self . fallback_types ( ) || self . fallback_effects ( ) ;
27+ let fallback_occured = self . fallback_types ( ) | self . fallback_effects ( ) ;
2828
2929 if !fallback_occured {
3030 return ;
Original file line number Diff line number Diff line change 11// check-pass
22
3- #![ feature( const_trait_impl , effects) ]
3+ #![ feature( effects) ]
44
55pub const fn owo ( ) { }
66
77fn main ( ) {
8+ // make sure falling back ty/int vars doesn't cause const fallback to be skipped...
9+ // See issue: 115791.
10+ let _ = 1 ;
11+ if false {
12+ let x = panic ! ( ) ;
13+ }
14+
815 let _ = owo;
916}
You can’t perform that action at this time.
0 commit comments