diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-03-20 18:26:09 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-03-20 20:36:08 +0100 |
| commit | 056951d6289e3fbba444cbadec8b4eea7f92928e (patch) | |
| tree | a346f55814756096537d9572dabbc264b02309ff /compiler/rustc_query_system/src | |
| parent | 4767ccec935824fa5d08ce3502b233d7a66adec1 (diff) | |
| download | rust-056951d6289e3fbba444cbadec8b4eea7f92928e.tar.gz rust-056951d6289e3fbba444cbadec8b4eea7f92928e.zip | |
Take &mut Diagnostic in emit_diagnostic.
Taking a Diagnostic by move would break the usual pattern `diag.label(..).emit()`.
Diffstat (limited to 'compiler/rustc_query_system/src')
| -rw-r--r-- | compiler/rustc_query_system/src/dep_graph/graph.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_query_system/src/dep_graph/graph.rs b/compiler/rustc_query_system/src/dep_graph/graph.rs index a080b4a3e9a..f7655e55d34 100644 --- a/compiler/rustc_query_system/src/dep_graph/graph.rs +++ b/compiler/rustc_query_system/src/dep_graph/graph.rs @@ -784,8 +784,8 @@ impl<K: DepKind> DepGraph<K> { let handle = tcx.dep_context().sess().diagnostic(); - for diagnostic in side_effects.diagnostics { - handle.emit_diagnostic(&diagnostic); + for mut diagnostic in side_effects.diagnostics { + handle.emit_diagnostic(&mut diagnostic); } } } |
