Skip to content

Commit 5ece481

Browse files
committed
box diagnostic_metadata field
1 parent 4e02a92 commit 5ece481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_resolve/src/late.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ struct LateResolutionVisitor<'a, 'b, 'ast> {
538538
current_trait_ref: Option<(Module<'a>, TraitRef)>,
539539

540540
/// Fields used to add information to diagnostic errors.
541-
diagnostic_metadata: DiagnosticMetadata<'ast>,
541+
diagnostic_metadata: Box<DiagnosticMetadata<'ast>>,
542542

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

0 commit comments

Comments
 (0)