diff options
| author | bors <bors@rust-lang.org> | 2025-05-04 19:54:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-05-04 19:54:31 +0000 |
| commit | 13e87909494f2f31bce51bc106e2b629420d1235 (patch) | |
| tree | 511e8146ee5e58c9141ed2da6306a2f2478d8c88 /tests/incremental/thinlto | |
| parent | ab62d56603293e9264b4d811d2d6f5b49a3264f9 (diff) | |
| parent | 56d6b4e427c271e8f069500f6fac4e209e946144 (diff) | |
| download | rust-13e87909494f2f31bce51bc106e2b629420d1235.tar.gz rust-13e87909494f2f31bce51bc106e2b629420d1235.zip | |
Auto merge of #140599 - petrochenkov:rawerann, r=jieyouxu
compiletest: Support matching on non-json lines in compiler output and migrate most of remaining `error-pattern`s to it. Such diagnostics use a new diagnostic kind `RAW`. Also emit an error for `error-pattern`s that can be replaced with line annotations. Also remove a number of conditions to check both line annotations and `error-pattern`s in more cases. Also respect `//@ check-stdout` when collecting "actual errors" for comparing against line annotations. (A couple of tiny refactorings is also included.) Continuation of https://github.com/rust-lang/rust/pull/139760. r? `@jieyouxu`
Diffstat (limited to 'tests/incremental/thinlto')
| -rw-r--r-- | tests/incremental/thinlto/cgu_keeps_identical_fn.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/incremental/thinlto/cgu_keeps_identical_fn.rs b/tests/incremental/thinlto/cgu_keeps_identical_fn.rs index 5751759223b..d124a3498c4 100644 --- a/tests/incremental/thinlto/cgu_keeps_identical_fn.rs +++ b/tests/incremental/thinlto/cgu_keeps_identical_fn.rs @@ -33,12 +33,12 @@ mod foo { // Trivial functions like this one are imported very reliably by ThinLTO. - #[cfg(any(cfail1, cfail4))] + #[cfg(cfail1)] pub fn inlined_fn() -> u32 { 1234 } - #[cfg(not(any(cfail1, cfail4)))] + #[cfg(not(cfail1))] pub fn inlined_fn() -> u32 { 1234 } |
