about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-02 07:06:03 +0000
committerbors <bors@rust-lang.org>2022-04-02 07:06:03 +0000
commitbaaddf2b84008c6128b928472660bafa56e41b37 (patch)
tree99d9f79d46ec46f875d7f1c9e8d18ea122e8530d /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentf6b29923c6cd6b577dd1a96724db40b05b828993 (diff)
parent10a6d872d4e42884c4be43a51806ccdd6f8b89b5 (diff)
downloadrust-baaddf2b84008c6128b928472660bafa56e41b37.tar.gz
rust-baaddf2b84008c6128b928472660bafa56e41b37.zip
Auto merge of #8611 - Alexendoo:module-files-relative-paths, r=llogiq
Handle relative paths in module_files lints

The problem being that when clippy is run in the project's directory `lp` would be a relative path, this wasn't caught by the tests as there `lp` is an absolute path. Being a relative path it did not start with `trim_src_path` and so was ignored

Also allowed the removal of some `.to_os_string`/`.to_owned`s

changelog: Fixes [`self_named_module_files`] and [`mod_module_files`] not linting

Fixes #8123, cc `@DevinR528`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions