Don't store thir::Pat
in error structs
In several cases this avoids the need to clone the underlying pattern, and then print the clone later.
This commit is contained in:
parent
3148b35f6a
commit
e1fc4a997d
4 changed files with 32 additions and 40 deletions
|
@ -856,7 +856,7 @@ pub(crate) struct PatternNotCovered<'s, 'tcx> {
|
|||
pub(crate) span: Span,
|
||||
pub(crate) origin: &'s str,
|
||||
#[subdiagnostic]
|
||||
pub(crate) uncovered: Uncovered<'tcx>,
|
||||
pub(crate) uncovered: Uncovered,
|
||||
#[subdiagnostic]
|
||||
pub(crate) inform: Option<Inform>,
|
||||
#[subdiagnostic]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue