Skip to content

Commit f231d75

Browse files
committed
Allow ambiguous macros
1 parent 9eccc58 commit f231d75

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

text/1946-intra-rustdoc-links.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ Our proposal is this:
289289
applies to modules and tuple structs which exist in both namespaces.
290290
Rustdoc will throw an error if you use a non-disambiguated path in
291291
the case of there being a value in both the type and value namespace.
292-
Non-disambiguated paths cannot be used to link to macros.
293292
- Links to types can be disambiguated by prefixing them with the concrete
294293
item type:
295294
- Links to any type-namespace object can be prefixed with `type@`,
@@ -309,8 +308,8 @@ Our proposal is this:
309308
will work for the other (i.e. you can use `struct@` to refer to an enum),
310309
but do not rely on this.
311310
- In links to macros,
312-
the link label _must_ end with a `!`,
313-
e.g., `Look at the [FOO!] macro`. You can alternatively use a `foo@` prefix,
311+
the link label can end with a `!`,
312+
e.g., `Look at the [FOO!] macro`. You can alternatively use a `macro@` prefix,
314313
e.g. `[macro@foo]`
315314
- For disambiguating links to values, we differentiate three cases:
316315
- Links to any kind of value (function, const, static) can be prefixed with `value@`,

0 commit comments

Comments
 (0)