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.
ty::TraitRef::new
1 parent 8f7fe4a commit f0dd95cCopy full SHA for f0dd95c
src/librustdoc/clean/auto_trait.rs
@@ -44,7 +44,7 @@ where
44
discard_positive_impl: bool,
45
) -> Option<Item> {
46
let tcx = self.cx.tcx;
47
- let trait_ref = ty::Binder::dummy(tcx.mk_trait_ref(trait_def_id, [ty]));
+ let trait_ref = ty::Binder::dummy(ty::TraitRef::new(tcx, trait_def_id, [ty]));
48
if !self.cx.generated_synthetics.insert((ty, trait_def_id)) {
49
debug!("get_auto_trait_impl_for({:?}): already generated, aborting", trait_ref);
50
return None;
0 commit comments