]> git.lizzy.rs Git - rust.git/commit
Auto merge of #102068 - cjgillot:erased-lifetime-print, r=eholk
authorbors <bors@rust-lang.org>
Sat, 24 Sep 2022 01:23:17 +0000 (01:23 +0000)
committerbors <bors@rust-lang.org>
Sat, 24 Sep 2022 01:23:17 +0000 (01:23 +0000)
commite1c28e0c857280ce829beab16ef6082cd518db98
tree45064a3b9e035f0fbad036478caea48be1d21cbf
parent4a14677239bbd9a3892d165ee24513c1a05820e4
parenteb1ddd2573fc41062c36d5ceb484f5a99364b3b8
Auto merge of #102068 - cjgillot:erased-lifetime-print, r=eholk

Always print '_, even for erased lifetimes.

Explicit lifetime arguments are now the recommended syntax in rust 2018 and rust 2021.  This PR applies this discipline to rustc itself.
compiler/rustc_middle/src/ty/print/pretty.rs
src/test/mir-opt/issue_99325.main.mir_map.0.mir