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> {
141141 let prev_kind = source. dylib . as_ref ( ) . or ( source. rlib . as_ref ( ) )
142142 . or ( source. rmeta . as_ref ( ) )
143143 . expect ( "No sources for crate" ) . 1 ;
144- if ret . is_none ( ) && ( prev_kind == kind || prev_kind == PathKind :: All ) {
144+ if kind . matches ( prev_kind) {
145145 ret = Some ( cnum) ;
146146 }
147147 } ) ;
Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ crate struct CrateMetadata {
9090#[ derive( Clone ) ]
9191pub struct CStore {
9292 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 > ,
9595}
9696
9797pub enum LoadedMacro {
You can’t perform that action at this time.
0 commit comments