File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
tests/testsuite/cargo_tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -254,8 +254,12 @@ fn parse_edge_kinds(
254
254
|es| {
255
255
es. flat_map ( |e| e. split ( ',' ) )
256
256
. filter ( |e| {
257
- no_proc_macro = * e == "no-proc-macro" ;
258
- !no_proc_macro
257
+ if * e == "no-proc-macro" {
258
+ no_proc_macro = true ;
259
+ false
260
+ } else {
261
+ true
262
+ }
259
263
} )
260
264
. collect ( )
261
265
} ,
Original file line number Diff line number Diff line change @@ -2357,12 +2357,11 @@ foo v0.1.0 ([ROOT]/foo)
2357
2357
"# ] ] )
2358
2358
. run ( ) ;
2359
2359
2360
- // change flag order, no-proc-macro takes no effect if followed by other flags
2360
+ // change flag order, expecting the same output
2361
2361
p. cargo ( "tree -e no-proc-macro,normal" )
2362
2362
. with_stdout_data ( str![ [ r#"
2363
2363
foo v0.1.0 ([ROOT]/foo)
2364
- ├── dep v1.0.0
2365
- └── pm v1.0.0 (proc-macro)
2364
+ └── dep v1.0.0
2366
2365
2367
2366
"# ] ] )
2368
2367
. run ( ) ;
You can’t perform that action at this time.
0 commit comments