about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-02-02 13:16:25 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2022-02-02 13:16:25 +1100
commit0ba47f32160d4c51717b4da6449f40079a5eb317 (patch)
treea470dc615528e53bac5cf48394e6862429b37403 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent89b61ea09f03060ceac3d0a1779dbb4152b6fddd (diff)
downloadrust-0ba47f32160d4c51717b4da6449f40079a5eb317.tar.gz
rust-0ba47f32160d4c51717b4da6449f40079a5eb317.zip
Make `SearchPathFile::file_name_str` non-optional.
Currently, it can be `None` if the conversion from `OsString` fails, in
which case all searches will skip over the `SearchPathFile`.

The commit changes things so that the `SearchPathFile` just doesn't get
created in the first place. Same behaviour, but slightly simpler code.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions