Skip to content

Commit

Permalink
box diagnostic_metadata field
Browse files Browse the repository at this point in the history
  • Loading branch information
TaKO8Ki committed Jun 15, 2022
1 parent 4e02a92 commit 5ece481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_resolve/src/late.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ struct LateResolutionVisitor<'a, 'b, 'ast> {
current_trait_ref: Option<(Module<'a>, TraitRef)>,

/// Fields used to add information to diagnostic errors.
diagnostic_metadata: DiagnosticMetadata<'ast>,
diagnostic_metadata: Box<DiagnosticMetadata<'ast>>,

/// State used to know whether to ignore resolution errors for function bodies.
///
Expand Down Expand Up @@ -1017,7 +1017,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
label_ribs: Vec::new(),
lifetime_ribs: Vec::new(),
current_trait_ref: None,
diagnostic_metadata: DiagnosticMetadata::default(),
diagnostic_metadata: Box::new(DiagnosticMetadata::default()),
// errors at module scope should always be reported
in_func_body: false,
lifetime_uses: Default::default(),
Expand Down

0 comments on commit 5ece481

Please sign in to comment.