Merge commit '7c21f91b15' into clippyup
This commit is contained in:
parent
82f469f81b
commit
7cd86aa1be
293 changed files with 6318 additions and 2753 deletions
|
|
@ -44,7 +44,7 @@ declare_clippy_lint! {
|
|||
/// pub struct PubBaz;
|
||||
/// impl PubBaz {
|
||||
/// fn private() {} // ok
|
||||
/// pub fn not_ptrivate() {} // missing #[inline]
|
||||
/// pub fn not_private() {} // missing #[inline]
|
||||
/// }
|
||||
///
|
||||
/// impl Bar for PubBaz {
|
||||
|
|
@ -97,7 +97,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingInline {
|
|||
let attrs = cx.tcx.hir().attrs(it.hir_id());
|
||||
check_missing_inline_attrs(cx, attrs, it.span, desc);
|
||||
},
|
||||
hir::ItemKind::Trait(ref _is_auto, ref _unsafe, ref _generics, _bounds, trait_items) => {
|
||||
hir::ItemKind::Trait(ref _is_auto, ref _unsafe, _generics, _bounds, trait_items) => {
|
||||
// note: we need to check if the trait is exported so we can't use
|
||||
// `LateLintPass::check_trait_item` here.
|
||||
for tit in trait_items {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue