File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1078,7 +1078,7 @@ impl<'tcx> LayoutCx<'tcx, TyCtxt<'tcx>> {
1078
1078
st. variants = Variants :: Single { index : v } ;
1079
1079
1080
1080
if def. is_unsafe_cell ( ) {
1081
- let fill = |scalar : & mut _ | match scalar {
1081
+ let hide_niches = |scalar : & mut _ | match scalar {
1082
1082
Scalar :: Initialized { value, valid_range } => {
1083
1083
* valid_range = WrappingRange :: full ( value. size ( dl) )
1084
1084
}
@@ -1087,10 +1087,10 @@ impl<'tcx> LayoutCx<'tcx, TyCtxt<'tcx>> {
1087
1087
} ;
1088
1088
match & mut st. abi {
1089
1089
Abi :: Uninhabited => { }
1090
- Abi :: Scalar ( scalar) => fill ( scalar) ,
1090
+ Abi :: Scalar ( scalar) => hide_niches ( scalar) ,
1091
1091
Abi :: ScalarPair ( a, b) => {
1092
- fill ( a) ;
1093
- fill ( b) ;
1092
+ hide_niches ( a) ;
1093
+ hide_niches ( b) ;
1094
1094
}
1095
1095
Abi :: Vector { element, count : _ } => {
1096
1096
// Until we support types other than floats and integers in SIMD,
You can’t perform that action at this time.
0 commit comments