We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b0e9259 + 83d8e03 commit d04c987Copy full SHA for d04c987
compiler/rustc_infer/src/infer/outlives/obligations.rs
@@ -98,6 +98,10 @@ impl<'tcx> InferCtxt<'tcx> {
98
sub_region: Region<'tcx>,
99
cause: &ObligationCause<'tcx>,
100
) {
101
+ if sup_type.is_global() {
102
+ return;
103
+ }
104
+
105
debug!(?sup_type, ?sub_region, ?cause);
106
let origin = SubregionOrigin::from_obligation_cause(cause, || {
107
infer::RelateParamBound(
0 commit comments