Skip to content

Commit

Permalink
Rollup merge of #73748 - jyn514:doc-fix, r=Manishearth
Browse files Browse the repository at this point in the history
Add code block to code in documentation of `List::rebase_onto`

Closes #73676

@bors rollup=always
  • Loading branch information
Manishearth authored Jun 26, 2020
2 parents 91a638d + d279b3c commit a7eee3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_middle/ty/subst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,10 @@ impl<'a, 'tcx> InternalSubsts<'tcx> {
///
/// For example given:
///
/// ```no_run
/// trait X<S> { fn f<T>(); }
/// impl<U> X<U> for U { fn f<V>() {} }
/// ```
///
/// * If `self` is `[Self, S, T]`: the identity substs of `f` in the trait.
/// * If `source_ancestor` is the def_id of the trait.
Expand Down

0 comments on commit a7eee3c

Please sign in to comment.