about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-04 04:48:35 +0000
committerbors <bors@rust-lang.org>2023-04-04 04:48:35 +0000
commit73e412b6d47f38560903b5faba0805fe208d7731 (patch)
tree0b45c81fb0691f7c6bf5fb4c3a9732619e2a90cb /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent85d9f176b70f8228ade33bd8fd90151299c13766 (diff)
parent3b22352d0d16034e112e58b032f1bf0fc1c818ba (diff)
downloadrust-73e412b6d47f38560903b5faba0805fe208d7731.tar.gz
rust-73e412b6d47f38560903b5faba0805fe208d7731.zip
Auto merge of #10592 - beetrees:parent-dir-bug-fix, r=giraffate
Fix bug with getting parent directories in `lookup_conf_file`

Currently `lookup_conf_file` doesn't canonicalize the configuration directory before using [`PathBuf::pop`](https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.pop) to get the parent directory. This isn't usually an issue when clippy is invoked via `cargo clippy` as `CARGO_MANIFEST_DIR` is already canonicalized. However, this currently causes `clippy-driver` to ignore any `clippy.toml` in any parent directories when  `CARGO_MANIFEST_DIR` and `CLIPPY_CONF_DIR` are not set.

changelog: Fix a bug that would cause parent directories not to be searched for `clippy.toml` when using `clippy-driver` directly.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions