From c8e8d6e7f667edbdf5ca97afe2ec877fd9eff480 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 31 Jan 2023 18:49:03 +0100 Subject: [PATCH] PointeeInfo is advisory only --- compiler/rustc_abi/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/rustc_abi/src/lib.rs b/compiler/rustc_abi/src/lib.rs index fe65ad9c6cb0e..5af6206c0bb80 100644 --- a/compiler/rustc_abi/src/lib.rs +++ b/compiler/rustc_abi/src/lib.rs @@ -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,