Skip to content
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

Change the type of crust fns to extern "C" #8666

Closed

Conversation

nikomatsakis
Copy link
Contributor

Change the type of crust fns like this one:

extern fn foo() { ... }

from *u8 to extern "C" fn().

r? @pcwalton (or whomever)

@@ -483,6 +484,7 @@ impl Builder {
debug!("Store %s -> %s",
self.ccx.tn.val_to_str(val),
self.ccx.tn.val_to_str(ptr));
assert!(is_not_null(self.llbuilder));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!self.llbuilder.is_null()?

bors added a commit that referenced this pull request Aug 22, 2013
…=pcwalton

Change the type of crust fns like this one:

    extern fn foo() { ... }

from `*u8` to `extern "C" fn()`.

r? @pcwalton (or whomever)
@bors bors closed this Aug 22, 2013
MicahChalmer added a commit to MicahChalmer/rust-fuse-mc-original that referenced this pull request Aug 27, 2013
@nikomatsakis nikomatsakis deleted the issue-3678-extern-fn-types branch March 30, 2016 16:15
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 30, 2022
Don't lint `while_let_loop` when significant drop order would change

fixes rust-lang#7226
fixes rust-lang#7913
fixes rust-lang#5717

For rust-lang#5717 it may not stay fully fixed. This is only completely fixed right now due to all the allowed drop impls have `#[may_dangle]` on their drop impls. This may get changed in the future based on how significant drops are determined, but the example listed with `RefCell` shouldn't break.

changelog: Don't lint `while_let_loop` when the order of significant drops would change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants