You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose the Freeze trait again (unstably) and forbid implementing it manually
non-emoji version of rust-lang#121501
cc rust-lang#60715
This trait is useful for generic constants (associated consts of generic traits). See the test (`tests/ui/associated-consts/freeze.rs`) added in this PR for a usage example. The builtin `Freeze` trait is the only way to do it, users cannot work around this issue.
It's also a useful trait for building some very specific abstrations, as shown by the usage by the `zerocopy` crate: google/zerocopy#941
cc ```@RalfJung```
T-lang signed off on reexposing this unstably: rust-lang#121501 (comment)
0 commit comments