Commit c297c3e
authored
test: Fixed arg order in rustdoc json test (#16968)
While rebasing #16807 I notice a
new test was added in #16773 that passes `-Zbuild-dir-new-layout` but
the test is `assert`ing the old layout. Which I was initially quite
confused by.
After investigating I realized it was due to `-Z` flags being before and
after the command.
```
cargo -Zbuild-dir-new-layout <command> -Zunstable-options
```
Moving the `-Zunstable-options` before the command fixes the issue.
(moving `-Zbuild-dir-new-layout` after the command also works)
Not quite sure if this is a bug or just initiative behavior.
I do not see it documented in
https://doc.rust-lang.org/cargo/reference/unstable.html so if its
expected I think it might be worth documenting.
Maybe related: #155891 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
| 524 | + | |
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| |||
0 commit comments