mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-23 13:28:48 +00:00

Use the `Align` type when parsing alignment attributes Use the `Align` type in `rustc_attr::parse_alignment`, removing the need to call `Align::from_bytes(...).unwrap()` later in the compilation process.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.