]> git.lizzy.rs Git - rust.git/blob - tests/incremental/split_debuginfo_cached.rs
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / incremental / split_debuginfo_cached.rs
1 // Check that compiling with packed Split DWARF twice succeeds. This should confirm that DWARF
2 // objects are cached as work products and available to the incremental compilation for `thorin` to
3 // pack into a DWARF package.
4
5 // ignore-tidy-linelength
6 // only-x86_64-unknown-linux-gnu
7 // revisions:rpass1 rpass2
8
9 // [rpass1]compile-flags: -g -Zquery-dep-graph -Csplit-debuginfo=packed -Zsplit-dwarf-kind=split
10 // [rpass2]compile-flags: -g -Zquery-dep-graph -Csplit-debuginfo=packed -Zsplit-dwarf-kind=split
11
12 #![feature(rustc_attrs)]
13 // For `rpass2`, nothing has changed so everything should re-used.
14 #![rustc_partition_reused(module = "split_debuginfo_cached", cfg = "rpass2")]
15 #![rustc_partition_reused(module = "split_debuginfo_cached-another_module", cfg = "rpass2")]
16
17 mod another_module {
18     pub fn foo() -> &'static str {
19         "hello world"
20     }
21 }
22
23 pub fn main() {
24     println!("{}", another_module::foo());
25 }