-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
treat no_mangle_generic_items as hard error instead of lint warning #154585
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,12 +53,11 @@ impl Invert for i64 { | |
| } | ||
|
|
||
| // CHECK: .balign | ||
| // CHECK-LABEL: generic_function: | ||
| // CHECK-LABEL: generic_functionxEB2_: | ||
| // CHECK: call | ||
| // CHECK: ret | ||
|
|
||
| #[unsafe(naked)] | ||
| #[no_mangle] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @folkertdev @Amanieu I had to remove the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You need the name mangling to make it match in the right place, right? It's probably fine this way. Maybe there is some combination of
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah the code we are patching looks like this |
||
| pub extern "C" fn generic_function<T: Invert>(x: i64) -> i64 { | ||
| naked_asm!( | ||
| "call {}", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.