Rollup merge of #107525 - RalfJung:pointee-info, r=eddyb

PointeeInfo is advisory only

https://github.com/rust-lang/rust/pull/107248 fixed PointeeInfo being used in ways that don't actually work. Hopefully this comments helps avoid such issues in the future.

Cc ``@eddyb``
This commit is contained in:
Guillaume Gomez 2023-01-31 23:38:54 +01:00 committed by GitHub
commit 7e6fc82951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1456,6 +1456,8 @@ pub enum PointerKind {
UniqueOwned,
}
/// Note that this information is advisory only, and backends are free to ignore it.
/// It can only be used to encode potential optimizations, but no critical information.
#[derive(Copy, Clone, Debug)]
pub struct PointeeInfo {
pub size: Size,