[pr-docs][MULDER][hle] native_dstorage: SAFETY comments on its unsafe blocks #639
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!639
Loading…
Reference in a new issue
No description provided.
Delete branch "iboom72/native-dstorage-safety"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What it changes
crates/darner-hle/src/modules/dstorage/native_dstorage.rshas 15unsafeblocks and impls without a// SAFETY:comment; three had a reason, but without the tag. It is the largest such group in darner-hle: clippy finds 8 or fewer in each other file.Each block now says why it is sound: the loaded bridge is never freed, the exports have the signatures
bridge.cppdeclares, and the out-pointers and the output slice are valid. Comments only, except that the one-lineimpl Drop for NativeFileis spread over five lines, so its comment sits right above theunsafeblock, where the lint looks for it.How it was tested
03c43460(onmainc8258f95)cargo clippy -p darner-hle --lib --locked -- -W clippy::undocumented_unsafe_blocks: no hit innative_dstorage.rs(30 in other darner-hle files, untouched here).cargo clippy -p darner-hle --lib --locked -- -D warnings: clean.Checklist
main.docs/asset-policy.md.Checked for overlap
dstorage.rs.Checked with AI assistance (Claude Code).
🤖 Generated with Claude Code
[pr-docs] native_dstorage: SAFETY comments on its unsafe blocksto native_dstorage: SAFETY comments on its unsafe blocksnative_dstorage: SAFETY comments on its unsafe blocksto [pr-docs][MULDER][hle] native_dstorage: SAFETY comments on its unsafe blocksView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.