forked from rust-lang/rust
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#90029 - tgnottingham:incr-debug-logging-tes…
…t, r=Mark-Simulacrum Add test for debug logging during incremental compilation Debug logging during incremental compilation had been broken for some time, until rust-lang#89343 fixed it (among other things). Add a test so this is less likely to break without being noticed. This test is nearly a copy of the `src/test/ui/rustc-rust-log.rs` test, but tests debug logging in the incremental compliation code paths.
- Loading branch information
Showing
3 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// rustc-env:RUSTC_LOG=debug | ||
#[cfg(rpass1)] | ||
pub fn foo() {} | ||
|
||
#[cfg(rpass2)] | ||
pub fn foo() { | ||
println!(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// revisions: rpass1 rpass2 | ||
// This test is just checking that we won't ICE if logging is turned | ||
// on; don't bother trying to compare that (copious) output. | ||
// | ||
// dont-check-compiler-stdout | ||
// dont-check-compiler-stderr | ||
// aux-build: rustc-rust-log-aux.rs | ||
// rustc-env:RUSTC_LOG=debug | ||
|
||
#[cfg(rpass1)] | ||
fn main() {} | ||
|
||
#[cfg(rpass2)] | ||
fn main() { | ||
println!(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters