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.
1 parent 36ad75b commit 83d8e03Copy full SHA for 83d8e03
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