-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update f16 and f128 tests to run on all editions
Reproduce the bug from <#123282> that indicates this feature gate hits edition-dependent resolution paths.
- Loading branch information
Showing
12 changed files
with
374 additions
and
10 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,53 @@ | ||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:11:10 | ||
| | ||
LL | const A: f128 = 10.0; | ||
| ^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:14:12 | ||
| | ||
LL | let a: f128 = 100.0; | ||
| ^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:19:11 | ||
| | ||
LL | fn foo(a: f128) {} | ||
| ^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:22:8 | ||
| | ||
LL | a: f128, | ||
| ^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:15:13 | ||
| | ||
LL | let b = 0.0f128; | ||
| ^^^^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error: aborting due to 5 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0658`. |
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,53 @@ | ||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:11:10 | ||
| | ||
LL | const A: f128 = 10.0; | ||
| ^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:14:12 | ||
| | ||
LL | let a: f128 = 100.0; | ||
| ^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:19:11 | ||
| | ||
LL | fn foo(a: f128) {} | ||
| ^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:22:8 | ||
| | ||
LL | a: f128, | ||
| ^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:15:13 | ||
| | ||
LL | let b = 0.0f128; | ||
| ^^^^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error: aborting due to 5 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0658`. |
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,53 @@ | ||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:11:10 | ||
| | ||
LL | const A: f128 = 10.0; | ||
| ^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:14:12 | ||
| | ||
LL | let a: f128 = 100.0; | ||
| ^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:19:11 | ||
| | ||
LL | fn foo(a: f128) {} | ||
| ^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:22:8 | ||
| | ||
LL | a: f128, | ||
| ^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:15:13 | ||
| | ||
LL | let b = 0.0f128; | ||
| ^^^^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f128)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error: aborting due to 5 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0658`. |
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,53 @@ | ||
error[E0658]: the type `f16` is unstable | ||
--> $DIR/feature-gate-f16.rs:11:10 | ||
| | ||
LL | const A: f16 = 10.0; | ||
| ^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f16)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f16` is unstable | ||
--> $DIR/feature-gate-f16.rs:14:12 | ||
| | ||
LL | let a: f16 = 100.0; | ||
| ^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f16)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f16` is unstable | ||
--> $DIR/feature-gate-f16.rs:19:11 | ||
| | ||
LL | fn foo(a: f16) {} | ||
| ^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f16)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f16` is unstable | ||
--> $DIR/feature-gate-f16.rs:22:8 | ||
| | ||
LL | a: f16, | ||
| ^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f16)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f16` is unstable | ||
--> $DIR/feature-gate-f16.rs:15:13 | ||
| | ||
LL | let b = 0.0f16; | ||
| ^^^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f16)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error: aborting due to 5 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0658`. |
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,53 @@ | ||
error[E0658]: the type `f16` is unstable | ||
--> $DIR/feature-gate-f16.rs:11:10 | ||
| | ||
LL | const A: f16 = 10.0; | ||
| ^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f16)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f16` is unstable | ||
--> $DIR/feature-gate-f16.rs:14:12 | ||
| | ||
LL | let a: f16 = 100.0; | ||
| ^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f16)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f16` is unstable | ||
--> $DIR/feature-gate-f16.rs:19:11 | ||
| | ||
LL | fn foo(a: f16) {} | ||
| ^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f16)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f16` is unstable | ||
--> $DIR/feature-gate-f16.rs:22:8 | ||
| | ||
LL | a: f16, | ||
| ^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f16)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error[E0658]: the type `f16` is unstable | ||
--> $DIR/feature-gate-f16.rs:15:13 | ||
| | ||
LL | let b = 0.0f16; | ||
| ^^^^^^ | ||
| | ||
= note: see issue #116909 <https://github.com/rust-lang/rust/issues/116909> for more information | ||
= help: add `#![feature(f16)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error: aborting due to 5 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0658`. |
Oops, something went wrong.