File tree Expand file tree Collapse file tree 7 files changed +20
-0
lines changed Expand file tree Collapse file tree 7 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 11// compile-flags:--emit=metadata --error-format=json -Z emit-artifact-notifications
22// compile-pass
3+ // ignore-pass
4+ // ^-- needed because `--pass check` does not emit the output needed.
35
46// A very basic test for the emission of artifact notifications in JSON output.
57
Original file line number Diff line number Diff line change 11// compile-flags: -Z print-type-sizes
22// compile-pass
3+ // ignore-pass
4+ // ^-- needed because `--pass check` does not emit the output needed.
5+ // FIXME: consider using an attribute instead of side-effects.
36
47// This file illustrates how generics are handled: types have to be
58// monomorphized, in the MIR of the original function in which they
Original file line number Diff line number Diff line change 11// compile-flags: -Z print-type-sizes
22// compile-pass
3+ // ignore-pass
4+ // ^-- needed because `--pass check` does not emit the output needed.
5+ // FIXME: consider using an attribute instead of side-effects.
36
47// This file illustrates how niche-filling enums are handled,
58// modelled after cases like `Option<&u32>`, `Option<bool>` and such.
Original file line number Diff line number Diff line change 11// compile-flags: -Z print-type-sizes
22// compile-pass
3+ // ignore-pass
4+ // ^-- needed because `--pass check` does not emit the output needed.
5+ // FIXME: consider using an attribute instead of side-effects.
36
47// This file illustrates that when the same type occurs repeatedly
58// (even if multiple functions), it is only printed once in the
Original file line number Diff line number Diff line change 11// compile-flags: -Z print-type-sizes
22// compile-pass
3+ // ignore-pass
4+ // ^-- needed because `--pass check` does not emit the output needed.
5+ // FIXME: consider using an attribute instead of side-effects.
36
47// This file illustrates how packing is handled; it should cause
58// the elimination of padding that would normally be introduced
Original file line number Diff line number Diff line change 11// compile-flags: -Z print-type-sizes
22// compile-pass
3+ // ignore-pass
4+ // ^-- needed because `--pass check` does not emit the output needed.
5+ // FIXME: consider using an attribute instead of side-effects.
36
47// This file illustrates how padding is handled: alignment
58// requirements can lead to the introduction of padding, either before
Original file line number Diff line number Diff line change 11// compile-flags: -Z print-type-sizes
22// compile-pass
3+ // ignore-pass
4+ // ^-- needed because `--pass check` does not emit the output needed.
5+ // FIXME: consider using an attribute instead of side-effects.
36
47#![ feature( never_type) ]
58#![ feature( start) ]
You can’t perform that action at this time.
0 commit comments