clippy::perf fixes
This commit is contained in:
parent
03d488b48a
commit
611bbcb044
10 changed files with 17 additions and 21 deletions
|
@ -1754,7 +1754,6 @@ impl SearchInterfaceForPrivateItemsVisitor<'_> {
|
|||
|| self.in_assoc_ty
|
||||
|| self.tcx.resolutions(()).has_pub_restricted
|
||||
{
|
||||
let descr = descr.to_string();
|
||||
let vis_span =
|
||||
self.tcx.sess.source_map().guess_head_span(self.tcx.def_span(def_id));
|
||||
if kind == "trait" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue