about summary refs log tree commit diff
path: root/src/test/codegen/consts.rs
AgeCommit message (Collapse)AuthorLines
2016-03-17Add #[rustc_no_mir] to make tests pass with -Z orbit.Eduard Burtescu-0/+5
2015-10-10Set proper alignment on constantsBjörn Steinbrink-0/+66
For enum variants, the default alignment for a specific variant might be lower than the alignment of the enum type itself. In such cases we, for example, generate memcpy calls with an alignment that's higher than the alignment of the constant we copy from. To avoid that, we need to explicitly set the required alignment on constants. Fixes #28912.