Skip to content

Commit f7d4417

Browse files
fixing newline and spacing diff
1 parent 8423d12 commit f7d4417

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

compiler/rustc_lint/messages.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ lint_implicit_unsafe_autorefs = implicit autoref creates a reference to the dere
360360
lint_improper_ctypes = `extern` {$desc} uses type `{$ty}`, which is not FFI-safe
361361
.label = not FFI-safe
362362
.note = the type is defined here
363+
363364
lint_improper_ctypes_array_help = consider passing a pointer to the array
364365
365366
lint_improper_ctypes_array_reason = passing raw arrays by value is not FFI-safe

compiler/rustc_lint/src/types/improper_ctypes.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,7 @@ impl<'tcx> LateLintPass<'tcx> for ImproperCTypesLint {
10181018
| hir::ItemKind::ExternCrate(..) => {}
10191019
}
10201020
}
1021+
10211022
fn check_field_def(&mut self, cx: &LateContext<'tcx>, field: &'tcx hir::FieldDef<'tcx>) {
10221023
self.check_type_for_external_abi_fnptr(
10231024
cx,
@@ -1054,4 +1055,4 @@ impl<'tcx> LateLintPass<'tcx> for ImproperCTypesLint {
10541055
self.check_fn_for_external_abi_fnptr(cx, CItemKind::Definition, id, decl);
10551056
}
10561057
}
1057-
}
1058+
}

0 commit comments

Comments
 (0)