Skip to content

Commit 4239155

Browse files
committed
More obvious closure name
1 parent 69b1b3c commit 4239155

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/rustc_middle/src/ty/layout.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)