You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
run-make-support: add #[must_use] to helpers where suitable #125703
For command wrappers like Rustc, they often have intermediate helper methods and actual "terminal" functions that executes the built command (e.g. run, run_fail, run_fail_assert_exit_code). Currently, it is easy to forget to call "terminal" functions.
For example,
rustc().input("foo.rs").arg("-Cprefer-dynamic");
does not actually execute and can unexpectedly silently pass. We should annotate intermediate helper methods with #[must_use] to ensure the built command is consumed, i.e. by executing the command.
Activity
jieyouxu commentedon May 29, 2024
Maybe even consider drop bombs for command wrappers?
Rollup merge of rust-lang#125752 - jieyouxu:kaboom, r=Kobzol
Auto merge of rust-lang#125752 - jieyouxu:kaboom, r=Kobzol
Auto merge of rust-lang#125752 - jieyouxu:kaboom, r=<try>
Auto merge of rust-lang#125752 - jieyouxu:kaboom, r=<try>
jieyouxu commentedon Jul 18, 2024
Closing as mostly addressed in #125752.