Auto merge of #138817 - cuviper:beta-next, r=cuviper

[beta] backports

- CI: Stop /msys64/bin from being prepended to PATH in msys2 shell #136815
- Install licenses into `share/doc/rust/licenses` #138412

r? cuviper