]> git.lizzy.rs Git - rust.git/commitdiff
ICH: Add missing annotations for struct constructor expr test case.
authorMichael Woerister <michaelwoerister@posteo.net>
Tue, 6 Dec 2016 23:12:12 +0000 (18:12 -0500)
committerMichael Woerister <michaelwoerister@posteo.net>
Tue, 6 Dec 2016 23:12:12 +0000 (18:12 -0500)
src/test/incremental/hashes/struct_constructors.rs

index 6a9f4698bf887ac1828600143a852f59cc3ae868..0e23d953baf2de48d86e6dbca9d8eb4dfd9544a1 100644 (file)
@@ -202,6 +202,12 @@ mod change_constructor_path_indirectly_regular_struct {
     #[cfg(not(cfail1))]
     use super::RegularStruct2 as Struct;
 
+    #[rustc_dirty(label="Hir", cfg="cfail2")]
+    #[rustc_clean(label="Hir", cfg="cfail3")]
+    #[rustc_dirty(label="HirBody", cfg="cfail2")]
+    #[rustc_clean(label="HirBody", cfg="cfail3")]
+    #[rustc_metadata_dirty(cfg="cfail2")]
+    #[rustc_metadata_clean(cfg="cfail3")]
     fn function() -> Struct {
         Struct {
             x: 0,
@@ -262,6 +268,12 @@ mod change_constructor_path_indirectly_tuple_struct {
     #[cfg(not(cfail1))]
     use super::TupleStruct2 as Struct;
 
+    #[rustc_dirty(label="Hir", cfg="cfail2")]
+    #[rustc_clean(label="Hir", cfg="cfail3")]
+    #[rustc_dirty(label="HirBody", cfg="cfail2")]
+    #[rustc_clean(label="HirBody", cfg="cfail3")]
+    #[rustc_metadata_dirty(cfg="cfail2")]
+    #[rustc_metadata_clean(cfg="cfail3")]
     fn function() -> Struct {
         Struct(0, 1, 2)
     }