Rollup merge of #46979 - clarcharr:rustc_docs, r=arielb1
Make internal docs build properly. `'1` isn't a valid lifetime and resulted in a syntax error.
This commit is contained in:
commit
c1d2eca7ba
|
@ -1896,7 +1896,7 @@ pub struct GeneratorLayout<'tcx> {
|
|||
///
|
||||
/// Example: If type check produces a closure with the closure substs:
|
||||
///
|
||||
/// ```
|
||||
/// ```text
|
||||
/// ClosureSubsts = [
|
||||
/// i8, // the "closure kind"
|
||||
/// for<'x> fn(&'a &'x u32) -> &'x u32, // the "closure signature"
|
||||
|
@ -1907,7 +1907,7 @@ pub struct GeneratorLayout<'tcx> {
|
|||
/// here, there is one unique free region (`'a`) but it appears
|
||||
/// twice. We would "renumber" each occurence to a unique vid, as follows:
|
||||
///
|
||||
/// ```
|
||||
/// ```text
|
||||
/// ClosureSubsts = [
|
||||
/// i8, // the "closure kind"
|
||||
/// for<'x> fn(&'1 &'x u32) -> &'x u32, // the "closure signature"
|
||||
|
|
Loading…
Reference in New Issue