]> git.lizzy.rs Git - rust.git/commit
Improve message for rustc --explain E0507
authorRuud van Asseldonk <ruuda@google.com>
Thu, 28 Jan 2016 21:23:47 +0000 (22:23 +0100)
committerRuud van Asseldonk <ruuda@google.com>
Thu, 28 Jan 2016 21:27:41 +0000 (22:27 +0100)
commitf841f061ecdff7c5fd791f164b4d873399621bde
treeb95d09bd6f15ab131ad77040de6713f6e401d7bf
parentb8b18aac12214d7135a083e2e6946aa197185d49
Improve message for rustc --explain E0507

E0507 can occur when you try to move out of a member of a mutably
borrowed struct, in which case `mem::replace` can help. Mentioning that
here hopefully saves future users a trip to Google.
src/librustc_borrowck/diagnostics.rs