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>2020-09-23 18:35:08 +0000
committerbors <bors@rust-lang.org>2020-09-23 18:35:08 +0000
commite636b88aa180e8cab9e28802aac90adbc984234d (patch)
treeb6dfdadeedb1340c378114b97655a9e9791f7d21 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent29b12f22fc55da265f58b1bdf851bd69f60bf9a5 (diff)
parent6c056d346562eebf8535e2a4415c353a911b6280 (diff)
downloadrust-e636b88aa180e8cab9e28802aac90adbc984234d.tar.gz
rust-e636b88aa180e8cab9e28802aac90adbc984234d.zip
Auto merge of #6044 - rschoon:rc-buffer, r=yaahc
Add `rc_buffer` lint for checking Rc<String> and friends

Fixes #2623

This is a bit different from the original PR attempting to implement this type of lint.   Rather than linting against converting into the unwanted types, this PR lints against declaring the unwanted type in a struct or function definition.

I'm reasonably happy with what I have here, although I used the fully qualified type names for the Path and OsString suggestions, and I'm not sure if I should have just used the short versions instead, even if they might not have been declared via use.

Also, I don't know if "buffer type" is the best way to put it or not.  Alternatively I could call it a "growable type" or "growable buffer type", but I was thinking of PathBuf when I started making the lint.

changelog: Add `rc_buffer` lint
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions