Skip to content

Commit a1ded48

Browse files
committed
ImproperCTypes: redo state tracking
No changes should be visible by rustc users This is just some architecture changes to the type checking to facilitate FFI-safety decisions that depend on how the type is used (the change here is not complete, there are still bits of "legacy" state passing for this, but since this is a retconned commit, I can tell you those bits will disappear before the end of the commit chain) (there is at least one bit where the decision making code is weird, but that this is because we do not want to change the lint's behaviour this early in the chain)
1 parent 443e0ad commit a1ded48

File tree

3 files changed

+169
-67
lines changed

3 files changed

+169
-67
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4022,6 +4022,7 @@ dependencies = [
40224022
name = "rustc_lint"
40234023
version = "0.0.0"
40244024
dependencies = [
4025+
"bitflags",
40254026
"rustc_abi",
40264027
"rustc_ast",
40274028
"rustc_ast_pretty",

compiler/rustc_lint/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition = "2024"
55

66
[dependencies]
77
# tidy-alphabetical-start
8+
bitflags.workspace = true
89
rustc_abi = { path = "../rustc_abi" }
910
rustc_ast = { path = "../rustc_ast" }
1011
rustc_ast_pretty = { path = "../rustc_ast_pretty" }

0 commit comments

Comments
 (0)