More formatting fixes

This commit is contained in:
Aaron Hill 2018-02-10 14:53:08 -05:00
parent 1531fbe9be
commit 0bfbe24fd9
No known key found for this signature in database
GPG key ID: B4087E510E98B164
2 changed files with 2 additions and 3 deletions

View file

@ -1562,7 +1562,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
}
/// Clears the selection, evaluation, and projection cachesThis is useful when
/// repeatedly attemping to select an Obligation while chagning only
/// repeatedly attemping to select an Obligation while changing only
/// its ParamEnv, since FulfillmentContext doesn't use 'probe'
pub fn clear_caches(&self) {
self.selection_cache.clear();

View file

@ -3868,7 +3868,6 @@ pub fn path_to_def_local(tcx: &TyCtxt, path: &[&str]) -> Option<DefId> {
}
}
}
}
pub fn path_to_def(tcx: &TyCtxt, path: &[&str]) -> Option<DefId> {
@ -3991,7 +3990,7 @@ impl From<TyParamBound> for SimpleBound {
.collect()),
t.generic_params,
mod_)
},
}
_ => panic!("Unexpected bound {:?}", bound),
}
}