-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New ambiguity with From derive macro in 2024 prelude #145524
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-criticalCritical priorityCritical priorityT-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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-criticalCritical priorityCritical priorityT-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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
I have a crate where I explicitly
use derive_more::From(derive-more 1.x) and thenuse super::*in sub-modules. With current nightly,#[derive(From)]is now regarded as ambiguous.I'm not using nightly features, so no
derive_from(#144889). Looking for existing tickets I found #135672 but in that case the code was glob importing std modules, which I'm not doing, and #142448 which is about multiple globs, which I'm also not doing.Code
https://salsa.debian.org/dgit-team/tag2upload-service-manager/-/tree/mini-sqlite-dump-0.1.0/mini-sqlite-dump?ref_type=tags
aka
git clone https://salsa.debian.org/dgit-team/tag2upload-service-manager -b mini-sqlite-dump-0.1.0https://docs.rs/crate/mini-sqlite-dump/0.1.0/builds/2421547
I expected to see this happen: it compiles with nightly like it does with stable.
Instead, this happened:
Version it worked on
1.90.0-beta.3
Version with regression
@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged