Rollup merge of #127239 - RalfJung:big-endian, r=Nadrieril
remove unnecessary ignore-endian-big from stack-overflow-trait-infer … Follow-up to [this](https://github.com/rust-lang/rust/pull/122895#discussion_r1632206218) discussion
This commit is contained in:
commit
ce016f1a3f
3 changed files with 5 additions and 6 deletions
|
|
@ -3,14 +3,14 @@ error[E0391]: cycle detected when computing layout of `Foo`
|
|||
= note: ...which requires computing layout of `<&'static Foo as core::ops::deref::Deref>::Target`...
|
||||
= note: ...which again requires computing layout of `Foo`, completing the cycle
|
||||
note: cycle used when const-evaluating + checking `_`
|
||||
--> $DIR/stack-overflow-trait-infer-98842.rs:15:1
|
||||
--> $DIR/stack-overflow-trait-infer-98842.rs:14:1
|
||||
|
|
||||
LL | const _: *const Foo = 0 as _;
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
|
||||
|
||||
error[E0080]: evaluation of constant value failed
|
||||
--> $DIR/stack-overflow-trait-infer-98842.rs:15:1
|
||||
--> $DIR/stack-overflow-trait-infer-98842.rs:14:1
|
||||
|
|
||||
LL | const _: *const Foo = 0 as _;
|
||||
| ^^^^^^^^^^^^^^^^^^^ a cycle occurred during layout computation
|
||||
|
|
|
|||
|
|
@ -3,14 +3,14 @@ error[E0391]: cycle detected when computing layout of `Foo`
|
|||
= note: ...which requires computing layout of `<&'static Foo as core::ops::deref::Deref>::Target`...
|
||||
= note: ...which again requires computing layout of `Foo`, completing the cycle
|
||||
note: cycle used when const-evaluating + checking `_`
|
||||
--> $DIR/stack-overflow-trait-infer-98842.rs:15:1
|
||||
--> $DIR/stack-overflow-trait-infer-98842.rs:14:1
|
||||
|
|
||||
LL | const _: *const Foo = 0 as _;
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
|
||||
|
||||
error[E0080]: evaluation of constant value failed
|
||||
--> $DIR/stack-overflow-trait-infer-98842.rs:15:1
|
||||
--> $DIR/stack-overflow-trait-infer-98842.rs:14:1
|
||||
|
|
||||
LL | const _: *const Foo = 0 as _;
|
||||
| ^^^^^^^^^^^^^^^^^^^ a cycle occurred during layout computation
|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@
|
|||
//@ check-fail
|
||||
//@ edition:2021
|
||||
//@ stderr-per-bitwidth
|
||||
//@ ignore-endian-big
|
||||
//~^^^^^^ ERROR cycle detected when computing layout of `Foo`
|
||||
//~^^^^^ ERROR cycle detected when computing layout of `Foo`
|
||||
|
||||
// If the inner `Foo` is named through an associated type,
|
||||
// the "infinite size" error does not occur.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue