-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow runfiles object to be an arbitrary expression. #2651
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Our use case is `runfiles::rlocation!(cache.runfiles, "foo")` but this would also allow `runfiles::rlocation!(Runfiles::create()?, "foo")`
DavidZbarsky-at
approved these changes
May 15, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense! Sorry I am a rust macro noob :)
No worries, me too. I reviewed your PR and didn't spot it either. |
illicitonion
approved these changes
May 15, 2024
rrbutani
referenced
this pull request
in bazel-contrib/toolchains_llvm
May 16, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_rust](https://togithub.com/bazelbuild/rules_rust) | http_archive | minor | `0.44.0` -> `0.45.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_rust (rules_rust)</summary> ### [`v0.45.0`](https://togithub.com/bazelbuild/rules_rust/releases/tag/0.45.0) [Compare Source](https://togithub.com/bazelbuild/rules_rust/compare/0.44.0...0.45.0) ### 0.45.0 ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_rust", integrity = "sha256-0IoZbO7cp5obgv01ucsnAjrWdGpBasntBusUXtdj1aY=", urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.45.0/rules_rust-v0.45.0.tar.gz"], ) ``` Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup #### What's Changed - Fix cc_common_link when using sibling repository layout by [@​yuzhy8701](https://togithub.com/yuzhy8701) in [https://github.com/bazelbuild/rules_rust/pull/2643](https://togithub.com/bazelbuild/rules_rust/pull/2643) - Allow runfiles object to be an arbitrary expression. by [@​matts1](https://togithub.com/matts1) in [https://github.com/bazelbuild/rules_rust/pull/2651](https://togithub.com/bazelbuild/rules_rust/pull/2651) - Allow searching for the rlocation of a module. by [@​matts1](https://togithub.com/matts1) in [https://github.com/bazelbuild/rules_rust/pull/2652](https://togithub.com/bazelbuild/rules_rust/pull/2652) - Add support for generated sources to rust-analyzer. by [@​matts1](https://togithub.com/matts1) in [https://github.com/bazelbuild/rules_rust/pull/2654](https://togithub.com/bazelbuild/rules_rust/pull/2654) - Added logging to crate_universe checksum validation by [@​UebelAndre](https://togithub.com/UebelAndre) in [https://github.com/bazelbuild/rules_rust/pull/2657](https://togithub.com/bazelbuild/rules_rust/pull/2657) - Release 0.45.0 by [@​UebelAndre](https://togithub.com/UebelAndre) in [https://github.com/bazelbuild/rules_rust/pull/2658](https://togithub.com/bazelbuild/rules_rust/pull/2658) #### New Contributors - [@​yuzhy8701](https://togithub.com/yuzhy8701) made their first contribution in [https://github.com/bazelbuild/rules_rust/pull/2643](https://togithub.com/bazelbuild/rules_rust/pull/2643) **Full Changelog**: bazelbuild/rules_rust@0.44.0...0.45.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/bazel-contrib/toolchains_llvm). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjMuNSIsInVwZGF0ZWRJblZlciI6IjM3LjM2My41IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Our use case is
runfiles::rlocation!(cache.runfiles, "foo")
but this would also allowrunfiles::rlocation!(Runfiles::create()?, "foo")