Rollup merge of #78570 - sasurau4:test/check-pass-print-type-size, r=jyn514
Remove FIXME comment in print_type_sizes ui test suite ## Overview Helps with #62277 > The type sizes are likely only printed when the actual layout is computed. For generic types, this only happens during codegen. ref: https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Codegen.20process.20question/near/215836807 Some tests like `multiple_types.rs` are passed even if using `check-pass`. But tests should be agnostic to when the actual layout is computed. The `build-pass` is intentionally used for them. I remove FIXME comments.
This commit is contained in:
commit
834d761df2
@ -1,5 +1,5 @@
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// build-pass
|
||||
|
||||
// All of the types that occur in this function are uninteresting, in
|
||||
// that one cannot control the sizes of these types with the same sort
|
||||
|
@ -1,5 +1,5 @@
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// build-pass
|
||||
// ignore-pass
|
||||
// ^-- needed because `--pass check` does not emit the output needed.
|
||||
// FIXME: consider using an attribute instead of side-effects.
|
||||
|
@ -1,5 +1,5 @@
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// build-pass
|
||||
|
||||
// This file illustrates that when multiple structural types occur in
|
||||
// a function, every one of them is included in the output.
|
||||
|
@ -1,5 +1,5 @@
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// build-pass
|
||||
// ignore-pass
|
||||
// ^-- needed because `--pass check` does not emit the output needed.
|
||||
// FIXME: consider using an attribute instead of side-effects.
|
||||
|
@ -1,5 +1,5 @@
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// build-pass
|
||||
// ignore-pass
|
||||
// ^-- needed because `--pass check` does not emit the output needed.
|
||||
// FIXME: consider using an attribute instead of side-effects.
|
||||
|
@ -1,5 +1,5 @@
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// build-pass
|
||||
// ignore-pass
|
||||
// ^-- needed because `--pass check` does not emit the output needed.
|
||||
// FIXME: consider using an attribute instead of side-effects.
|
||||
|
@ -1,5 +1,5 @@
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// build-pass
|
||||
|
||||
// This file illustrates how padding is handled: alignment
|
||||
// requirements can lead to the introduction of padding, either before
|
||||
|
@ -1,5 +1,5 @@
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// build-pass
|
||||
// ignore-pass
|
||||
// ^-- needed because `--pass check` does not emit the output needed.
|
||||
// FIXME: consider using an attribute instead of side-effects.
|
||||
|
@ -1,5 +1,5 @@
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// build-pass
|
||||
|
||||
// This test makes sure that the tag is not grown for `repr(C)` or `repr(u8)`
|
||||
// variants (see https://github.com/rust-lang/rust/issues/50098 for the original bug).
|
||||
|
@ -1,5 +1,5 @@
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// build-pass
|
||||
// ignore-pass
|
||||
// ^-- needed because `--pass check` does not emit the output needed.
|
||||
// FIXME: consider using an attribute instead of side-effects.
|
||||
|
@ -1,5 +1,5 @@
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// build-pass
|
||||
|
||||
// This file illustrates two things:
|
||||
//
|
||||
|
@ -1,5 +1,5 @@
|
||||
// compile-flags: -Z print-type-sizes
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// build-pass
|
||||
// ignore-pass
|
||||
|
||||
// At one point, zero-sized fields such as those in this file were causing
|
||||
|
Loading…
x
Reference in New Issue
Block a user