File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ impl<'a> CrateLoader<'a> {
141
141
let prev_kind = source. dylib . as_ref ( ) . or ( source. rlib . as_ref ( ) )
142
142
. or ( source. rmeta . as_ref ( ) )
143
143
. expect ( "No sources for crate" ) . 1 ;
144
- if ret . is_none ( ) && ( prev_kind == kind || prev_kind == PathKind :: All ) {
144
+ if kind . matches ( prev_kind) {
145
145
ret = Some ( cnum) ;
146
146
}
147
147
} ) ;
Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ crate struct CrateMetadata {
90
90
#[ derive( Clone ) ]
91
91
pub struct CStore {
92
92
metas : IndexVec < CrateNum , Option < Lrc < CrateMetadata > > > ,
93
- pub ( crate ) injected_panic_runtime : Option < CrateNum > ,
94
- pub ( crate ) allocator_kind : Option < AllocatorKind > ,
93
+ crate injected_panic_runtime : Option < CrateNum > ,
94
+ crate allocator_kind : Option < AllocatorKind > ,
95
95
}
96
96
97
97
pub enum LoadedMacro {
You can’t perform that action at this time.
0 commit comments