Skip to content

Commit

Permalink
Allow runfiles object to be an arbitrary expression. (#2651)
Browse files Browse the repository at this point in the history
Our use case is `runfiles::rlocation!(cache.runfiles, "foo")` but this
would also allow `runfiles::rlocation!(Runfiles::create()?, "foo")`
  • Loading branch information
matts1 committed May 15, 2024
1 parent d87eadf commit a6222cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/runfiles/runfiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const TEST_SRCDIR_ENV_VAR: &str = "TEST_SRCDIR";

#[macro_export]
macro_rules! rlocation {
($r:ident, $path:expr) => {
($r:expr, $path:expr) => {
$r.rlocation_from($path, env!("REPOSITORY_NAME"))
};
}
Expand Down

0 comments on commit a6222cd

Please sign in to comment.