-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[fuchsia] Add implementation for current_exe
#96193
Conversation
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
r? @thomcc (rust-highfive has picked a reviewer for you, use r? to override) |
r? @tmandry |
This comment has been minimized.
This comment has been minimized.
3c45245
to
f5c09f4
Compare
This comment has been minimized.
This comment has been minimized.
f5c09f4
to
1785da0
Compare
@bors delegate+ rollup
|
✌️ @djkoloski can now approve this pull request |
📌 Commit 1785da01c93ad094bab177438fbbbfcc046ee725 has been approved by `tmandry`` |
This implementation returns a best attempt at the current exe path. On fuchsia, fdio will always use `argv[0]` as the process name and if it is not set then an error will be returned. Because this is not guaranteed to be the case, this implementation returns an error if `argv` does not contain any elements.
1785da0
to
eb6b6a8
Compare
@bors r=tmandry |
📌 Commit eb6b6a8 has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#90630 (Create real parser for search queries) - rust-lang#96193 ([fuchsia] Add implementation for `current_exe`) - rust-lang#96196 (Remove assertion that all paths in `ShouldRun` exist) - rust-lang#96228 (Fix locations for intrinsics impls and change to links) - rust-lang#96236 (Add an explicit `Span` field to `OutlivesConstraint`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This implementation returns a best attempt at the current exe path. On
fuchsia, fdio will always use
argv[0]
as the process name and if it isnot set then an error will be returned. Because this is not guaranteed
to be the case, this implementation returns an error if
argv
does notcontain any elements.