diff options
| author | bors <bors@rust-lang.org> | 2023-05-04 05:54:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-04 05:54:09 +0000 |
| commit | 6f8c0557e0b73c73a8a7163a15f4a5a3feca7d5c (patch) | |
| tree | fbb65379db25781d8f39e9086d8b03c37a06b504 /src/librustdoc/clean/auto_trait.rs | |
| parent | 129195f57c02c8a8e4cfc4b766d4ff7a3a837882 (diff) | |
| parent | 689721d3c57253c2e438727350caeaebf46d2336 (diff) | |
| download | rust-6f8c0557e0b73c73a8a7163a15f4a5a3feca7d5c.tar.gz rust-6f8c0557e0b73c73a8a7163a15f4a5a3feca7d5c.zip | |
Auto merge of #110806 - WaffleLapkin:unmkI, r=lcnr
Replace `tcx.mk_trait_ref` with `TraitRef::new` First step in implementing https://github.com/rust-lang/compiler-team/issues/616 r? `@lcnr`
Diffstat (limited to 'src/librustdoc/clean/auto_trait.rs')
| -rw-r--r-- | src/librustdoc/clean/auto_trait.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/auto_trait.rs b/src/librustdoc/clean/auto_trait.rs index 1b622905e1a..fb32b6ef1d3 100644 --- a/src/librustdoc/clean/auto_trait.rs +++ b/src/librustdoc/clean/auto_trait.rs @@ -44,7 +44,7 @@ where discard_positive_impl: bool, ) -> Option<Item> { let tcx = self.cx.tcx; - 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])); if !self.cx.generated_synthetics.insert((ty, trait_def_id)) { debug!("get_auto_trait_impl_for({:?}): already generated, aborting", trait_ref); return None; |
