diff options
| author | bors <bors@rust-lang.org> | 2022-07-19 03:02:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-19 03:02:30 +0000 |
| commit | 96c2df810b0b681fee63cae11ca63844792b6190 (patch) | |
| tree | fd76647ccd7e125e6fc549b8ad20462d2157f971 /compiler/rustc_resolve | |
| parent | 475aec11886250ec93fbb6e8e1e3dbd4b35dfc89 (diff) | |
| parent | 5ece48116268cc84dda565d4d2641d619075c957 (diff) | |
| download | rust-96c2df810b0b681fee63cae11ca63844792b6190.tar.gz rust-96c2df810b0b681fee63cae11ca63844792b6190.zip | |
Auto merge of #98120 - TaKO8Ki:box-diagnostic-metadata-field, r=estebank
[Experiment] Box `diagnostic_metadata` field closes #97954 r? `@estebank`
Diffstat (limited to 'compiler/rustc_resolve')
| -rw-r--r-- | compiler/rustc_resolve/src/late.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs index 3ea285b723b..49761023ec3 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -544,7 +544,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. /// @@ -1157,7 +1157,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(), |
