Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
76128c3
Update unicode scripts for the current coding style
cuviper Jul 12, 2019
de1e489
Regenerate character tables for Unicode 12.1
cuviper Jul 12, 2019
d30b36e
state also in the intro that UnsafeCell has no effect on &mut
RalfJung Jul 16, 2019
f22bc2d
Suggest trait bound on type parameter when it is unconstrained
estebank Jul 17, 2019
e1e0df8
Remove uses of mem::uninitialized in std::sys::cloudabi
nathanwhit Jul 22, 2019
82dd54b
Modify CloudABI ReentrantMutex to use MaybeUninit
nathanwhit Jul 22, 2019
0ac6afa
Cleanup std::sys::cloudabi
nathanwhit Jul 23, 2019
b70f217
Use raw pointers in std::sys::cloudabi when passing MaybeUninit values
nathanwhit Jul 23, 2019
2083a12
Normalize use of backticks in compiler messages for libsyntax/*
Jul 23, 2019
ca8420c
Normalize use of backticks in compiler messages for doc
Jul 23, 2019
e26e674
Always emit trailing slash error
estebank Jul 23, 2019
2e193f7
Add test self-in-enum-definition
Centril Jul 23, 2019
c0420b1
do not use InterpError::description outside librustc::mir
RalfJung Jul 24, 2019
3694d17
kill InterpError::description
RalfJung Jul 24, 2019
495f950
use PanicMessage type for MIR assertion errors
RalfJung Jul 24, 2019
a44f43e
Fix typo in mem::uninitialized doc
Smibu Jul 24, 2019
7fdfe8b
Refer to #50072 re. hack.
Centril Jul 24, 2019
18551e7
fix unused import
RalfJung Jul 24, 2019
ff18786
Apply suggestions from code review
RalfJung Jul 24, 2019
21caaba
Rollup merge of #62641 - cuviper:unicode-12.1, r=matklad
Centril Jul 24, 2019
a7d9939
Rollup merge of #62716 - RalfJung:unsafe-cell, r=Centril
Centril Jul 24, 2019
efdcce1
Rollup merge of #62738 - nathanwhit:fix_mem_uninit_cloudabi, r=RalfJung
Centril Jul 24, 2019
e933f54
Rollup merge of #62772 - estebank:trait-bound, r=matthewjasper
Centril Jul 24, 2019
5c8dfd5
Rollup merge of #62890 - fakenine:normalize_use_of_backticks_compiler…
Centril Jul 24, 2019
52247b2
Rollup merge of #62905 - fakenine:normalize_use_of_backticks_compiler…
Centril Jul 24, 2019
92aff0a
Rollup merge of #62916 - Centril:self-in-enum-def, r=oli-obk
Centril Jul 24, 2019
c44e29b
Rollup merge of #62917 - estebank:trailing-slash, r=matklad
Centril Jul 24, 2019
0466237
Rollup merge of #62926 - Smibu:fix-typo, r=jonas-schievink
Centril Jul 24, 2019
e27927d
Rollup merge of #62927 - RalfJung:panic, r=oli-obk
Centril Jul 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#[repr(u8)]
enum Alpha {
V1 = 41,
V2 = Self::V1 as u8 + 1, // OK; See #50072.
V3 = Self::V1 {} as u8 + 2, //~ ERROR cycle detected when const-evaluating
}

fn main() {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
error[E0391]: cycle detected when const-evaluating + checking `Alpha::V3::{{constant}}#0`
--> $DIR/self-in-enum-definition.rs:5:10
|
LL | V3 = Self::V1 {} as u8 + 2,
| ^^^^^^^^
|
note: ...which requires const-evaluating `Alpha::V3::{{constant}}#0`...
--> $DIR/self-in-enum-definition.rs:5:10
|
LL | V3 = Self::V1 {} as u8 + 2,
| ^^^^^^^^
= note: ...which requires computing layout of `Alpha`...
= note: ...which again requires const-evaluating + checking `Alpha::V3::{{constant}}#0`, completing the cycle
note: cycle used when collecting item types in top-level module
--> $DIR/self-in-enum-definition.rs:1:1
|
LL | / #[repr(u8)]
LL | | enum Alpha {
LL | | V1 = 41,
LL | | V2 = Self::V1 as u8 + 1, // OK; See #50072.
... |
LL | |
LL | | fn main() {}
| |____________^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0391`.