@@ -2859,24 +2859,51 @@ impl TypeContents {
2859
2859
}
2860
2860
}
2861
2861
2862
+ // NOTE(stage0): Remove impl after a snapshot
2863
+ #[ cfg( stage0) ]
2862
2864
impl ops:: BitOr < TypeContents , TypeContents > for TypeContents {
2863
2865
fn bitor ( & self , other : & TypeContents ) -> TypeContents {
2864
2866
TypeContents { bits : self . bits | other. bits }
2865
2867
}
2866
2868
}
2867
2869
2870
+ #[ cfg( not( stage0) ) ] // NOTE(stage0): Remove cfg after a snapshot
2871
+ impl ops:: BitOr < TypeContents , TypeContents > for TypeContents {
2872
+ fn bitor ( self , other : TypeContents ) -> TypeContents {
2873
+ TypeContents { bits : self . bits | other. bits }
2874
+ }
2875
+ }
2876
+
2877
+ // NOTE(stage0): Remove impl after a snapshot
2878
+ #[ cfg( stage0) ]
2868
2879
impl ops:: BitAnd < TypeContents , TypeContents > for TypeContents {
2869
2880
fn bitand ( & self , other : & TypeContents ) -> TypeContents {
2870
2881
TypeContents { bits : self . bits & other. bits }
2871
2882
}
2872
2883
}
2873
2884
2885
+ #[ cfg( not( stage0) ) ] // NOTE(stage0): Remove cfg after a snapshot
2886
+ impl ops:: BitAnd < TypeContents , TypeContents > for TypeContents {
2887
+ fn bitand ( self , other : TypeContents ) -> TypeContents {
2888
+ TypeContents { bits : self . bits & other. bits }
2889
+ }
2890
+ }
2891
+
2892
+ // NOTE(stage0): Remove impl after a snapshot
2893
+ #[ cfg( stage0) ]
2874
2894
impl ops:: Sub < TypeContents , TypeContents > for TypeContents {
2875
2895
fn sub ( & self , other : & TypeContents ) -> TypeContents {
2876
2896
TypeContents { bits : self . bits & !other. bits }
2877
2897
}
2878
2898
}
2879
2899
2900
+ #[ cfg( not( stage0) ) ] // NOTE(stage0): Remove cfg after a snapshot
2901
+ impl ops:: Sub < TypeContents , TypeContents > for TypeContents {
2902
+ fn sub ( self , other : TypeContents ) -> TypeContents {
2903
+ TypeContents { bits : self . bits & !other. bits }
2904
+ }
2905
+ }
2906
+
2880
2907
impl fmt:: Show for TypeContents {
2881
2908
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2882
2909
write ! ( f, "TypeContents({:b})" , self . bits)
0 commit comments