Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Mark main() with a C ABI #278

Merged
merged 1 commit into from
Jul 5, 2020
Merged

Mark main() with a C ABI #278

merged 1 commit into from
Jul 5, 2020

Conversation

mciantyre
Copy link
Contributor

See #277. The PR updates Reset to describe main() as having a C ABI, rather than a Rust ABI.

The documentation says that main() should have a C ABI. Additionally,
the #[entry] macro will create a main() function that has a C ABI.
Marking main() as 'extern "Rust"' is inconsistent with its calling
convention.
@mciantyre mciantyre requested a review from a team as a code owner July 5, 2020 13:58
@rust-highfive
Copy link

r? @ithinuel

(rust_highfive has picked a reviewer for you, use r? to override)

Copy link
Contributor

@jonas-schievink jonas-schievink left a comment

Choose a reason for hiding this comment

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

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 5, 2020

Build succeeded:

@bors bors bot merged commit 3664d46 into rust-embedded:master Jul 5, 2020
@mciantyre mciantyre deleted the fix/main-abi branch July 5, 2020 15:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants