add a comment about the drop order for EncodedMetadata
This commit is contained in:
parent
03de5c4a14
commit
ec64b4c90e
1 changed files with 1 additions and 0 deletions
|
@ -2144,6 +2144,7 @@ fn prefetch_mir(tcx: TyCtxt<'_>) {
|
|||
// generated regardless of trailing bytes that end up in it.
|
||||
|
||||
pub struct EncodedMetadata {
|
||||
// The declaration order matters because `mmap` should be dropped before `_temp_dir`.
|
||||
mmap: Option<Mmap>,
|
||||
// We need to carry MaybeTempDir to avoid deleting the temporary
|
||||
// directory while accessing the Mmap.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue