rust/library/alloc
bors aa7010df90 Auto merge of #75815 - jyn514:ambiguous-primitives, r=guillaumegomez
Report an ambiguity if both modules and primitives are in scope for intra-doc links

Closes https://github.com/rust-lang/rust/issues/75381

- Add a new `prim@` disambiguator, since both modules and primitives are in the same namespace
- Refactor `report_ambiguity` into a closure

Additionally, I noticed that rustdoc would previously allow `[struct@char]` if `char` resolved to a primitive (not if it had a DefId). I fixed that and added a test case.

I also need to update libstd to use `prim@char` instead of `type@char`. If possible I would also like to refactor `ambiguity_error` to use `Disambiguator` instead of its own hand-rolled match - that ran into issues with `prim@` (I updated one and not the other) and it would be better for them to be in sync.
2020-08-24 10:29:29 +00:00
..
benches Liballoc bench rename push_all extend_from_slice 2020-08-20 19:04:52 +08:00
src Auto merge of #75815 - jyn514:ambiguous-primitives, r=guillaumegomez 2020-08-24 10:29:29 +00:00
tests Move btree unit test to their native, privileged location 2020-08-14 17:54:09 +02:00
Cargo.toml