about summary refs log tree commit diff
path: root/library/std/src/sys/unix/process/process_unix.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-09-13 17:15:40 -0400
committerJoshua Nelson <jyn514@gmail.com>2020-09-13 17:15:40 -0400
commit8a13fc494d4365e57d8f343219f0201458b68591 (patch)
tree8c63766b5fa5b5c54a498f5e4a49263d3d31a8ae /library/std/src/sys/unix/process/process_unix.rs
parent7dc0d335bcc819c770320635a055c9cfe076339a (diff)
downloadrust-8a13fc494d4365e57d8f343219f0201458b68591.tar.gz
rust-8a13fc494d4365e57d8f343219f0201458b68591.zip
Require `module_id` param to `resolve` to be non-empty
Previously, `resolve` would immediately check that `module_id` was
non-empty and give an error if not. This had two downsides:

- It introduced `Option`s everywhere, even if the calling function knew
it had a valid module, and
- It checked the module on each namespace, which is unnecessary: it only
needed to be checked once.

This makes the caller responsible for checking the module exists, making
the code a lot simpler.
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions