Skip to content

Commit 7ae6fb2

Browse files
committed
stabilize min_const_unsafe_fn -- revert const-size_of-cycle changes
1 parent bd1d5bc commit 7ae6fb2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/ui/consts/const-size_of-cycle.stderr

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ LL | bytes: [u8; std::mem::size_of::<Foo>()]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
note: ...which requires const-evaluating `Foo::bytes::{{constant}}`...
8+
--> $SRC_DIR/libcore/mem.rs:LL:COL
9+
|
10+
LL | intrinsics::size_of::<T>()
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
812
note: ...which requires computing layout of `Foo`...
913
note: ...which requires normalizing `ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: All }, value: [u8; _] }`...
1014
note: ...which requires const-evaluating + checking `Foo::bytes::{{constant}}`...

0 commit comments

Comments
 (0)