Fix tidy error

This commit is contained in:
Aaron Hill 2018-10-25 15:32:59 -04:00
parent 098c659276
commit fa444be81d
No known key found for this signature in database
GPG key ID: B4087E510E98B164

View file

@ -342,7 +342,9 @@ impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> {
// we immediately bail out, since it's impossible for us to continue'
match vtable {
Vtable::VtableImpl(VtableImplData { impl_def_id, .. }) => {
if infcx.tcx.impl_polarity(*impl_def_id) == hir::ImplPolarity::Negative {
// Blame tidy for the weird bracket placement
if infcx.tcx.impl_polarity(*impl_def_id) == hir::ImplPolarity::Negative
{
debug!("evaluate_nested_obligations: Found explicit negative impl\
{:?}, bailing out", impl_def_id);
return None;