File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -742,19 +742,16 @@ mod tests {
742
742
} ) ;
743
743
assert ! ( artifact_exists, "Expected UsesBoth artifact to be compiled" ) ;
744
744
745
- // Seed empty expectations for all artifacts in this folder to avoid unexpected-ids.
746
- let mut linker = linker. output . artifact_ids ( ) . fold ( linker, |acc, ( id, _) | {
747
- let source = id
748
- . source
749
- . strip_prefix ( acc. project . root ( ) )
750
- . unwrap_or ( & id. source )
751
- . to_string_lossy ( )
752
- . into_owned ( ) ;
753
- let identifier = format ! ( "{source}:{}" , id. name) ;
754
- acc. assert_dependencies ( identifier, vec ! [ ] )
755
- } ) ;
756
-
757
745
linker
746
+ // seed empty expectations for libraries in this folder to avoid unexpected-ids
747
+ . assert_dependencies (
748
+ "default/linking/samefile_union/Libs.sol:LInit" . to_string ( ) ,
749
+ vec ! [ ] ,
750
+ )
751
+ . assert_dependencies (
752
+ "default/linking/samefile_union/Libs.sol:LRun" . to_string ( ) ,
753
+ vec ! [ ] ,
754
+ )
758
755
. assert_dependencies (
759
756
"default/linking/samefile_union/SameFileUnion.t.sol:UsesBoth" . to_string ( ) ,
760
757
vec ! [
You can’t perform that action at this time.
0 commit comments