Skip to content

Commit 2bc1fa0

Browse files
committed
Propagate error
1 parent ce67440 commit 2bc1fa0

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_next_trait_solver/src/solve

1 file changed

+1
-1
lines changed

compiler/rustc_next_trait_solver/src/solve/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ where
111111
opaque_types_jank: OpaqueTypesJank::AllGood,
112112
});
113113
}
114-
Err(Err(NoSolution)) => ty,
114+
Err(Err(NoSolution)) => return Err(NoSolution),
115115
};
116116

117117
self.register_ty_outlives(ty, lt);

0 commit comments

Comments
 (0)