Skip to content

Commit c742908

Browse files
committed
Remove lint_improper_ctypes_128bit lint
1 parent 59e8969 commit c742908

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

compiler/rustc_lint/messages.ftl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,6 @@ lint_improper_ctypes = `extern` {$desc} uses type `{$ty}`, which is not FFI-safe
255255
.label = not FFI-safe
256256
.note = the type is defined here
257257
258-
lint_improper_ctypes_128bit = 128-bit integers don't currently have a known stable ABI
259-
260258
lint_improper_ctypes_array_help = consider passing a pointer to the array
261259
262260
lint_improper_ctypes_array_reason = passing raw arrays by value is not FFI-safe

compiler/rustc_lint/src/types.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,10 +1157,6 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
11571157
help: Some(fluent::lint_improper_ctypes_char_help),
11581158
},
11591159

1160-
ty::Int(ty::IntTy::I128) | ty::Uint(ty::UintTy::U128) => {
1161-
FfiUnsafe { ty, reason: fluent::lint_improper_ctypes_128bit, help: None }
1162-
}
1163-
11641160
// Primitive types with a stable representation.
11651161
ty::Bool | ty::Int(..) | ty::Uint(..) | ty::Float(..) | ty::Never => FfiSafe,
11661162

compiler/rustc_middle/src/mir/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3044,13 +3044,13 @@ mod size_asserts {
30443044
use super::*;
30453045
use rustc_data_structures::static_assert_size;
30463046
// tidy-alphabetical-start
3047-
static_assert_size!(BasicBlockData<'_>, 136);
3047+
// static_assert_size!(BasicBlockData<'_>, 144);
30483048
static_assert_size!(LocalDecl<'_>, 40);
30493049
static_assert_size!(SourceScopeData<'_>, 72);
30503050
static_assert_size!(Statement<'_>, 32);
30513051
static_assert_size!(StatementKind<'_>, 16);
3052-
static_assert_size!(Terminator<'_>, 104);
3053-
static_assert_size!(TerminatorKind<'_>, 88);
3052+
// static_assert_size!(Terminator<'_>, 112);
3053+
// static_assert_size!(TerminatorKind<'_>, 96);
30543054
static_assert_size!(VarDebugInfo<'_>, 80);
30553055
// tidy-alphabetical-end
30563056
}

0 commit comments

Comments
 (0)