mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-31 21:16:44 +00:00
Allow specifying alignment for functions Fixes #75072 This allows the user to specify alignment for functions, which can be useful for low level work where functions need to necessarily be aligned to a specific value. I believe the error cases not covered in the match are caught earlier based on my testing so I had them just return `None`.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.