rust/library/std/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
..
collections Switch to intra-doc links in std::collections 2020-08-23 13:51:01 -07:00
ffi Convert str -> prim@str in std 2020-08-23 22:40:20 -04:00
io Convert str -> prim@str in std 2020-08-23 22:40:20 -04:00
net Fix a link, improve method resolution 2020-08-16 14:41:12 +02:00
os Auto merge of #74576 - myfreeweb:freebsd-sanitizers, r=oli-obk 2020-08-15 11:38:24 +00:00
prelude Move the std::vec link back to a path-based link to make it compile with --stage 0 2020-08-11 21:30:20 +02:00
sync Prefer https link for wikipedia URLs 2020-08-23 10:02:42 +00:00
sys Make raw standard stream constructors const 2020-08-21 13:17:20 +02:00
sys_common Prevent __rust_begin_short_backtrace frames from being tail-call optimised away 2020-08-07 19:31:25 +01:00
thread Move to intra doc links for std::thread documentation 2020-08-20 22:03:00 +02:00
alloc.rs Make grow_impl unsafe 2020-08-18 15:22:10 +02:00
ascii.rs Move to intra doc links for ascii.rs and panic.rs, updating the docs a little 2020-08-12 22:58:18 +02:00
backtrace.rs std: Switch from libbacktrace to gimli 2020-07-28 16:34:01 -07:00
env.rs Remove unnecessary links in env.rs 2020-08-17 15:16:09 +01:00
error.rs Convert str -> prim@str in std 2020-08-23 22:40:20 -04:00
f32.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
f64.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
fs.rs Rollup merge of #75324 - ericseppanen:master, r=JohnTitor 2020-08-21 17:55:08 +09:00
future.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
keyword_docs.rs Move to intra doc links for keyword documentation 2020-08-17 22:17:14 +02:00
lazy.rs Rollup merge of #75696 - matklad:mirit, r=RalfJung 2020-08-19 11:12:25 -07:00
lib.rs Convert str -> prim@str in std 2020-08-23 22:40:20 -04:00
macros.rs Add missing links 2020-08-22 20:23:50 -07:00
memchr.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
num.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
panic.rs Move to intra doc links for ascii.rs and panic.rs, updating the docs a little 2020-08-12 22:58:18 +02:00
panicking.rs Rollup merge of #74200 - poliorcetics:std-panicking-unsafe-block-in-unsafe-fn, r=Mark-Simulacrum 2020-08-10 09:07:46 +09:00
path.rs Auto merge of #75246 - pickfire:patch-5, r=Amanieu 2020-08-15 19:51:44 +00:00
primitive_docs.rs Auto merge of #75028 - MrModder:master, r=steveklabnik 2020-08-23 16:59:10 +00:00
process.rs doc: Fix typo in std::process::Child documentation 2020-08-23 16:38:23 -07:00
rt.rs Prevent __rust_begin_short_backtrace frames from being tail-call optimised away 2020-08-07 19:31:25 +01:00
time.rs Use explicit path link in place for doc in time 2020-08-12 22:17:12 +08:00