rust/library/core/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 Link to primitive instead of module 2020-08-22 12:16:03 +02:00
array Switch to intra-doc links in core::array 2020-08-23 14:42:21 -07:00
char Use intra-doc-links in core::{char, macros, fmt} 2020-08-24 00:13:23 +02:00
convert hir: introduce lang items for AST lowering 2020-08-16 15:42:23 +01:00
fmt Use intra-doc-links in core::{char, macros, fmt} 2020-08-24 00:13:23 +02:00
future hir: introduce lang items for AST lowering 2020-08-16 15:42:23 +01:00
hash mv std libs to library/ 2020-07-27 19:51:13 -05:00
iter Auto merge of #73565 - matthewjasper:core-min-spec, r=nagisa 2020-08-20 23:05:31 +00:00
macros Use intra-doc-links in core::{char, macros, fmt} 2020-08-24 00:13:23 +02:00
mem Rollup merge of #75038 - rust-lang:Havvy-patch-1, r=steveklabnik 2020-08-19 15:54:24 +09:00
num Rollup merge of #75825 - jrheard:patch-1, r=steveklabnik 2020-08-24 11:48:44 +09:00
ops Remove links that get imported from the prelude 2020-08-21 23:27:23 +02:00
prelude mv std libs to library/ 2020-07-27 19:51:13 -05:00
ptr bump stable version 2020-08-23 16:12:39 +02:00
slice Use min_specialization in libcore 2020-08-19 20:08:02 +01:00
str Disambiguate char -> prim@char for core 2020-08-23 22:40:20 -04:00
sync fence docs: fix example Mutex 2020-07-29 15:45:42 +02:00
task hir: introduce lang items for AST lowering 2020-08-16 15:42:23 +01:00
unicode mv std libs to library/ 2020-07-27 19:51:13 -05:00
any.rs Use intra-doc links 2020-08-14 20:50:38 +02:00
ascii.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
bool.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
borrow.rs Remove AsRef link as it is in the prelude 2020-08-10 20:29:20 +02:00
cell.rs add track_caller to RefCell::{borrow, borrow_mut} 2020-07-28 15:45:25 -04:00
clone.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
cmp.rs Rollup merge of #75831 - lzutao:https, r=Dylan-DPC 2020-08-24 11:48:47 +09:00
default.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
ffi.rs Use intra-doc-links in core::{raw, ffi, pin} 2020-08-22 22:25:27 +02:00
hint.rs Remove intra-doc link as it resolves without reference link 2020-08-12 08:28:55 +02:00
internal_macros.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
intrinsics.rs Don't import atomics unless supported by the platform 2020-08-23 23:11:47 -04:00
lazy.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
lib.rs Add #![feature(const_float_classify)] for f64::classify and friends 2020-08-22 12:28:31 -07:00
marker.rs docs: add another derive for Copyable struct 2020-08-18 18:40:19 +02:00
option.rs hir: introduce lang items for AST lowering 2020-08-16 15:42:23 +01:00
panic.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
panicking.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
pin.rs Use intra-doc-links in core::{raw, ffi, pin} 2020-08-22 22:25:27 +02:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
raw.rs Use intra-doc-links in core::{raw, ffi, pin} 2020-08-22 22:25:27 +02:00
result.rs Fix intra-doc links 2020-08-20 12:39:12 -07:00
time.rs Add link for Duration 2020-08-09 23:26:42 +02:00
tuple.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
unit.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00