Skip to content

Commit effb56e

Browse files
committed
macros: change code block language
With `ignore (rust)` rather than `ignore (pseudo-Rust)` my editor highlights the code in the block, which is nicer. Signed-off-by: David Wood <[email protected]>
1 parent 03c8b0b commit effb56e

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_macros/src/diagnostics

1 file changed

+4
-4
lines changed

compiler/rustc_macros/src/diagnostics/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use synstructure::Structure;
1212
/// Implements `#[derive(SessionDiagnostic)]`, which allows for errors to be specified as a struct,
1313
/// independent from the actual diagnostics emitting code.
1414
///
15-
/// ```ignore (pseudo-rust)
15+
/// ```ignore (rust)
1616
/// # extern crate rustc_errors;
1717
/// # use rustc_errors::Applicability;
1818
/// # extern crate rustc_span;
@@ -43,7 +43,7 @@ use synstructure::Structure;
4343
///
4444
/// Then, later, to emit the error:
4545
///
46-
/// ```ignore (pseudo-rust)
46+
/// ```ignore (rust)
4747
/// sess.emit_err(MoveOutOfBorrowError {
4848
/// expected,
4949
/// actual,
@@ -67,7 +67,7 @@ pub fn session_diagnostic_derive(s: Structure<'_>) -> TokenStream {
6767
/// suggestions to be specified as a structs or enums, independent from the actual diagnostics
6868
/// emitting code or diagnostic derives.
6969
///
70-
/// ```ignore (pseudo-rust)
70+
/// ```ignore (rust)
7171
/// #[derive(SessionSubdiagnostic)]
7272
/// pub enum ExpectedIdentifierLabel<'tcx> {
7373
/// #[label(slug = "parser-expected-identifier")]
@@ -104,7 +104,7 @@ pub fn session_diagnostic_derive(s: Structure<'_>) -> TokenStream {
104104
///
105105
/// Then, later, to add the subdiagnostic:
106106
///
107-
/// ```ignore (pseudo-rust)
107+
/// ```ignore (rust)
108108
/// diag.subdiagnostic(ExpectedIdentifierLabel::WithoutFound { span });
109109
///
110110
/// diag.subdiagnostic(RawIdentifierSuggestion { span, applicability, ident });

0 commit comments

Comments
 (0)