Skip to content

Commit b1d6270

Browse files
Rollup merge of rust-lang#107525 - RalfJung:pointee-info, r=eddyb
PointeeInfo is advisory only rust-lang#107248 fixed PointeeInfo being used in ways that don't actually work. Hopefully this comments helps avoid such issues in the future. Cc `@eddyb`
2 parents e478bf0 + c8e8d6e commit b1d6270

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_abi/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,8 @@ pub enum PointerKind {
14561456
UniqueOwned,
14571457
}
14581458

1459+
/// Note that this information is advisory only, and backends are free to ignore it.
1460+
/// It can only be used to encode potential optimizations, but no critical information.
14591461
#[derive(Copy, Clone, Debug)]
14601462
pub struct PointeeInfo {
14611463
pub size: Size,

0 commit comments

Comments
 (0)