Skip to content

Commit 8d504ea

Browse files
committed
add naive_layout_of query
1 parent a00b74f commit 8d504ea

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/fail/layout_cycle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@error-in-other-file: a cycle occurred during layout computation
2-
//~^ ERROR: cycle detected when computing layout of
2+
//~^ ERROR: cycle detected when computing layout (naive) of
33

44
use std::mem;
55

tests/fail/layout_cycle.stderr

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
error[E0391]: cycle detected when computing layout of `S<S<()>>`
1+
error[E0391]: cycle detected when computing layout (naive) of `S<S<()>>`
22
|
3-
= note: ...which requires computing layout of `<S<()> as Tr>::I`...
4-
= note: ...which again requires computing layout of `S<S<()>>`, completing the cycle
3+
= note: ...which requires computing layout (naive) of `<S<()> as Tr>::I`...
4+
= note: ...which again requires computing layout (naive) of `S<S<()>>`, completing the cycle
5+
= note: cycle used when computing layout of `S<S<()>>`
56
= 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
67

78
error: post-monomorphization error: a cycle occurred during layout computation

0 commit comments

Comments
 (0)