fn item_might_be_inlined(tcx: TyCtxt<'a, 'tcx, 'tcx>,
                         item: &hir::Item,
                         attrs: CodegenFnAttrs) -> bool {
    if attrs.requests_inline() {
        return true
    }

    match item.node {
        hir::ItemKind::Impl(..) |
        hir::ItemKind::Fn(..) => {
            let generics = tcx.generics_of(tcx.hir.local_def_id(item.id));
            generics_require_inlining(generics)
        }
        _ => false,
    }
}
// Returns true if the given item must be inlined because it may be
// monomorphized or it was marked with `#[inline]`. This will only return
// true for functions.
Returns true if the given item must be inlined because it may be
monomorphized or it was marked with `#[inline]`. This will only return
true for functions.
Returns true if the given item must be inlined because it may be monomorphized or it was marked with ` # [ inline ] ` . This will only return true for functions .
fn item_might_be_inlined(tcx: TyCtxt<'a, 'tcx, 'tcx>,
                         item: &hir::Item,
                         attrs: CodegenFnAttrs) -> bool {
    if attrs.requests_inline() {
        return true
    }
    match item.node {
        hir::ItemKind::Impl(..) |
        hir::ItemKind::Fn(..) => {
            let generics = tcx.generics_of(tcx.hir.local_def_id(item.id));
            generics_require_inlining(generics)
        }
        _ => false,
    }
}
fn item_might_be_inlined ( tcx : TyCtxt < ' a , ' tcx , ' tcx > , item : & hir :: Item , attrs : CodegenFnAttrs ) -> bool { if attrs . requests_inline ( ) { return true } match item . node { hir :: ItemKind :: Impl ( .. ) | hir :: ItemKind :: Fn ( .. ) => { let generics = tcx . generics_of ( tcx . hir . local_def_id ( item . id ) ) ; generics_require_inlining ( generics ) } _ => false , } }
Returns true if the given item must be inlined because it may be
monomorphized or it was marked with `#[inline]`.
Returns true if the given item must be inlined because it may be monomorphized or it was marked with ` # [ inline ] ` .
tcx
TyCtxt<'a, 'tcx, 'tcx>
item
&hir::Item
attrs
CodegenFnAttrs