comment about transmute_undefined_repr in nursery

This commit is contained in:
Manish Goregaokar 2022-03-02 09:54:50 -08:00 committed by flip1995
parent 14f3d05939
commit 78547b1716
No known key found for this signature in database
GPG key ID: 1CA0DF2AF59D68A5

View file

@ -364,6 +364,10 @@ declare_clippy_lint! {
/// ### Why is this bad?
/// The results of such a transmute are not defined.
///
/// ### Known problems
/// This lint has had multiple problems in the past and was moved to `nursery`. See issue
/// [#8496](https://github.com/rust-lang/rust-clippy/issues/8496) for more details.
///
/// ### Example
/// ```rust
/// struct Foo<T>(u32, T);