File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -762,14 +762,14 @@ impl<'a> CrateLocator<'a> {
762
762
}
763
763
764
764
pub ( crate ) fn into_error ( self , root : Option < CratePaths > ) -> CrateError {
765
- CrateError :: LocatorCombined ( CombinedLocatorError {
765
+ CrateError :: LocatorCombined ( Box :: new ( CombinedLocatorError {
766
766
crate_name : self . crate_name ,
767
767
root,
768
768
triple : self . triple ,
769
769
dll_prefix : self . target . dll_prefix . to_string ( ) ,
770
770
dll_suffix : self . target . dll_suffix . to_string ( ) ,
771
771
crate_rejections : self . crate_rejections ,
772
- } )
772
+ } ) )
773
773
}
774
774
}
775
775
@@ -958,7 +958,7 @@ pub(crate) enum CrateError {
958
958
StableCrateIdCollision ( Symbol , Symbol ) ,
959
959
DlOpen ( String ) ,
960
960
DlSym ( String ) ,
961
- LocatorCombined ( CombinedLocatorError ) ,
961
+ LocatorCombined ( Box < CombinedLocatorError > ) ,
962
962
NonDylibPlugin ( Symbol ) ,
963
963
}
964
964
Original file line number Diff line number Diff line change @@ -2051,13 +2051,13 @@ pub type FileLinesResult = Result<FileLines, SpanLinesError>;
2051
2051
2052
2052
#[ derive( Clone , PartialEq , Eq , Debug ) ]
2053
2053
pub enum SpanLinesError {
2054
- DistinctSources ( DistinctSources ) ,
2054
+ DistinctSources ( Box < DistinctSources > ) ,
2055
2055
}
2056
2056
2057
2057
#[ derive( Clone , PartialEq , Eq , Debug ) ]
2058
2058
pub enum SpanSnippetError {
2059
2059
IllFormedSpan ( Span ) ,
2060
- DistinctSources ( DistinctSources ) ,
2060
+ DistinctSources ( Box < DistinctSources > ) ,
2061
2061
MalformedForSourcemap ( MalformedSourceMapPositions ) ,
2062
2062
SourceNotAvailable { filename : FileName } ,
2063
2063
}
Original file line number Diff line number Diff line change @@ -542,10 +542,10 @@ impl SourceMap {
542
542
let hi = self . lookup_char_pos ( sp. hi ( ) ) ;
543
543
trace ! ( ?hi) ;
544
544
if lo. file . start_pos != hi. file . start_pos {
545
- return Err ( SpanLinesError :: DistinctSources ( DistinctSources {
545
+ return Err ( SpanLinesError :: DistinctSources ( Box :: new ( DistinctSources {
546
546
begin : ( lo. file . name . clone ( ) , lo. file . start_pos ) ,
547
547
end : ( hi. file . name . clone ( ) , hi. file . start_pos ) ,
548
- } ) ) ;
548
+ } ) ) ) ;
549
549
}
550
550
Ok ( ( lo, hi) )
551
551
}
@@ -603,10 +603,10 @@ impl SourceMap {
603
603
let local_end = self . lookup_byte_offset ( sp. hi ( ) ) ;
604
604
605
605
if local_begin. sf . start_pos != local_end. sf . start_pos {
606
- Err ( SpanSnippetError :: DistinctSources ( DistinctSources {
606
+ Err ( SpanSnippetError :: DistinctSources ( Box :: new ( DistinctSources {
607
607
begin : ( local_begin. sf . name . clone ( ) , local_begin. sf . start_pos ) ,
608
608
end : ( local_end. sf . name . clone ( ) , local_end. sf . start_pos ) ,
609
- } ) )
609
+ } ) ) )
610
610
} else {
611
611
self . ensure_source_file_source_present ( local_begin. sf . clone ( ) ) ;
612
612
You can’t perform that action at this time.
0 commit comments