-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positives in easy testcase. #22
Comments
Thanks! EDIT: I misinterpreted the issue title. This is not test related, all unsafe in this case is located in normal code. What needs to be added to cargo-geiger to in order to solve this issue is to start tracking each function for inclusion in the build. I'm not aware of any way to do this yet. Can rustc be told to emit this information? Is it already present in the output folder? |
Great issue thanks 💜 ! cargo-geiger 0.11.2 w/ nightly-x86_64-unknown-linux-gnu & rustc 1.59.0-nightly (f1ce0e6a0 2022-01-05)
Issue 1 pub unsafe fn - these are probably not used why do we care?
Issue 2 slab sub-dependency tree somehow is missed
More from slab.rs src/lib.rs: /// unsafe { So yes I think we need to trace function calls as using pub unsafe fn requires the caller to be unsafe. But on otherhand there are functions that require caller to use them in unsafe block. But for proper analysis we need to determine whether there is an impact. |
Expected
0/2
,0/23, 0/2
.The text was updated successfully, but these errors were encountered: