diff options
| author | bors <bors@rust-lang.org> | 2018-07-29 06:32:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-29 06:32:24 +0000 |
| commit | a5c2d0fffaaf0b764c01bc4066e51ffd475ceae9 (patch) | |
| tree | 5255142d5e3a48744db52d110ca90950724d69a9 /src/librustc_errors/lib.rs | |
| parent | fb0653e40289eecf32f3fac1e84fc69b815ce5cb (diff) | |
| parent | e995a91a314da7df85f5471cbc621874b5d42b53 (diff) | |
| download | rust-a5c2d0fffaaf0b764c01bc4066e51ffd475ceae9.tar.gz rust-a5c2d0fffaaf0b764c01bc4066e51ffd475ceae9.zip | |
Auto merge of #52764 - sinkuu:cleanup, r=nikomatsakis
Misc cleanups
Diffstat (limited to 'src/librustc_errors/lib.rs')
| -rw-r--r-- | src/librustc_errors/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs index 67d2aa4d770..82546747755 100644 --- a/src/librustc_errors/lib.rs +++ b/src/librustc_errors/lib.rs @@ -608,9 +608,8 @@ impl Handler { if can_show_explain && are_there_diagnostics { let mut error_codes = self.emitted_diagnostic_codes.borrow() - .clone() - .into_iter() - .filter_map(|x| match x { + .iter() + .filter_map(|x| match *x { DiagnosticId::Error(ref s) => Some(s.clone()), _ => None, }) |
