Fix type privacy lints error message
This commit is contained in:
parent
0a32ca9831
commit
35c6a1d0f3
19 changed files with 120 additions and 109 deletions
|
@ -1865,9 +1865,10 @@ impl SearchInterfaceForPrivateItemsVisitor<'_> {
|
|||
} else {
|
||||
lint::builtin::PRIVATE_BOUNDS
|
||||
};
|
||||
self.tcx.emit_lint(
|
||||
self.tcx.emit_spanned_lint(
|
||||
lint,
|
||||
hir_id,
|
||||
span,
|
||||
PrivateInterfacesOrBoundsLint {
|
||||
item_span: span,
|
||||
item_kind: self.tcx.def_descr(self.item_def_id.to_def_id()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue