-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Clean up some tests in tests/ui #138471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Clean up some tests in tests/ui #138471
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
tests/ui/attributes/outer-mod-attr-applies-only-to-first.rs
This file contains hidden or 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 to check that outer attributes applied to the first module item is applied to | ||
//! its attached module item only, and not also to other subsequent module items | ||
//! | ||
//! Commit: <https://github.com/rust-lang/rust/commit/7aee9f7b56f8d96f9444ebb1d06e32e024b81974> | ||
|
||
//@ check-pass | ||
//@ compile-flags: --cfg=first | ||
//@ no-auto-check-cfg | ||
|
||
#[cfg(first)] | ||
mod hello {} | ||
|
||
#[cfg(not_set)] | ||
mod hello {} | ||
|
||
fn main() {} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 @@ | ||
//! Validates the correct printing of E0152 in the case of duplicate "lang_item" function | ||
//! definitions. | ||
//! | ||
//! Issue: <https://github.com/rust-lang/rust/issues/31788> | ||
|
||
//@ error-pattern: first defined in crate `std` | ||
//@ normalize-stderr: "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib" | ||
#![feature(lang_items)] | ||
|
||
extern crate core; | ||
|
||
use core::panic::PanicInfo; | ||
|
||
#[lang = "panic_impl"] | ||
fn panic_impl(info: &PanicInfo) -> ! { | ||
//~^ ERROR: found duplicate lang item `panic_impl` | ||
loop {} | ||
} | ||
|
||
fn main() {} |
6 changes: 3 additions & 3 deletions
6
tests/ui/duplicate_entry_error.stderr → ...r-codes/E0152-duplicate-lang-items.stderr
This file contains hidden or 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
3 changes: 3 additions & 0 deletions
3
.../ui/duplicate-label-E0381-issue-129274.rs → .../ui/error-codes/E0381-duplicated-label.rs
jieyouxu marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
...duplicate-label-E0381-issue-129274.stderr → ...error-codes/E0381-duplicated-label.stderr
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.