]> git.lizzy.rs Git - rust.git/commit
Don't complain re missing `mut` on attempt to partially initialize an uninitialized...
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 16 Oct 2018 14:46:04 +0000 (16:46 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 16 Oct 2018 14:58:08 +0000 (16:58 +0200)
commit3587ff58cce2f00d1be4d4e09d85b4ca9b4baff7
treee04ed1c2169045b8fc4eeed6f3bd09ffcf11c26d
parent57c467824bf72e0346fc7bc7140e232664c4e891
Don't complain re missing `mut` on attempt to partially initialize an uninitialized struct.

Under the semantics of #54986 (our short term plan), the partial
initialization itself will signal an error. We don't need to add noise
to the output by also complaining about `mut`. (In particular, the
user may well revise their code in a way that does not require `mut`.)
src/librustc_mir/borrow_check/mod.rs