Commit 5f633d2
Include *.rmeta files in stdlib sysroot glob (#3860)
Starting around nightly `2026-01-22` (rustc 1.95.0-nightly), the Rust
distribution ships stdlib `.rlib` files as ~440-byte metadata stubs,
with full metadata in separate `.rmeta` files alongside them. The
[`_build_file_for_stdlib_template`](https://github.com/bazelbuild/rules_rust/blob/42b098b3a891d7425212c39697e436a21fb5399e/rust/private/repository_utils.bzl#L275)
glob [only includes
`*.rlib`](https://github.com/bazelbuild/rules_rust/blob/42b098b3a891d7425212c39697e436a21fb5399e/rust/private/repository_utils.bzl#L280-L286),
so the `.rmeta` files are excluded from the sysroot, causing
`error[E0786]: only metadata stub found` errors.
This PR adds `*.rmeta` to the glob.
Fixes #3859
Co-authored-by: Krasimir Georgiev <krasimir@google.com>1 parent 817bea7 commit 5f633d2
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| |||
0 commit comments