-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Migrate run-make/allow-non-lint-warnings-cmdline
to rmake.rs
#126386
Migrate run-make/allow-non-lint-warnings-cmdline
to rmake.rs
#126386
Conversation
The run-make-support library was changed cc @jieyouxu This PR modifies cc @jieyouxu |
This comment has been minimized.
This comment has been minimized.
2134604
to
115fa2e
Compare
And fixed the formatting issue. |
@@ -0,0 +1,8 @@ | |||
// Test that -A warnings makes the 'empty trait list for derive' warning go away. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussion: I thought about this a bit, could this be written as a UI test? Something like
//@ compile-flags: -Awarnings
//@ check-pass
#[derive()]
#[derive(Copy, Clone)]
pub struct Foo;
pub fn main() {}
and then obviously the stderr would be blessed which would not have any warnings?
I'm trying this locally, let me get back to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it could actually. Do you prefer me to switch this test to a ui test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, if it doesn't really need the facilities or flexibilities of run-make tests, it's usually better as ui tests. EDIT: yes looks like it does work as a UI test with the snippet above, doesn't even have a stderr to track 😄
This comment has been minimized.
This comment has been minimized.
1336292
to
eca8d20
Compare
Turned it into a ui test. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, r=me after CI is green
@bors r=jieyouxu |
@bors rollup |
…low-non-lint-warnings-cmdline, r=jieyouxu Migrate `run-make/allow-non-lint-warnings-cmdline` to `rmake.rs` Part of rust-lang#121876. r? `@jieyouxu`
…low-non-lint-warnings-cmdline, r=jieyouxu Migrate `run-make/allow-non-lint-warnings-cmdline` to `rmake.rs` Part of rust-lang#121876. r? ``@jieyouxu``
…iaskrgr Rollup of 10 pull requests Successful merges: - rust-lang#123962 (change method resolution to constrain hidden types instead of rejecting method candidates) - rust-lang#124884 (place explicit lifetime bound after generic param) - rust-lang#126244 (Update fuchsia commit, and SDK to 21.20240610.2.1) - rust-lang#126270 (Migrate run make const fn mir) - rust-lang#126320 (Avoid ICES after reporting errors on erroneous patterns) - rust-lang#126343 (Remove some msys2 utils) - rust-lang#126351 (std::unix::fs::link using direct linkat call for Solaris.) - rust-lang#126368 (Remove some unnecessary crate dependencies.) - rust-lang#126386 (Migrate `run-make/allow-non-lint-warnings-cmdline` to `rmake.rs`) - rust-lang#126449 (Fill out missing Windows support information) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#124884 (place explicit lifetime bound after generic param) - rust-lang#126343 (Remove some msys2 utils) - rust-lang#126351 (std::unix::fs::link using direct linkat call for Solaris.) - rust-lang#126368 (Remove some unnecessary crate dependencies.) - rust-lang#126386 (Migrate `run-make/allow-non-lint-warnings-cmdline` to `rmake.rs`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#126386 - GuillaumeGomez:migrate-run-make-allow-non-lint-warnings-cmdline, r=jieyouxu Migrate `run-make/allow-non-lint-warnings-cmdline` to `rmake.rs` Part of rust-lang#121876. r? ```@jieyouxu```
Part of #121876.
r? @jieyouxu