Skip to content

Commit 96cd028

Browse files
authored
Rollup merge of rust-lang#118338 - nnethercote:backticks, r=compiler-errors
Backticks fixes r? `@lqd`
2 parents 828db28 + 566df27 commit 96cd028

File tree

2 files changed

+7
-7
lines changed
  • compiler

2 files changed

+7
-7
lines changed

Diff for: compiler/rustc_ast_pretty/src/pprust/state.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ pub fn print_crate<'a>(
151151
/// Note: some old proc macros parse pretty-printed output, so changes here can
152152
/// break old code. For example:
153153
/// - #63896: `#[allow(unused,` must be printed rather than `#[allow(unused ,`
154-
/// - #73345: `#[allow(unused)] must be printed rather than `# [allow(unused)]
154+
/// - #73345: `#[allow(unused)]` must be printed rather than `# [allow(unused)]`
155155
///
156156
fn space_between(tt1: &TokenTree, tt2: &TokenTree) -> bool {
157157
use token::*;

Diff for: 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)