mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
e1be0d2e2a
This removes variance information from some diagnostics. However, that variance information is not actually relevant here. Casting `*const dyn Cat<'a>` to `*const S<dyn Cat<'static>>` is an error regardless of whether `S` requires its argument to be invariant. Wide-pointer casts always require the trait object arguments to be invariant.