Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dangling a carrot in front of a donkey. This commit includes manual merge conflict resolution changes from a rebase by @est31.
- Loading branch information
Showing
9 changed files
with
77 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#![allow(non_camel_case_types)] | ||
#![feature(i128_type)] | ||
|
||
#[cfg(stage0)] | ||
pub type i128 = i64; | ||
|
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
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,20 @@ | ||
fn test1() -> i128 { //~ ERROR 128-bit type is unstable | ||
0 | ||
} | ||
|
||
fn test1_2() -> u128 { //~ ERROR 128-bit type is unstable | ||
0 | ||
} | ||
|
||
fn test3() { | ||
let x: i128 = 0; //~ ERROR 128-bit type is unstable | ||
} | ||
|
||
fn test3_2() { | ||
let x: u128 = 0; //~ ERROR 128-bit type is unstable | ||
} | ||
|
||
#[repr(u128)] | ||
enum A { //~ ERROR 128-bit type is unstable | ||
A(u64) | ||
} |
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,8 @@ | ||
fn test2() { | ||
0i128; //~ ERROR 128-bit integers are not stable | ||
} | ||
|
||
fn test2_2() { | ||
0u128; //~ ERROR 128-bit integers are not stable | ||
} | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#![feature(i128_type)] | ||
|
||
fn main() { | ||
let x: i128 = -1; | ||
assert_eq!(0, !x); | ||
|
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