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

Add a way to use #[used(linker)] #61

Merged
merged 1 commit into from
May 15, 2023
Merged

Add a way to use #[used(linker)] #61

merged 1 commit into from
May 15, 2023

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented May 15, 2023

inventory::submit! {
    #![used(linker)]
    Foo::new(...)
}

@dtolnay dtolnay changed the title Add a way to used #[used(linker)] Add a way to use #[used(linker)] May 15, 2023
@dtolnay
Copy link
Owner Author

dtolnay commented May 15, 2023

This requires #![feature(used_with_arg)] for now (rust-lang/rust#93798).

@dtolnay dtolnay merged commit f9888c5 into master May 15, 2023
@dtolnay dtolnay deleted the usedlinker branch May 15, 2023 14:22
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.

1 participant