Uh oh!
There was an error while loading. Please reload this page.
Update the doc for std::prelude to the correct behavior - #73484
Conversation
rust-highfive
commented
Jun 18, 2020
r? @sfackler (rust_highfive has picked a reviewer for you, use r? to override) |
ehuss
commented
Jun 18, 2020
I don't think this is correct. Name resolution works through a chain of lookups. For example, it will roughly look in order:
where each one can shadow the one below it. I don't think there is an equivalent way to express this through Rust code. Also |
23996bd to
8f0bd5fComparesfackler
commented
Jun 19, 2020
@bors r+ rollup |
bors
commented
Jun 19, 2020
📌 Commit 8f0bd5f has been approved by |
…arth Rollup of 16 pull requests Successful merges: - rust-lang#71420 (Specialization is unsound) - rust-lang#71899 (Refactor `try_find` a little) - rust-lang#72689 (add str to common types) - rust-lang#72791 (update coerce docs and unify relevant tests) - rust-lang#72934 (forbid mutable references in all constant contexts except for const-fns) - rust-lang#73027 (Make `need_type_info_err` more conservative) - rust-lang#73347 (Diagnose use of incompatible sanitizers) - rust-lang#73359 (shim.rs: avoid creating `Call` terminators calling `Self`) - rust-lang#73399 (Clean up E0668 explanation) - rust-lang#73436 (Clean up E0670 explanation) - rust-lang#73440 (Add src/librustdoc as an alias for src/tools/rustdoc) - rust-lang#73442 (pretty/mir: const value enums with no variants) - rust-lang#73452 (Unify region variables when projecting associated types) - rust-lang#73458 (Use alloc::Layout in DroplessArena API) - rust-lang#73484 (Update the doc for std::prelude to the correct behavior) - rust-lang#73506 (Bump Rustfmt and RLS) Failed merges: r? @ghost
Fixes#64686.
One line change to ensure the docs are correct about the behavior of the compiler when inserting
std::prelude::v1.I don't think examples are necessary but I can add some (especially those from the original issue) if needed.