This is currently true and required by the IntoProxied trait. In Rust all type parameters are explicitly marked `Sized`, except for `Self` [1]. By marking `Proxied` as `Sized` we can write `IntoProxied<Self>` in generic code without having to add 'where Self: Sized` clauses. An implication of this change is that Proxied can no longer be used from a trait object i.e. `let x: dyn &Proxied = &foo` will not compile. We are not anticipating such use cases at this point. [1] https://doc.rust-lang.org/std/marker/trait.Sized.html PiperOrigin-RevId: 649010900pull/17310/head
parent
64912c50cb
commit
73db255168
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue