about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-04-18 11:29:43 +0000
committerbors <bors@rust-lang.org>2019-04-18 11:29:43 +0000
commitc6e43b1ba7974ba21b82b3c02d9a6221a7cd96b9 (patch)
tree632eec8f689b801d4d19a668d4b5a2d110948774 /src/test/incremental/thinlto
parent6feed2713c7740eb5868eba43745bc508b8b77aa (diff)
parent7e9cb5b84a42419bad8eccf7434480f4108c2341 (diff)
downloadrust-c6e43b1ba7974ba21b82b3c02d9a6221a7cd96b9.tar.gz
rust-c6e43b1ba7974ba21b82b3c02d9a6221a7cd96b9.zip
Auto merge of #3954 - andrehjr:add-lint-path-buf-overwrite, r=flip1995
Add Lint PathBufPushOverwrite

Closes #3923

This is a very simple Lint that checks if push is being called with a Root Path. Because that can make it overwrite the previous path.

I used std::path::Path to check if it's root, in order to keep it working across windows/linux environments instead of checking for '/'. Is that alright?

On the `if_chain!` block, Is there a way to make it short while getting the value of the first argument? I got the example from other lints.

Note that this is first Lint, I hope I got everything covered  🚀
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions