-
Notifications
You must be signed in to change notification settings - Fork 13.3k
supposedly unused unsafe blocks are really unsafe #6030
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
Comments
ping @alexcrichton |
Was that second reference to 5797 a typo? I don't see any comments by jdm there... |
Yes. I've updated the description. |
Does servo not build with the |
It does build, yes. Perhaps the warning has just uncovered a compiler bug? |
Well, this is either a compiler bug, or those functions legitimately don't need to be unsafe, I'd recommend double-checking that the definition of those functions in question are indeed marked as |
The first thing in that commit is calling an extern Farther down by one of @jdm's comments is a call to this extern:
JSRawObject is an unsafe pointer here, but that shouldn't even matter since this is an FFI call. |
Yes, all C functions are unsafe (if that's what's being asked). |
@metajack I think it's a bug. I also saw some suspiciously unsafe code in passing recently but didn't think much of it at the time. |
A shot in the dark is that the |
…matthiaskrgr fix some use of `snippet` in `types.rs` changelog: none
With #5797 many warnings were generated in Servo code. I attempted to remove these unused unsafe blocks, but I am very concerned that this lint mode is inaccurate. See metajack/servo@868c740#commitcomment-3066562 for a commit that has some comments from @jdm as well.
The text was updated successfully, but these errors were encountered: