-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librustc: Bump the offset when translating const structs. Closes #6352.
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
enum Foo { | ||
IntVal(i32), | ||
Int64Val(i64) | ||
} | ||
|
||
struct Bar { | ||
i: i32, | ||
v: Foo | ||
} | ||
|
||
static bar: Bar = Bar { i: 0, v: IntVal(0) }; | ||
|
||
fn main() {} | ||
|
40b4557
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from pcwalton
at pcwalton@40b4557
40b4557
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging pcwalton/rust/issue-6352 = 40b4557 into auto
40b4557
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pcwalton/rust/issue-6352 = 40b4557 merged ok, testing candidate = 6fcb483
40b4557
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
http://buildbot.rust-lang.org/builders/auto-linux/builds/1508
http://buildbot.rust-lang.org/builders/auto-win/builds/1503
http://buildbot.rust-lang.org/builders/auto-mac/builds/1522
40b4557
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding incoming to auto = 6fcb483