]> git.lizzy.rs Git - rust.git/commitdiff
PointeeInfo is advisory only
authorRalf Jung <post@ralfj.de>
Tue, 31 Jan 2023 17:49:03 +0000 (18:49 +0100)
committerRalf Jung <post@ralfj.de>
Tue, 31 Jan 2023 17:49:03 +0000 (18:49 +0100)
compiler/rustc_abi/src/lib.rs

index fe65ad9c6cb0e9bde1aaff6e4801ef2f2b8c964a..5af6206c0bb80dcabec6169f2ec00aabfd3ca146 100644 (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,