We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bug!
1 parent e46087f commit 3c03242Copy full SHA for 3c03242
compiler/rustc_lint/src/types.rs
@@ -1117,13 +1117,7 @@ pub(crate) fn repr_nullable_ptr<'tcx>(
1117
return Some(get_nullable_type(tcx, field_ty).unwrap());
1118
}
1119
WrappingRange { start: 1, .. } => {
1120
- let nullable_type = get_nullable_type(tcx, field_ty);
1121
-
1122
- if nullable_type.is_none() {
1123
- bug!("cannot get nullable type for field_ty {field_ty:?}");
1124
- }
1125
1126
- return Some(nullable_type.unwrap());
+ return Some(get_nullable_type(tcx, field_ty).unwrap());
1127
1128
WrappingRange { start, end } => {
1129
unreachable!("Unhandled start and end range: ({}, {})", start, end)
0 commit comments