Add method Vec<T>::as_mut_ptr()
auto merge of #12945 : cadencemarseille/rust/vec_ng-as_mut_ptr, r=alexcrichton
De-@ Session usage.
De-@ ty::ctxt usage.
De-@ tyencode::ctxt and related parts of astencode.
De-@ liveness.
De-@ type checking contexts.
De-@ trans contexts.
De-@ reachable.
De-@ filesearch.
De-@ CStore uses.
De-@ ParseSess uses.
De-@ resolve_lifetime.
De-@ typeck::check::method.
De-@ gather_loans.
De-@ move maps and rework parts of trans.
De-@ codemap and diagnostic.
Refactor pprust a bit.
Fix rustdoc and tests.
auto merge of #12735 : eddyb/rust/at-exodus-chapter-11, r=cmr