]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #81105 - LingMan:init_directly, r=nagisa
authorAshley Mannix <kodraus@hey.com>
Mon, 18 Jan 2021 11:53:28 +0000 (21:53 +1000)
committerGitHub <noreply@github.com>
Mon, 18 Jan 2021 11:53:28 +0000 (21:53 +1000)
commitb4defec768e179f0cf3e83faaa5b1c4dac9e050a
tree2f97a0b5f89983c3100289c524ea65805b33a60b
parentd3ff9ac8e8899f06a32e85d9d1a8ec7b2abd6765
parent0a74e17211b9ba95555790be3a0a16a562d74280
Rollup merge of #81105 - LingMan:init_directly, r=nagisa

Initialize a few variables directly

Currently they are declared as `mut`, get initialized to a default value, and
then possibly overwritten.

By initializing to the final value directly, they don't need to be `mut` and
it's clear that they don't get mutated elsewhere later on.
compiler/rustc_resolve/src/late/lifetimes.rs