Skip to content

Commit f1eee28

Browse files
committed
Put backticks around some attributes in doc comments.
Without backticks they cause some "unresolved link to `foo`" warnings.
1 parent 16087ee commit f1eee28

File tree

1 file changed

+6
-6
lines changed
  • compiler/rustc_index_macros/src

1 file changed

+6
-6
lines changed

compiler/rustc_index_macros/src/lib.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ mod newtype;
2323
/// The impls provided by default are Clone, Copy, PartialEq, Eq, and Hash.
2424
///
2525
/// Accepted attributes for customization:
26-
/// - #[derive(HashStable_Generic)]/#[derive(HashStable)]: derives
26+
/// - `#[derive(HashStable_Generic)]`/`#[derive(HashStable)]`: derives
2727
/// `HashStable`, as normal.
28-
/// - #[encodable]: derives `Encodable`/`Decodable`.
29-
/// - #[orderable]: derives `PartialOrd`/`Ord`, plus step-related methods.
30-
/// - #[debug_format = "Foo({})"]: derives `Debug` with particular output.
31-
/// - #[max = 0xFFFF_FFFD]: specifies the max value, which allows niche
28+
/// - `#[encodable]`: derives `Encodable`/`Decodable`.
29+
/// - `#[orderable]`: derives `PartialOrd`/`Ord`, plus step-related methods.
30+
/// - `#[debug_format = "Foo({})"]`: derives `Debug` with particular output.
31+
/// - `#[max = 0xFFFF_FFFD]`: specifies the max value, which allows niche
3232
/// optimizations. The default max value is 0xFFFF_FF00.
33-
/// - #[gate_rustc_only]: makes parts of the generated code nightly-only.
33+
/// - `#[gate_rustc_only]`: makes parts of the generated code nightly-only.
3434
#[proc_macro]
3535
#[cfg_attr(
3636
feature = "nightly",

0 commit comments

Comments
 (0)