We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cce0d50 commit 4f89c51Copy full SHA for 4f89c51
src/parse/session.rs
@@ -225,8 +225,10 @@ impl ParseSess {
225
// Methods that should be restricted within the parse module.
226
impl ParseSess {
227
pub(super) fn emit_diagnostics(&self, diagnostics: Vec<Diagnostic>) {
228
- for diagnostic in diagnostics {
229
- self.parse_sess.span_diagnostic.emit_diagnostic(&diagnostic);
+ for mut diagnostic in diagnostics {
+ self.parse_sess
230
+ .span_diagnostic
231
+ .emit_diagnostic(&mut diagnostic);
232
}
233
234
0 commit comments