-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
DefineOpaqueTypes::No in UFC Self resolution #121404
Copy link
Copy link
Closed
Labels
A-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.
Metadata
Metadata
Assignees
Labels
A-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.
Type
Fields
Give feedbackNo fields configured for issues without a type.
in
rust/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs
Line 1452 in 1d447a9
self_tyarg ofinstantiate_value_pathisNone, or there are no generic parameters on the self type, so it gets inference variables which end up working out fine.As an example:
the
Foo::method2(x);works fine, none of the others do, and none of them have aself_tyset here either.Wrapping the types in
<>does not have an effect, even if the code seems to hint at that:rust/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs
Line 1150 in 1d447a9
any ideas @compiler-errors
cc #121394