Regression in glob imports vs. macro and type namespaces (lib bytemuck
)
#112860
Labels
C-bug
Category: This is a bug.
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
I could not produce a standalone reproducer, but compiling
bytemuck
from the repository or as a dependency will reproduce the issue by failing to compile.nightly-2023-06-19
nightly-2023-06-20
To reproduce, run:
Version with regression
rustc --version --verbose
:Compilation errors
and many more. The notable thing here is that
NoUninit
and friends are imported viause super::*;
, and in super (the root), there is both a non-glob derive macro import (from the macro crate) and a glob trait import (from another module).Failed reproducer
I tried to reproduce this import situation in a single file as follows:
However, this compiles on all tested versions.
@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged
The text was updated successfully, but these errors were encountered: