]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/wfcheck.rs
Rollup merge of #99070 - tamird:update-tracking-issue, r=RalfJung
[rust.git] / compiler / rustc_typeck / src / check / wfcheck.rs
index 84a8cc431f4d7b5e7cdf1d193d1414c30361415a..f93f567fb2054587428512281db25006a51b830c 100644 (file)
@@ -1180,7 +1180,7 @@ fn check_item_type(tcx: TyCtxt<'_>, item_id: LocalDefId, ty_span: Span, allow_fo
             fcx.register_bound(
                 item_ty,
                 tcx.require_lang_item(LangItem::Sized, None),
-                traits::ObligationCause::new(ty_span, fcx.body_id, traits::MiscObligation),
+                traits::ObligationCause::new(ty_span, fcx.body_id, traits::WellFormed(None)),
             );
         }