]> git.lizzy.rs Git - rust.git/commit
Auto merge of #55432 - zackmdavis:single_life, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sun, 4 Nov 2018 09:45:49 +0000 (09:45 +0000)
committerbors <bors@rust-lang.org>
Sun, 4 Nov 2018 09:45:49 +0000 (09:45 +0000)
commit86b88e6a85f4c532c58cdcdabf6050c6170628e0
treefe7ad2928a38aa8d377fd2223db1208055239504
parent794fc062bed5804ad1d468ab50525cfe52479a08
parentfaea5bbc650d93e28e4a89a62aee0dc1409b08c7
Auto merge of #55432 - zackmdavis:single_life, r=nikomatsakis

single life

 * structured ~~autofixable~~ (well, pending #53934 and rust-lang-nursery/rustfix#141) suggestions for the single-use-lifetimes lint in the case of function and method reference args
 * don't consider the anonymous lifetime `'_` as "single-use" (it's intended for exactly this sort of thing)

![single_life](https://user-images.githubusercontent.com/1076988/47613227-3b2b6400-da48-11e8-8efd-cb975ddf537d.png)

r? @nikomatsakis
src/librustc/middle/resolve_lifetime.rs