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

Trying to fix CI failure #231

Merged
merged 1 commit into from
Dec 29, 2023
Merged

Trying to fix CI failure #231

merged 1 commit into from
Dec 29, 2023

Conversation

pacak
Copy link
Owner

@pacak pacak commented Dec 28, 2023

The culprit lied in rust-lang/rust#116505

In short, with default features turned off, main was trivial enough to
be marked as inline function automatically which then made the symbol
weak. Since nobody was referencing it, it got stripped away.

Marking main in default-features=false config as #[inline(never)] or
replacing 1 + 1 in it's body with a simple println!("foo") call (to make
the main function sophisticated enough not to be subject to the new
automatic marking as inline) makes the test pass again.

@pacak pacak force-pushed the ci-exp branch 2 times, most recently from 58e8e65 to 8d5edea Compare December 29, 2023 01:22
The culprit lied in rust-lang/rust#116505

In short, with default features turned off, main was trivial enough to
be marked as inline function automatically which then made the symbol
weak. Since nobody was referencing it, it got stripped away.

Marking main in default-features=false config as #[inline(never)] or
replacing 1 + 1 in it's body with a simple println!("foo") call (to make
the main function sophisticated enough not to be subject to the new
automatic marking as inline) makes the test pass again.
@pacak pacak merged commit c5738ba into master Dec 29, 2023
3 checks passed
@pacak pacak deleted the ci-exp branch December 29, 2023 01:45
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