-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-nameresname, path and module resolutionname, path and module resolutionS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
When editing https://github.com/rust-lang/rust/blob/e1ff91f439bc09f566da211c6449821b4e949279/compiler/rustc_span/src/lib.rs, items from the libstd prelude don't seem to be in scope (including macros exported via #[macro_export]
). Manually accessing items from libstd and libcore does work, though.
Looking at the code we use to inject the prelude, this looks a bit questionable, since it relies on the order of dependencies:
However, this could also be caused by us not handling "cyclic" dev-dependencies correctly, because I see this in the output:
[ERROR project_model::workspace] cyclic deps: rustc_std_workspace_core(CrateId(1165)) -> core(CrateId(191))
[ERROR project_model::workspace] cyclic deps: rustc_std_workspace_core(CrateId(1165)) -> core(CrateId(191))
[ERROR project_model::workspace] cyclic deps: rustc_std_workspace_core(CrateId(1165)) -> core(CrateId(191))
Metadata
Metadata
Assignees
Labels
A-nameresname, path and module resolutionname, path and module resolutionS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now