mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
e2b3f7e375
compiletest: Migrate from `PassMode`/`FailMode` to `PassFailMode` Every UI test has an explicit or implicit “pass/fail mode” (e.g. `check-fail` or `build-pass`) that was historically stored in two separate optional fields (`pass_mode` and `fail_mode`). That split made it very hard to determine how the respective values were actually produced and consumed, especially in the presence of `--pass=check` on the command-line, or when building auxiliary crates. This PR replaces the separate fields and enums for pass-mode and fail-mode with a single `PassFailMode` enum and a single `pass_fail_mode` field. With this new representation, it should hopefully be easier to understand and modify the pass/fail-mode logic. --- In order to focus on the main migration, I have mostly refrained from subsequent cleanups. r? jieyouxu
This directory contains some source code for the Rust project, including:
- The bootstrapping build system
- Various submodules for tools, like cargo, tidy, etc.
For more information on how various parts of the compiler work, see the rustc dev guide.