News for hackers. Stuff that matters.
Re:Mistakes with Rust smart pointers: when Deref goes wrong by spacesuitman2 on Monday July 10, 2023 @03:37AM (#36663179)
>Rather, it only checks for method names and where-clauses such as T: Trait. Types are only resolved in the confirm phase, at which point rustc would have already picked its method.

Not following here, the compiler iterates over the deref-chain and acquires a list of method names, but it also "checks for ... where-clauses", what does that mean? A quick look at the linked probe code indicates what we filter on Self traits and return value traits.

There are no comments on this comment yet.