NFC don't convert types to identical types
This commit is contained in:
parent
a96d57bdb6
commit
8479945c08
24 changed files with 35 additions and 50 deletions
|
@ -956,11 +956,7 @@ impl Map {
|
|||
// The local is not tracked at all, so it does not alias anything.
|
||||
return;
|
||||
};
|
||||
let elems = place
|
||||
.projection
|
||||
.iter()
|
||||
.map(|&elem| elem.try_into())
|
||||
.chain(tail_elem.map(Ok).into_iter());
|
||||
let elems = place.projection.iter().map(|&elem| elem.try_into()).chain(tail_elem.map(Ok));
|
||||
for elem in elems {
|
||||
// A field aliases the parent place.
|
||||
if let Some(vi) = self.places[index].value_index {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue