]> git.lizzy.rs Git - rust.git/commitdiff
No need to use local.into here
authorSantiago Pastorino <spastorino@gmail.com>
Fri, 13 Dec 2019 19:23:38 +0000 (16:23 -0300)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Fri, 10 Jan 2020 08:08:25 +0000 (09:08 +0100)
src/librustc/mir/mod.rs

index 32d85314c7ab7694f003f98d88bac745a49dea16..84fe077513e4d2496d82e33858035e8f4dec3aa1 100644 (file)
@@ -1793,7 +1793,7 @@ pub fn as_ref(&self) -> PlaceRef<'_, 'tcx> {
 
 impl From<Local> for Place<'_> {
     fn from(local: Local) -> Self {
-        Place { local: local.into(), projection: List::empty() }
+        Place { local, projection: List::empty() }
     }
 }