Files
rust/compiler
Adrian Taylor fae72074c6 Arbitrary self types v2: no deshadow pre feature.
The arbitrary self types v2 work introduces a check for shadowed
methods, whereby a method in some "outer" smart pointer type may called
in preference to a method in the inner referent. This is bad if the
outer pointer adds a method later, as it may change behavior, so we
ensure we error in this circumstance.

It was intended that this new shadowing detection system only comes into
play for users who enable the `arbitrary_self_types` feature (or of
course everyone later if it's stabilized). It was believed that the
new deshadowing code couldn't be reached without building the custom
smart pointers that `arbitrary_self_types` enables, and therefore there
was no risk of this code impacting existing users.

However, it turns out that cunning use of `Pin::get_ref` can cause
this type of shadowing error to be emitted now. This commit adds a test
for this case.
2024-12-20 12:29:00 +00:00
..
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 15:26:50 +09:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00
2024-12-15 19:18:46 +01:00