]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #50598 - whitfin:unnecessary-mut-borrow, r=michaelwoerister
authorAlex Crichton <alex@alexcrichton.com>
Thu, 10 May 2018 16:35:37 +0000 (11:35 -0500)
committerGitHub <noreply@github.com>
Thu, 10 May 2018 16:35:37 +0000 (11:35 -0500)
Remove unnecessary mutable borrow and resizing in DepGraph::serialize

I might be mistaken, but I noticed this whilst in this file for something else. It appears that this mutable borrow is unnecessary and since it's locking it should be removed. The resizing looks redundant since nothing additional is added to the fingerprints in this function, so that can also be removed.

1  2 
src/librustc/dep_graph/graph.rs

Simple merge