forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
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 rust-lang#71255 - Dylan-DPC:rollup-u5yl04z, r=Dylan-DPC
Rollup of 5 pull requests Successful merges: - rust-lang#69642 (Use query to determine whether function needs const checking) - rust-lang#71239 (Rename `asm` test directory in favor of `llvm_asm`) - rust-lang#71246 (Implement `Clone` for `liballoc::collections::linked_list::Cursor`.) - rust-lang#71247 (Remove unnecessary variable intialization) - rust-lang#71254 (Minor fix and addition to doc comments) Failed merges: r? @ghost
- Loading branch information
Showing
30 changed files
with
87 additions
and
56 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/test/ui/asm/asm-bad-clobber.stderr → ...t/ui/llvm-asm/llvm-asm-bad-clobber.stderr
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
src/test/ui/asm/asm-in-bad-modifier.stderr → .../llvm-asm/llvm-asm-in-bad-modifier.stderr
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
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
src/test/ui/asm/asm-misplaced-option.stderr → ...llvm-asm/llvm-asm-misplaced-option.stderr
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/test/ui/asm/asm-out-assign-imm.stderr → ...i/llvm-asm/llvm-asm-out-assign-imm.stderr
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/test/ui/asm/asm-out-no-modifier.stderr → .../llvm-asm/llvm-asm-out-no-modifier.stderr
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/test/ui/asm/asm-out-read-uninit.stderr → .../llvm-asm/llvm-asm-out-read-uninit.stderr
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
File renamed without changes.
22 changes: 11 additions & 11 deletions
22
src/test/ui/asm/asm-parse-errors.stderr → .../ui/llvm-asm/llvm-asm-parse-errors.stderr
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,16 @@ | ||
// Regression test for #69615. | ||
|
||
#![feature(const_trait_impl, const_fn)] | ||
#![allow(incomplete_features)] | ||
|
||
pub trait MyTrait { | ||
fn method(&self); | ||
} | ||
|
||
impl const MyTrait for () { | ||
fn method(&self) { | ||
match *self {} //~ ERROR `match` is not allowed in a `const fn` | ||
} | ||
} | ||
|
||
fn main() {} |
12 changes: 12 additions & 0 deletions
12
src/test/ui/rfc-2632-const-trait-impl/hir-const-check.stderr
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,12 @@ | ||
error[E0658]: `match` is not allowed in a `const fn` | ||
--> $DIR/hir-const-check.rs:12:9 | ||
| | ||
LL | match *self {} | ||
| ^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information | ||
= help: add `#![feature(const_if_match)]` to the crate attributes to enable | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0658`. |