File tree Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -158,8 +158,7 @@ impl Packages {
158
158
. map ( PackageIdSpec :: from_package_id) ;
159
159
specs. extend ( matched_pkgs) ;
160
160
}
161
- emit_pattern_not_found ( ws, patterns, false )
162
- . or_else ( |e| ws. config ( ) . shell ( ) . warn ( e) ) ?;
161
+ emit_pattern_not_found ( ws, patterns, false ) ?;
163
162
specs
164
163
}
165
164
Packages :: Default => ws
Original file line number Diff line number Diff line change @@ -3770,13 +3770,8 @@ fn build_virtual_manifest_glob_not_found() {
3770
3770
. build ( ) ;
3771
3771
3772
3772
p. cargo ( "build -p bar -p '*z'" )
3773
- . with_stderr (
3774
- "\
3775
- [WARNING] package pattern(s) `*z` not found in workspace [..]
3776
- [COMPILING] bar v0.1.0 ([..])
3777
- [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
3778
- " ,
3779
- )
3773
+ . with_status ( 101 )
3774
+ . with_stderr ( "[ERROR] package pattern(s) `*z` not found in workspace [..]" )
3780
3775
. run ( ) ;
3781
3776
}
3782
3777
Original file line number Diff line number Diff line change @@ -3033,9 +3033,8 @@ fn test_virtual_manifest_glob_not_found() {
3033
3033
. build ( ) ;
3034
3034
3035
3035
p. cargo ( "test -p bar -p '*z'" )
3036
- . with_stderr_contains ( "[WARNING] package pattern(s) `*z` not found in workspace [..]" )
3037
- . with_stdout_contains ( "running 1 test\n test bar ... ok" )
3038
- . with_stdout_does_not_contain ( "running 1 test\n test baz ... ok" )
3036
+ . with_status ( 101 )
3037
+ . with_stderr ( "[ERROR] package pattern(s) `*z` not found in workspace [..]" )
3039
3038
. run ( ) ;
3040
3039
}
3041
3040
You can’t perform that action at this time.
0 commit comments