Repository navigation
Closed
rust-lang/cargo
#17589Labels
A-cratesArea: Crates and their interactions (like crate loading)Area: Crates and their interactions (like crate loading)A-proc-macrosArea: Procedural macrosArea: Procedural macrosC-bugCategory: This is a bug.Category: This is a bug.I-cargo-nominatedNominated for discussion during a cargo team meeting.Nominated for discussion during a cargo team meeting.S-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-cargoRelevant to the cargo team, which will review and decide on the PR/issue.Relevant to the cargo team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Description
This regression was discovered in the 1.100 beta crater run.
[INFO] [stdout] error[E0463]: can't find crate for `yote_recordstore_rust`
[INFO] [stdout] --> src/main.rs:1:5
[INFO] [stdout] |
[INFO] [stdout] 1 | use yote_recordstore_rust::object_store::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] For more information about this error, try `rustc --explain E0463`.
Metadata
Metadata
Assignees
Labels
A-cratesArea: Crates and their interactions (like crate loading)Area: Crates and their interactions (like crate loading)A-proc-macrosArea: Procedural macrosArea: Procedural macrosC-bugCategory: This is a bug.Category: This is a bug.I-cargo-nominatedNominated for discussion during a cargo team meeting.Nominated for discussion during a cargo team meeting.S-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-cargoRelevant to the cargo team, which will review and decide on the PR/issue.Relevant to the cargo team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Type
Projects
- StatusShow more project fieldsNominated
Activity
theemathas commentedon Oct 11, 2026
theemathas commentedon Oct 11, 2026
Notably, the
rust_object_storeregression only reproduces withcargo build, but not withcargo checktheemathas commentedon Oct 11, 2026
Bisection output with
cargo bisect-rustc --start=1.99.0 --end=beta -- build:Regressed in #161789. Notably this is a cargo submodule update, but isn't the one which involved the build dir v2 change.
theemathas commentedon Oct 11, 2026
Minimal reproducer: repro.zip
This reproducer also reproduces the problem with
cargo check. However, the original code needscargo buildto reproduce. I'm not sure why.I don't think
crate-type = ["lib"]withproc-macro = trueis supposed to be a legal combination.Cargo.toml
src/lib.rs
src/main.rs
An empty library crate is at
./dep.5 remaining items
theemathas commentedon Oct 11, 2026
Note: In the original code, this "proc macro" crate in the original code also exported non-proc-macro stuff
weihanglo commentedon Oct 11, 2026
Created a cargo side issue: rust-lang/cargo#17579
This is indeed a separate regression.
fix: `-L` for searching deps if crate-type is proc macro explicitly
fix: check crate type when pruning `-L` paths
weihanglo commentedon Oct 14, 2026
Beta backport PR on cargo side: rust-lang/cargo#17590
Will create a backport PR in this repo shortly after that one get merged.
fix: check crate type when pruning `-L` paths
weihanglo commentedon Oct 14, 2026
#164324
fix: check crate type when pruning `-L` paths (rust-lang#17589)
Auto merge of #164324 - weihanglo:cargo-1.100-beta-backport, r=weihanglo
Auto merge of #164324 - weihanglo:cargo-1.100-beta-backport, r=weihanglo
Auto merge of #164324 - weihanglo:cargo-1.100-beta-backport, r=weihanglo