Fix spacing of markdown code block fences in compiler rustdoc
This commit is contained in:
parent
b22856d192
commit
34b33a6763
2 changed files with 10 additions and 7 deletions
|
@ -2720,12 +2720,12 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
/// Check field access expressions, this works for both structs and tuples.
|
||||
/// Returns the Ty of the field.
|
||||
///
|
||||
/// ```not_rust
|
||||
/// base.field
|
||||
/// ^^^^^^^^^^ expr
|
||||
/// ^^^^ base
|
||||
/// ^^^^^ field
|
||||
/// ```
|
||||
/// ```ignore (illustrative)
|
||||
/// base.field
|
||||
/// ^^^^^^^^^^ expr
|
||||
/// ^^^^ base
|
||||
/// ^^^^^ field
|
||||
/// ```
|
||||
fn check_expr_field(
|
||||
&self,
|
||||
expr: &'tcx hir::Expr<'tcx>,
|
||||
|
|
|
@ -193,8 +193,10 @@ enum ImplTraitContext {
|
|||
}
|
||||
|
||||
/// Used for tracking import use types which will be used for redundant import checking.
|
||||
///
|
||||
/// ### Used::Scope Example
|
||||
/// ```rust,compile_fail
|
||||
///
|
||||
/// ```rust,compile_fail
|
||||
/// #![deny(redundant_imports)]
|
||||
/// use std::mem::drop;
|
||||
/// fn main() {
|
||||
|
@ -202,6 +204,7 @@ enum ImplTraitContext {
|
|||
/// drop(s);
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// Used::Other is for other situations like module-relative uses.
|
||||
#[derive(Clone, Copy, PartialEq, PartialOrd, Debug)]
|
||||
enum Used {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue