cleanup mir visitor for rustc::pass_by_value
This commit is contained in:
parent
7e2733bb1d
commit
cf9c0a5935
23 changed files with 193 additions and 150 deletions
|
@ -773,7 +773,7 @@ impl CanConstProp {
|
|||
}
|
||||
|
||||
impl Visitor<'_> for CanConstProp {
|
||||
fn visit_local(&mut self, &local: &Local, context: PlaceContext, _: Location) {
|
||||
fn visit_local(&mut self, local: Local, context: PlaceContext, _: Location) {
|
||||
use rustc_middle::mir::visit::PlaceContext::*;
|
||||
match context {
|
||||
// Projections are fine, because `&mut foo.x` will be caught by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue