X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=compiler%2Frustc_trait_selection%2Fsrc%2Ftraits%2Fwf.rs;h=de0ade64247dfa2638229bb92746f7ced70a8bf3;hb=7907385999b4a83d37ed31d334f3ed9ca02983a1;hp=943f36efc153fb7521f4bf7338239a145cc99f1f;hpb=3e1e9b486605da4fe25329acfd14042b0d6819f6;p=rust.git diff --git a/compiler/rustc_trait_selection/src/traits/wf.rs b/compiler/rustc_trait_selection/src/traits/wf.rs index 943f36efc15..de0ade64247 100644 --- a/compiler/rustc_trait_selection/src/traits/wf.rs +++ b/compiler/rustc_trait_selection/src/traits/wf.rs @@ -170,7 +170,7 @@ struct WfPredicates<'a, 'tcx> { /// predicates. This is a kind of hack to address #43784. The /// underlying problem in that issue was a trait structure like: /// -/// ``` +/// ```ignore (illustrative) /// trait Foo: Copy { } /// trait Bar: Foo { } /// impl Foo for T { } @@ -540,7 +540,7 @@ fn compute(&mut self, arg: GenericArg<'tcx>) { ty::Adt(def, substs) => { // WfNominalType - let obligations = self.nominal_obligations(def.did, substs); + let obligations = self.nominal_obligations(def.did(), substs); self.out.extend(obligations); }