diff options
| author | jyn <github@jyn.dev> | 2023-07-13 02:12:57 -0500 |
|---|---|---|
| committer | jyn <github@jyn.dev> | 2023-07-15 12:27:53 -0500 |
| commit | 63d7992353b7250e150a377d1ca499e869de55f7 (patch) | |
| tree | cb05c1c223aed096c0b7f19e626c6e33e7a53aa8 /compiler/rustc_codegen_llvm/src | |
| parent | 4d6e4260b2de66a356a2536320f339467dff0d2b (diff) | |
| download | rust-63d7992353b7250e150a377d1ca499e869de55f7.tar.gz rust-63d7992353b7250e150a377d1ca499e869de55f7.zip | |
Deduplicate `Builder::try_run` and mark `Config::try_run` as deprecated
This does three things: 1. Remove `forward!(Build, fn try_run())`. Having `try_run` behave differently as a free function than an associated function is confusing, and `Builder::try_run` is a very desirable name. 2. Move `test::try_run` and `run::try_run` to `Builder::try_run`. These functions are different than `Config::try_run` - they delay the failure and print it out at the end of the build. 3. Mark `Config::try_run` as deprecated to encourage people to use `Builder::try_run` instead.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
