SIGN IN SIGN UP
rust-lang / rust UNCLAIMED

Empowering everyone to build reliable and efficient software.

0 0 44 Rust

Rollup merge of #156565 - aerooneqq:delegation-self-type-ice, r=petrochenkov

delegation: emit error when self type is not specified and accessed

This PR adds error reporting when we create error self type if it was not specified. In most of the tests there were other errors, so this delayed bug was not triggered, but there are cases like `reuse Default::default;` (rust-lang/rust#156388) which does not emit other errors and those delayed bugs are triggered.

Part of rust-lang/rust#118212. Fixes rust-lang/rust#156388.

r? @petrochenkov
J
Jonathan Brouwer committed
04c0c8ddde5294999831c29c5afc7e6a5ddf7759
Committed by GitHub <noreply@github.com> on 5/15/2026, 6:11:47 PM