Skip to content

Commit e17b9b6

Browse files
committed
Explain rustc_has_incoherent_inherent_impls is niche.
1 parent f1a7dd7 commit e17b9b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/expressions/method-call-expr.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ There are a few details not considered in this overview:
146146

147147
* The search for candidate methods will search more widely (potentially
148148
across crates) for certain [incoherent] types: that includes any of
149-
the "various simpler types" listed above, and a `dyn`, struct, enum, or
150-
foreign type if `rustc_has_incoherent_inherent_impls` is active.
149+
the "various simpler types" listed above; and any `dyn`, struct, enum, or
150+
foreign type where the standard-library-internal attribute
151+
`rustc_has_incoherent_inherent_impls` is active.
151152
* If there are multiple candidates from traits, they may in fact be
152153
identical, and the picking operation collapses them to a single pick to avoid
153154
reporting conflicts.

0 commit comments

Comments
 (0)