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.
2 parents dd08360 + a956b56 commit 959736dCopy full SHA for 959736d
1 file changed
compiler/rustc_hir_typeck/src/method/probe.rs
@@ -190,8 +190,8 @@ impl PickConstraintsForShadowed {
190
// An item never shadows itself
191
candidate.item.def_id != self.def_id
192
// and we're only concerned about inherent impls doing the shadowing.
193
- // Shadowing can only occur if the shadowed is further along
194
- // the Receiver dereferencing chain than the shadowed.
+ // Shadowing can only occur if the impl being shadowed is further along
+ // the Receiver dereferencing chain than the impl doing the shadowing.
195
&& match candidate.kind {
196
CandidateKind::InherentImplCandidate { receiver_steps, .. } => match self.receiver_steps {
197
Some(shadowed_receiver_steps) => receiver_steps > shadowed_receiver_steps,
0 commit comments