rust/library
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 Auto merge of #75815 - jyn514:ambiguous-primitives, r=guillaumegomez 2020-08-24 10:29:29 +00:00
backtrace@4083a90168
core Auto merge of #75815 - jyn514:ambiguous-primitives, r=guillaumegomez 2020-08-24 10:29:29 +00:00
panic_abort
panic_unwind
proc_macro Use intra-doc link in proc_macro 2020-08-22 22:29:43 +02:00
profiler_builtins
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Auto merge of #75815 - jyn514:ambiguous-primitives, r=guillaumegomez 2020-08-24 10:29:29 +00:00
stdarch@78891cdf29
term
test Prefer https link for wikipedia URLs 2020-08-23 10:02:42 +00:00
unwind