Open nikic opened 3 weeks ago
cc @lu-zero
The intrinsics document name those parameters a
, b
, c
, r
, I can rename the associated types, but the diagnostic is digging very deep to hit that, would be good to add a knob to prevent it from going that far by default anyway?
Yes, I think the levenshtein algorithm needs tuning.
Which PowerPC target triplet is this? I observed a high increase of testsuite failures on powerpc-unknown-linux-gnu
after #118709.
Edit: I have filed https://github.com/rust-lang/rust/issues/126989 for this.
There are a number of tests that fail on PowerPC, because the emit an additional "there is a similarly named associated type" note. This happens for tests where an unknown single-character associated type is used.
The reason this only happens on PowerPC is, apparently, that
core::core_arch::powerpc::altivec::sealed::VectorRl
happens to define a single-character associated type, which is considered "similar" to any other single character type.I'm not sure what the best fix for this is -- adjust tests to use longer names? Adjust VectorRl::B to use a longer name? Make the note less aggressive?