@@ -499,8 +499,11 @@ impl<'a> CrateLocator<'a> {
499
499
dylibs : FxIndexMap < PathBuf , PathKind > ,
500
500
) -> Result < Option < ( Svh , Library ) > , CrateError > {
501
501
let mut slot = None ;
502
- // Order here matters, rmeta should come first. See comment in
503
- // `extract_one` below.
502
+ // Order here matters, rmeta should come first.
503
+ //
504
+ // Make sure there's at most one rlib and at most one dylib.
505
+ //
506
+ // See comment in `extract_one` below.
504
507
let source = CrateSource {
505
508
rmeta : self . extract_one ( rmetas, CrateFlavor :: Rmeta , & mut slot) ?,
506
509
rlib : self . extract_one ( rlibs, CrateFlavor :: Rlib , & mut slot) ?,
@@ -729,7 +732,6 @@ impl<'a> CrateLocator<'a> {
729
732
|| file. starts_with ( self . target . dll_prefix . as_ref ( ) )
730
733
&& file. ends_with ( self . target . dll_suffix . as_ref ( ) )
731
734
{
732
- // Make sure there's at most one rlib and at most one dylib.
733
735
// Note to take care and match against the non-canonicalized name:
734
736
// some systems save build artifacts into content-addressed stores
735
737
// that do not preserve extensions, and then link to them using
0 commit comments