-
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.
Auto merge of #123466 - cuviper:beta-next, r=cuviper
[beta] backports - Fix f16 and f128 feature gates in editions other than 2015 #123307 / #123445 - Update to LLVM 18.1.2 #122772 - unix fs: Make hurd using explicit new rather than From #123057 - Don't inherit codegen attrs from parent static #123310 - Make sure to insert Sized bound first into clauses list #123302 r? cuviper
- Loading branch information
Showing
16 changed files
with
208 additions
and
17 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
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
Submodule llvm-project
updated
67 files
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 `f128` is unstable | ||
--> $DIR/feature-gate-f128.rs:7: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:10: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:15: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:18: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:11: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:7: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:10: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:15: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:18: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:11: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
30 changes: 30 additions & 0 deletions
30
tests/ui/methods/probe-overflow-due-to-sized-predicate-ordering.rs
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,30 @@ | ||
//@ check-pass | ||
// Regression test due to #123279 | ||
|
||
pub trait Job: AsJob { | ||
fn run_once(&self); | ||
} | ||
|
||
impl<F: Fn()> Job for F { | ||
fn run_once(&self) { | ||
todo!() | ||
} | ||
} | ||
|
||
pub trait AsJob {} | ||
|
||
// Ensure that `T: Sized + Job` by reordering the explicit `Sized` to where | ||
// the implicit sized pred would go. | ||
impl<T: Job + Sized> AsJob for T {} | ||
|
||
pub struct LoopingJobService { | ||
job: Box<dyn Job>, | ||
} | ||
|
||
impl Job for LoopingJobService { | ||
fn run_once(&self) { | ||
self.job.run_once() | ||
} | ||
} | ||
|
||
fn main() {} |
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,19 @@ | ||
//@ compile-flags: --crate-type=lib | ||
//@ check-pass | ||
//@ revisions: e2015 e2018 | ||
// | ||
//@[e2018] edition:2018 | ||
|
||
// Verify that gates for the `f16` and `f128` features do not apply to user modules | ||
// See <https://github.com/rust-lang/rust/issues/123282> | ||
|
||
mod f16 { | ||
pub fn a16() {} | ||
} | ||
|
||
mod f128 { | ||
pub fn a128() {} | ||
} | ||
|
||
pub use f128::a128; | ||
pub use f16::a16; |
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
11 changes: 11 additions & 0 deletions
11
tests/ui/statics/nested-allocations-dont-inherit-codegen-attrs.rs
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,11 @@ | ||
//@ build-pass | ||
|
||
// Make sure that the nested static allocation for `FOO` doesn't inherit `no_mangle`. | ||
#[no_mangle] | ||
pub static mut FOO: &mut [i32] = &mut [42]; | ||
|
||
// Make sure that the nested static allocation for `BAR` doesn't inherit `export_name`. | ||
#[export_name = "BAR_"] | ||
pub static mut BAR: &mut [i32] = &mut [42]; | ||
|
||
fn main() {} |