-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
New lints: fn changed ABI #503
Comments
The third checkbox was handled in #650. |
Hi, I would like to try the remaining task on this issue. |
Thanks for looking into this. Have you had a chance to check out the schema these queries are written against, or tried out some queries in the rustdoc query playground? If not, they are good to take a peek at. Note that the playground can only query one crate at a time — it can't compare two different versions at once. The Hope this helps! Let me know if you have any more questions! |
That error message means there was another, earlier error that caused the If they fail in a freshly cloned repo, then my best guess is that you might not have the right version of Rust installed. |
Got it, thanks. It turns out the cause of my issue was I didn't generate the required rust doc JSON before running |
@obi1kenobi The second & third points in this are done, right? I am asking because they not ticked. |
Yeah! So I guess this issue seems done -- nice! |
I think I got confused yesterday. I haven't seen the 3rd one implemented. Can you please double check? |
Agreed, not done yet. Reopening. We probably want to do a review of the lints and test cases here, to ensure they are consistent and have minimal overlap. It looks like the lint that matches on It's also likely that if a function is both |
Yup, agreed. That is one of the reasons I got super confused yesterday when looking at this group. |
Lints:
pub fn
changed ABI to an ABI of a different name, regardless of unwind: e.g."C"
to"Rust"
, or"system-unwind"
to"C"
pub fn
changed from an unwind-capable ABI to the same-named ABI without unwind:"C-unwind"
to"C"
(New lint: add function_abi_no_longer_unwind lint #689)pub fn
changed from a non-unwind ABI to the unwind-capable equivalent of that same ABI, e.g."C"
to"C-unwind"
fn
marked#[no_mangle]
or#[export_name]
with no importable names changed to ABI of different namepub fn
lints#[no_mangle]
or#[export_name]
means the function's export name must be globally unique, so match on thatexport_name: String
property onFunction
(implemented here), to simplify matching and account for both#[no_mangle]
and#[export_name]
The text was updated successfully, but these errors were encountered: