rust/library/alloc/src
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
..
alloc Replace Memoryblock with NonNull<[u8]> 2020-08-04 18:03:34 +02:00
collections Prefer https link for wikipedia URLs 2020-08-23 10:02:42 +00:00
prelude mv std libs to library/ 2020-07-27 19:51:13 -05:00
raw_vec Replace Memoryblock with NonNull<[u8]> 2020-08-04 18:03:34 +02:00
rc mv std libs to library/ 2020-07-27 19:51:13 -05:00
sync add missing newline 2020-08-14 01:28:04 +02:00
alloc.rs Use intra-doc-links in alloc 2020-08-21 00:25:25 +02:00
borrow.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
boxed.rs Auto merge of #75171 - amosonn:new_zeroed_slice, r=Amanieu 2020-08-22 18:46:42 +00:00
fmt.rs Apply suggestions from code review 2020-08-21 19:31:00 +02:00
lib.rs Auto merge of #75505 - Dylan-DPC:feature/arc_new, r=KodrAus 2020-08-24 08:26:59 +00:00
macros.rs Use intra-doc-links in alloc 2020-08-21 00:25:25 +02:00
raw_vec.rs Rollup merge of #75151 - pickfire:patch-4, r=LukasKalbertodt 2020-08-09 06:41:18 +09:00
rc.rs Auto merge of #75171 - amosonn:new_zeroed_slice, r=Amanieu 2020-08-22 18:46:42 +00:00
slice.rs Use intra-doc-links in alloc 2020-08-21 00:25:25 +02:00
str.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
string.rs Convert from str -> prim@str for alloc 2020-08-23 22:40:20 -04:00
sync.rs Auto merge of #75505 - Dylan-DPC:feature/arc_new, r=KodrAus 2020-08-24 08:26:59 +00:00
task.rs Move to intra-doc links for task.rs and vec.rs 2020-08-18 21:47:23 +05:30
tests.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
vec.rs Rollup merge of #75672 - kofls:intradoc-fix, r=jyn514 2020-08-20 10:07:19 -07:00