Skip to content

Commit 2de2e65

Browse files
Rollup merge of rust-lang#141599 - nnethercote:rm-Box-into_inner, r=fmease,chenyukang
Remove an unnecessary use of `Box::into_inner`. r? ```@chenyukang```
2 parents 4b47bd4 + 19802e8 commit 2de2e65

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

compiler/rustc_errors/src/diagnostic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ impl<'a, G: EmissionGuarantee> Diag<'a, G> {
13251325
));
13261326
self.note("consider using `--verbose` to print the full type name to the console");
13271327
}
1328-
Box::into_inner(self.diag.take().unwrap())
1328+
*self.diag.take().unwrap()
13291329
}
13301330

13311331
/// This method allows us to access the path of the file where "long types" are written to.

compiler/rustc_errors/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#![feature(array_windows)]
1313
#![feature(assert_matches)]
1414
#![feature(associated_type_defaults)]
15-
#![feature(box_into_inner)]
1615
#![feature(box_patterns)]
1716
#![feature(default_field_values)]
1817
#![feature(error_reporter)]

0 commit comments

Comments
 (0)