File tree 2 files changed +8
-3
lines changed 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,8 @@ pub trait ArgMatchesExt {
289
289
for flag in & [ "features" , "no-default-features" ] {
290
290
if self . _is_present ( flag) {
291
291
bail ! (
292
- "--{} is not allowed in the root of a virtual workspace" ,
292
+ "--{} is not allowed in the root of a virtual workspace\n \
293
+ note: while this was previously accepted, it didn't actually do anything",
293
294
flag
294
295
) ;
295
296
}
Original file line number Diff line number Diff line change @@ -2017,13 +2017,17 @@ fn virtual_ws_flags() {
2017
2017
. build ( ) ;
2018
2018
2019
2019
p. cargo ( "build --features=f1" )
2020
- . with_stderr ( "[ERROR] --features is not allowed in the root of a virtual workspace" )
2020
+ . with_stderr (
2021
+ "[ERROR] --features is not allowed in the root of a virtual workspace\n \
2022
+ note: while this was previously accepted, it didn't actually do anything",
2023
+ )
2021
2024
. with_status ( 101 )
2022
2025
. run ( ) ;
2023
2026
2024
2027
p. cargo ( "build --no-default-features" )
2025
2028
. with_stderr (
2026
- "[ERROR] --no-default-features is not allowed in the root of a virtual workspace" ,
2029
+ "[ERROR] --no-default-features is not allowed in the root of a virtual workspace\n \
2030
+ note: while this was previously accepted, it didn't actually do anything",
2027
2031
)
2028
2032
. with_status ( 101 )
2029
2033
. run ( ) ;
You can’t perform that action at this time.
0 commit comments