Repository navigation
1.98 beta regressions involving ambiguous glob imports #159432
Copy link
Copy link
Closed as not planned
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.Category: This is a bug.I-lang-nominatedNominated for discussion during a lang team meeting.Nominated for discussion during a lang team meeting.I-lang-radarItems that are on lang's radar and will need eventual work or consideration.Items that are on lang's radar and will need eventual work or consideration.P-lang-drag-0Lang team prioritization drag level 0.https://rust-lang.zulipchat.com/#narrow/channel/410516-t-lang.Lang team prioritization drag level 0.https://rust-lang.zulipchat.com/#narrow/channel/410516-t-lang.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language teamregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Description
This regression was found by the 1.98 crater run.
[INFO] [stdout] error[E0659]: `SequenceNumber` is ambiguous
[INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/ros2-client-a2a0f36ac41415ea/3cab61b/src/service/mod.rs:347:51
[INFO] [stdout] |
[INFO] [stdout] 347 | sequence_number_gen: atomic::AtomicI64::new(SequenceNumber::default().into()),
[INFO] [stdout] | ^^^^^^^^^^^^^^ ambiguous name
[INFO] [stdout] |
[INFO] [stdout] = note: ambiguous because of multiple glob imports of a name in the same module
[INFO] [stdout] note: `SequenceNumber` could refer to the struct imported here
[INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/ros2-client-a2a0f36ac41415ea/3cab61b/src/service/mod.rs:10:3
[INFO] [stdout] |
[INFO] [stdout] 10 | *,
[INFO] [stdout] | ^
[INFO] [stdout] = help: consider adding an explicit import of `SequenceNumber` to disambiguate
[INFO] [stdout] note: `SequenceNumber` could also refer to the struct imported here
[INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/ros2-client-a2a0f36ac41415ea/3cab61b/src/service/mod.rs:18:9
[INFO] [stdout] |
[INFO] [stdout] 18 | pub use request_id::*;
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] = help: consider adding an explicit import of `SequenceNumber` to disambiguate
This error looks like it plausibly could be intentionally caused by #149195. cc @petrochenkov @mu001999
Errors similar to the above error affect 30 crates that were not previously found by the above PR's crater run:
Affected crates
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/dora-rs.dora-ros2-bridge/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/bengosney.lightningcss-py/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/tronical.css2slint/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/reg/shfonts-0.1.0/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/jolimail.mrml-core/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/sammosampson.hephaestus/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/PragmaTwice.ichigo-lang/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/ProgramCrafter.salsa-iwj-otter/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/Taher2512.strike-contracts-new/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/WangHoi.rtpmon/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/abdelrahmansheta16.SolLend-Backend/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/bobtajson.sol-oracle/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/dmitriyk-code.github4claude/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/golergka.rs-lox/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/hahastrongshi.rdtls/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/myers.myersrogue/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/nv0skar.Kiban/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/pludov.astro-epd-display/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/sammosampson.hephaestus/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/sum12.crawler/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/sunjay.wolf-asm/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/gh/tiago-vargas.rust-lox-interpreter/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/reg/apple-bundle-0.1.4/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/reg/asn1rs-model-0.3.0/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/reg/elgamal_ristretto-0.2.3/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/reg/fake-avx512-0.0.0/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/reg/jsi-sys-0.3.0-alpha.5/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/reg/rsubox-0.2.1/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/reg/s1mple-0.0.1/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.98-4/1.98.0-beta.1/reg/zima-0.1.0-alpha.2/log.txt
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.Category: This is a bug.I-lang-nominatedNominated for discussion during a lang team meeting.Nominated for discussion during a lang team meeting.I-lang-radarItems that are on lang's radar and will need eventual work or consideration.Items that are on lang's radar and will need eventual work or consideration.P-lang-drag-0Lang team prioritization drag level 0.https://rust-lang.zulipchat.com/#narrow/channel/410516-t-lang.Lang team prioritization drag level 0.https://rust-lang.zulipchat.com/#narrow/channel/410516-t-lang.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language teamregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Activity
petrochenkov commentedon Jul 17, 2026
From a cursory look, everything looks like legitimate examples of ambiguous glob imports.
The lint was reported for several years, most affected crates fixed it, but there's a long tail of outdated versions of the crates stuck in lock files.
theemathas commentedon Jul 17, 2026
Some more instances of this from the rustdoc crater run:
Affected crates
theemathas commentedon Jul 25, 2026
My understanding of the state of this is: This is intended breakage. However, I find it a bit worrying that there are many instances of this that were not detected by the previous crater run (used to inform making that breakage) missed a lot of affected crates.
Should this issue be closed, or should we get FCP from T-lang to affirm the intended breakage first?
apiraino commentedon Jul 30, 2026
Discussed during T-compiler triage.
We are ok with these additional crates accepted as breakage but we want to be sure that also t-lang approves this result, since they were unexpected (see previous comment). Or at least why the
rustdocones (see Guillaume's comment).One discriminating factor is whether this breaking change was behind a FCW for enough time. If this is the case, we're fine with this result. By reading this comment in #149195 it seems that it is (or should be the case, IIUC). @mejrs is trying to find out in #159901
@rustbot label -I-compiler-nominated +I-lang-nominated
mejrs commentedon Jul 30, 2026
I don't think it is related actually (but someone with more expertise should determine that), the pattern in #159901 has worked and still works unchanged.
My comment in the triage meeting was more about the fact that this code exists in the compiler
yet a FCW was not issued in the local crate. So I'm wondering if we are missing more cases where a FCW should be issued.
traviscross commentedon Aug 5, 2026
We talked about this in the lang meeting with all members present. We're going to accept this breakage.