You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
2018 edition allows ungated access to unstable crates #52489
@rust-lang/compiler Can we get some eyes on this, not necessarily to fix but at least to confirm that we believe a fix can be made and landed in time for RC? This is a hard-stop blocker for RC.
Which loads the crate (producing an error if no crate with that name exists), but doesn't record the resolution. So there's nothing to check - and presumably no way to use that broken import.
The part that's missing is this (recording the import resolutions):
Activity
Mark-Simulacrum commentedon Jul 31, 2018
@rust-lang/compiler Can we get some eyes on this, not necessarily to fix but at least to confirm that we believe a fix can be made and landed in time for RC? This is a hard-stop blocker for RC.
eddyb commentedon Aug 1, 2018
So this is generally harmless (you can't actually get anything from the unstable crate), except for it being a minor dead-code-but-allowed hazard.
The culprit appears to be this special-casing:
rust/src/librustc_resolve/resolve_imports.rs
Lines 635 to 641 in e94df4a
Which loads the crate (producing an error if no crate with that name exists), but doesn't record the resolution. So there's nothing to check - and presumably no way to use that broken import.
The part that's missing is this (recording the import resolutions):
rust/src/librustc_resolve/resolve_imports.rs
Lines 878 to 884 in e94df4a
But the special-casing exits early:
rust/src/librustc_resolve/resolve_imports.rs
Lines 693 to 694 in e94df4a
Expected minimal diff (between the two lines in the last snippet):
Rollup merge of rust-lang#52930 - eddyb:issue-52489, r=cramertj
Rollup merge of rust-lang#52930 - eddyb:issue-52489, r=cramertj