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

Implicit panic calls not collected during monomorphization #90405

Closed
nbdd0121 opened this issue Oct 29, 2021 · 1 comment · Fixed by #90406
Closed

Implicit panic calls not collected during monomorphization #90405

nbdd0121 opened this issue Oct 29, 2021 · 1 comment · Fixed by #90406
Assignees
Labels
A-codegen Area: Code generation C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@nbdd0121
Copy link
Contributor

nbdd0121 commented Oct 29, 2021

Implicit panic calls can be generated from Assert MIR terminator, but they are not collected during monomorphization. This means that link error will occur if the panic functions are not codegenned with core crate, e.g. when it is marked inline.

This causes breakage in rust-lang/cargo#10019 when #90273 changes the function to be inline if panic_immediate_abort is set and exposes this issue.

@nbdd0121 nbdd0121 added the C-bug Category: This is a bug. label Oct 29, 2021
@nbdd0121
Copy link
Contributor Author

@rustbot label: T-compiler A-codegen
@rustbot claim

@rustbot rustbot added A-codegen Area: Code generation T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 29, 2021
@bors bors closed this as completed in db062de Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants