Ixrec / rust-orphan-rules

An unofficial, experimental place for documenting and gathering feedback on the design problems around Rust's orphan rules
Apache License 2.0
194 stars 3 forks source link

Named impls #14

Open Ixrec opened 6 years ago

Ixrec commented 6 years ago

Sometimes it's suggested that impls could have names, such that they have to be explicitly imported by name before they have any effect.

This is not a viable solution for orphan rule conflicts because it's unsound unless it's pure sugar, but that's not at all obvious to most people so it's worth noting that explicitly. In fact, Rust used to have named impls but removed them long before 1.0.