Skip to content

Commit

Permalink
Rollup merge of rust-lang#107525 - RalfJung:pointee-info, r=eddyb
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
GuillaumeGomez committed Jan 31, 2023
2 parents e478bf0 + c8e8d6e commit b1d6270
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_abi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b1d6270

Please sign in to comment.