about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2018-12-22 21:06:32 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2018-12-23 10:29:38 +0100
commit7ae6fb215250d7515cc1ff7545c37d589104eda0 (patch)
tree0dd15b8a9668e68cd102e039c6fb12d692a0f633 /src/test/ui
parentbd1d5bc629ef43eb1574c0904b024bc0f9666616 (diff)
downloadrust-7ae6fb215250d7515cc1ff7545c37d589104eda0.tar.gz
rust-7ae6fb215250d7515cc1ff7545c37d589104eda0.zip
stabilize min_const_unsafe_fn -- revert const-size_of-cycle changes
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/consts/const-size_of-cycle.stderr4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/consts/const-size_of-cycle.stderr b/src/test/ui/consts/const-size_of-cycle.stderr
index 68f81f408f7..e824657f8af 100644
--- a/src/test/ui/consts/const-size_of-cycle.stderr
+++ b/src/test/ui/consts/const-size_of-cycle.stderr
@@ -5,6 +5,10 @@ LL |     bytes: [u8; std::mem::size_of::<Foo>()]
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: ...which requires const-evaluating `Foo::bytes::{{constant}}`...
+  --> $SRC_DIR/libcore/mem.rs:LL:COL
+   |
+LL |     intrinsics::size_of::<T>()
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
 note: ...which requires computing layout of `Foo`...
 note: ...which requires normalizing `ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: All }, value: [u8; _] }`...
 note: ...which requires const-evaluating + checking `Foo::bytes::{{constant}}`...