Bad codegen partitioning with non-incremental compile in release mode #52084
Labels
A-codegen
Area: Code generation
C-bug
Category: This is a bug.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I have a larger application called
distributary
that encounters a linking error on current nightly when you try to compile mit-pdos/noria@216ec42 (also occurs on earlier commits) in release mode with incremental compilation turned off:Interestingly, it links just fine incremental compilation turned on:
It also compiles fine in debug mode with incremental compilation turned off:
The issue also occurs after
cargo clean
. Unfortunately, due to some NLL issues in past nightlies (#51348 and #51649), bisecting nightlies this isn't trivial. I've also tried producing a minimized reproducing example, but to no avail. This could be a dupe of #47989, although I don't immediately see any duplicated linking targets. Scanning through cargo's output with--verbose
, it also looks like the number of linked objects in debug vs release are the same.https://github.com/mit-pdos/distributary/tree/216ec42058b962727974ac7a0d43c84097f3f73d
The text was updated successfully, but these errors were encountered: