Skip to content

Commit 74a6338

Browse files
authored
Unrolled build for #155167
Rollup merge of #155167 - mejrs:box_directive, r=Kivooeo Reduce size of `ImportData` Perhaps this will undo the regression caused by #152901
2 parents bf4fbfb + c4e4156 commit 74a6338

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_resolve/src/imports.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl<'ra> std::fmt::Debug for ImportKind<'ra> {
146146

147147
#[derive(Debug, Clone, Default)]
148148
pub(crate) struct OnUnknownData {
149-
directive: Directive,
149+
directive: Box<Directive>,
150150
}
151151

152152
impl OnUnknownData {
@@ -161,7 +161,7 @@ impl OnUnknownData {
161161
Some(tcx.features()),
162162
)
163163
{
164-
Some(Self { directive: *directive? })
164+
Some(Self { directive: Box::new(*directive?) })
165165
} else {
166166
None
167167
}

0 commit comments

Comments
 (0)