Skip to content

Commit 96c2df8

Browse files
committed
Auto merge of #98120 - TaKO8Ki:box-diagnostic-metadata-field, r=estebank
[Experiment] Box `diagnostic_metadata` field closes #97954 r? `@estebank`
2 parents 475aec1 + 5ece481 commit 96c2df8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: compiler/rustc_resolve/src/late.rs

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

546546
/// Fields used to add information to diagnostic errors.
547-
diagnostic_metadata: DiagnosticMetadata<'ast>,
547+
diagnostic_metadata: Box<DiagnosticMetadata<'ast>>,
548548

549549
/// State used to know whether to ignore resolution errors for function bodies.
550550
///
@@ -1157,7 +1157,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
11571157
label_ribs: Vec::new(),
11581158
lifetime_ribs: Vec::new(),
11591159
current_trait_ref: None,
1160-
diagnostic_metadata: DiagnosticMetadata::default(),
1160+
diagnostic_metadata: Box::new(DiagnosticMetadata::default()),
11611161
// errors at module scope should always be reported
11621162
in_func_body: false,
11631163
lifetime_uses: Default::default(),

0 commit comments

Comments
 (0)