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>> {
10781078 st. variants = Variants :: Single { index : v } ;
10791079
10801080 if def. is_unsafe_cell ( ) {
1081- let fill = |scalar : & mut _ | match scalar {
1081+ let hide_niches = |scalar : & mut _ | match scalar {
10821082 Scalar :: Initialized { value, valid_range } => {
10831083 * valid_range = WrappingRange :: full ( value. size ( dl) )
10841084 }
@@ -1087,10 +1087,10 @@ impl<'tcx> LayoutCx<'tcx, TyCtxt<'tcx>> {
10871087 } ;
10881088 match & mut st. abi {
10891089 Abi :: Uninhabited => { }
1090- Abi :: Scalar ( scalar) => fill ( scalar) ,
1090+ Abi :: Scalar ( scalar) => hide_niches ( scalar) ,
10911091 Abi :: ScalarPair ( a, b) => {
1092- fill ( a) ;
1093- fill ( b) ;
1092+ hide_niches ( a) ;
1093+ hide_niches ( b) ;
10941094 }
10951095 Abi :: Vector { element, count : _ } => {
10961096 // Until we support types other than floats and integers in SIMD,
You can’t perform that action at this time.
0 commit comments