Skip to content

Commit a571233

Browse files
authored
Rollup merge of rust-lang#82066 - matthewjasper:trait-ref-fix, r=jackh726
Ensure valid TraitRefs are created for GATs This fixes `ProjectionTy::trait_ref` to use the correct substs. Places that need all of the substs have been updated to not use `trait_ref`. r? ````@jackh726````
2 parents 76fb752 + eefdee2 commit a571233

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/ops/deref.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ pub trait Deref {
6464
/// The resulting type after dereferencing.
6565
#[stable(feature = "rust1", since = "1.0.0")]
6666
#[rustc_diagnostic_item = "deref_target"]
67+
#[cfg_attr(not(bootstrap), lang = "deref_target")]
6768
type Target: ?Sized;
6869

6970
/// Dereferences the value.

0 commit comments

Comments
 (0)