Merge commit '97a5daa659
' into clippyup
This commit is contained in:
parent
dda2aef64f
commit
fb0142ae41
223 changed files with 3261 additions and 1687 deletions
|
@ -245,7 +245,7 @@ enum LenOutput<'tcx> {
|
|||
Option(DefId),
|
||||
Result(DefId, Ty<'tcx>),
|
||||
}
|
||||
fn parse_len_output(cx: &LateContext<'_>, sig: FnSig<'tcx>) -> Option<LenOutput<'tcx>> {
|
||||
fn parse_len_output<'tcx>(cx: &LateContext<'_>, sig: FnSig<'tcx>) -> Option<LenOutput<'tcx>> {
|
||||
match *sig.output().kind() {
|
||||
ty::Int(_) | ty::Uint(_) => Some(LenOutput::Integral),
|
||||
ty::Adt(adt, subs) if cx.tcx.is_diagnostic_item(sym::Option, adt.did) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue