Merge pull request #506 from yati-sagade/master

Lint for pointing out needless continue statements, fixes #111
This commit is contained in:
Oliver Schneider
2017-04-25 12:37:24 +02:00
committed by GitHub
9 changed files with 668 additions and 0 deletions

View File

@@ -983,3 +983,4 @@ pub fn type_size<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, ty: ty::Ty<'tcx>) -> Opti
.infer_ctxt((), Reveal::All)
.enter(|infcx| ty.layout(&infcx).ok().map(|lay| lay.size(&TargetDataLayout::parse(cx.sess())).bytes()))
}