]>
git.proxmox.com Git - rustc.git/blob - src/test/incremental/string_constant.rs
1 // revisions: cfail1 cfail2 cfail3 cfail4
2 // compile-flags: -Z query-dep-graph
3 // [cfail3]compile-flags: -Zincremental-relative-spans
4 // [cfail4]compile-flags: -Zincremental-relative-spans
5 // build-pass (FIXME(62277): could be check-pass?)
8 #![feature(rustc_attrs)]
9 #![crate_type = "rlib"]
11 // Here the only thing which changes is the string constant in `x`.
12 // Therefore, the compiler deduces (correctly) that typeck is not
13 // needed even for callers of `x`.
16 #[cfg(any(cfail1, cfail3))]
21 #[cfg(any(cfail2, cfail4))]
22 #[rustc_clean(except = "hir_owner,hir_owner_nodes,optimized_mir,promoted_mir", cfg = "cfail2")]
23 #[rustc_clean(except = "hir_owner_nodes,promoted_mir", cfg = "cfail4")]
32 #[rustc_clean(cfg = "cfail2")]
33 #[rustc_clean(cfg = "cfail4")]
42 #[rustc_clean(cfg = "cfail2")]
43 #[rustc_clean(cfg = "cfail4")]