about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com>2023-06-14 00:19:09 +0800
committer许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com>2023-11-20 11:45:44 +0800
commit8da09aed94e0c407f3c82450fa8268e6bff0f71b (patch)
treea19013f1bf57b22773a77fc0048320eee08f1711 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent4f3da903a43f22ea33d2ca4435a24b42fc1f842a (diff)
downloadrust-8da09aed94e0c407f3c82450fa8268e6bff0f71b.tar.gz
rust-8da09aed94e0c407f3c82450fa8268e6bff0f71b.zip
Add allow-by-default lint for unit bindings
This lint is not triggered if any of the following conditions are met:

- The user explicitly annotates the binding with the `()` type.
- The binding is from a macro expansion.
- The user explicitly wrote `let () = init;`
- The user explicitly wrote `let pat = ();`. This is allowed for local
  lifetimes.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions