]> git.lizzy.rs Git - rust.git/commit
Add scary warnings to errors-downgraded-to-warnings in borrowck=migrate.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 24 Jul 2018 23:34:17 +0000 (01:34 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 26 Jul 2018 11:17:55 +0000 (13:17 +0200)
commit91dc3e5b56ec36dcebbb982c4cfebb9541d14684
tree5608798470bb9788c1ed41518e7013862f638114
parent346011515760dd552bd41d4abf8a2a55471a9e84
Add scary warnings to errors-downgraded-to-warnings in borrowck=migrate.

Also convert an ICE that became reachable code under borrowck=migrate
into a normally reported error (which is then downgraded to a
warning). This actually has a nice side benefit of providing a
somewhat more useful error message, at least in the particular case of
the example from issue #27282.
src/librustc_mir/borrow_check/mod.rs
src/librustc_mir/borrow_check/mutability_errors.rs