Skip to content

rustc_layout_scalar_valid_range_end does not affect niches  #15687

Closed
@Veykril

Description

@Veykril

Works properly has a niche of 1, while DoesNotWork has no niches even though it should

#[rustc_layout_scalar_valid_range_start(1)]
pub struct Works {
  private: u32,
}
#[rustc_layout_scalar_valid_range_end(0xFFFF_FF00)]
pub struct DoesNotWork {
  private: u32,
}

Metadata

Metadata

Assignees

Labels

A-tytype system / type inference / traits / method resolutionC-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions