Run rustfmt --file-lines ... for changes from previous commits.

This commit is contained in:
Eduard-Mihai Burtescu 2019-06-12 00:11:55 +03:00
parent 21ac960334
commit fff08cb043
176 changed files with 2212 additions and 2132 deletions

View file

@ -184,10 +184,11 @@ impl Visitor<'tcx> for IfThisChanged<'tcx> {
}
}
fn check_paths<'tcx>(tcx: TyCtxt<'tcx, 'tcx>,
if_this_changed: &Sources,
then_this_would_need: &Targets)
{
fn check_paths<'tcx>(
tcx: TyCtxt<'tcx, 'tcx>,
if_this_changed: &Sources,
then_this_would_need: &Targets,
) {
// Return early here so as not to construct the query, which is not cheap.
if if_this_changed.is_empty() {
for &(target_span, _, _, _) in then_this_would_need {

View file

@ -129,8 +129,7 @@ fn save_in<F>(sess: &Session, path_buf: PathBuf, encode: F)
}
}
fn encode_dep_graph(tcx: TyCtxt<'_, '_>,
encoder: &mut Encoder) {
fn encode_dep_graph(tcx: TyCtxt<'_, '_>, encoder: &mut Encoder) {
// First encode the commandline arguments hash
tcx.sess.opts.dep_tracking_hash().encode(encoder).unwrap();
@ -234,8 +233,7 @@ fn encode_work_product_index(work_products: &FxHashMap<WorkProductId, WorkProduc
serialized_products.encode(encoder).unwrap();
}
fn encode_query_cache(tcx: TyCtxt<'_, '_>,
encoder: &mut Encoder) {
fn encode_query_cache(tcx: TyCtxt<'_, '_>, encoder: &mut Encoder) {
time(tcx.sess, "serialize query result cache", || {
tcx.serialize_query_result_cache(encoder).unwrap();
})