-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
This code leaks the Box
at self.0
:
rust/src/librustc_errors/diagnostic_builder.rs
Lines 141 to 144 in d3c7934
unsafe { | |
diagnostic = std::ptr::read(&self.0.diagnostic); | |
std::mem::forget(self); | |
}; |
The leak was introduced in 2fcd870. cc @nnethercote
tesujiecstatic-morse
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.