Skip to content

Commit d05edbe

Browse files
authored
Rollup merge of #134660 - dtolnay:markdowncode, r=lqd
Fix spacing of markdown code block fences in compiler rustdoc Two place have misaligned open and close ```` ``` ````. I noticed these because one of them disrupted syntax highlighting in my editor for the rest of the file as I was working on a different change. <p align="center"><img src="https://github.com/user-attachments/assets/5de21d08-c30c-4e9c-8587-e83b988b9db5" width="500"></p>
2 parents c16f00c + 34b33a6 commit d05edbe

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

compiler/rustc_hir_typeck/src/expr.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -2720,12 +2720,12 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
27202720
/// Check field access expressions, this works for both structs and tuples.
27212721
/// Returns the Ty of the field.
27222722
///
2723-
/// ```not_rust
2724-
/// base.field
2725-
/// ^^^^^^^^^^ expr
2726-
/// ^^^^ base
2727-
/// ^^^^^ field
2728-
/// ```
2723+
/// ```ignore (illustrative)
2724+
/// base.field
2725+
/// ^^^^^^^^^^ expr
2726+
/// ^^^^ base
2727+
/// ^^^^^ field
2728+
/// ```
27292729
fn check_expr_field(
27302730
&self,
27312731
expr: &'tcx hir::Expr<'tcx>,

compiler/rustc_resolve/src/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,18 @@ enum ImplTraitContext {
193193
}
194194

195195
/// Used for tracking import use types which will be used for redundant import checking.
196+
///
196197
/// ### Used::Scope Example
197-
/// ```rust,compile_fail
198+
///
199+
/// ```rust,compile_fail
198200
/// #![deny(redundant_imports)]
199201
/// use std::mem::drop;
200202
/// fn main() {
201203
/// let s = Box::new(32);
202204
/// drop(s);
203205
/// }
204206
/// ```
207+
///
205208
/// Used::Other is for other situations like module-relative uses.
206209
#[derive(Clone, Copy, PartialEq, PartialOrd, Debug)]
207210
enum Used {

0 commit comments

Comments
 (0)