bootstrap: Replace the exit! macro with a function helpers::exit_process - #161023
bootstrap: Replace the exit! macro with a function helpers::exit_process#161023Zalathar wants to merge 1 commit into
exit! macro with a function helpers::exit_process#161023Conversation
The function can check `cfg!(test)` internally, without needing any macro magic. This lets us remove a crate-root definition and a `#[macro_export]`.
|
This PR changes how LLVM is built. Consider updating src/bootstrap/download-ci-llvm-stamp. This PR modifies If appropriate, please update |
|
r? @clubby789 rustbot has assigned @clubby789. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
I personally prefer |
|
Yeah no strong feelings about |
|
The main reason I went with @bors r=jieyouxu,clubby789 |
…clubby789 bootstrap: Replace the `exit!` macro with a function `helpers::exit_process` The function can check `cfg!(test)` internally, without needing any macro magic. This lets us remove a crate-root definition and a `#[macro_export]`.
|
I think that there might have been a reason for the macro in the past, so that |
Oh yeah, that could definitely be the case |
Rollup of 8 pull requests Successful merges: - #159593 (merge ambiguity errors that blame the same inference variable) - #160687 (Experiment: Add `core::cmp::smallest` and `core::cmp::largest`) - #160856 (Replace infers and non-rigid aliases with `Ty/Const::Error` if param env normalization fails) - #160961 (bootstrap: Overhaul matching of command-line selectors to steps) - #160975 (Remove target argument from get_proc_macros) - #161023 (bootstrap: Replace the `exit!` macro with a function `helpers::exit_process`) - #160932 (Make tidy::Version public) - #161029 (mailmap: Update my default email)
The function can check
cfg!(test)internally, without needing any macro magic. This lets us remove a crate-root definition and a#[macro_export].