Skip to content

Commit 2d050c9

Browse files
committed
fmt
1 parent 27bfe3f commit 2d050c9

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

compiler/rustc_attr_parsing/src/context.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ use rustc_hir::{AttrArgs, AttrItem, AttrPath, Attribute, HashIgnoredAttrId};
1111
use rustc_session::Session;
1212
use rustc_span::{DUMMY_SP, ErrorGuaranteed, Span, Symbol, sym};
1313

14-
use crate::attributes::allow_unstable::{AllowConstFnUnstableParser, AllowInternalUnstableParser, AllowUnstableFeatureParser};
14+
use crate::attributes::allow_unstable::{
15+
AllowConstFnUnstableParser, AllowInternalUnstableParser, AllowUnstableFeatureParser,
16+
};
1517
use crate::attributes::confusables::ConfusablesParser;
1618
use crate::attributes::deprecation::DeprecationParser;
1719
use crate::attributes::repr::ReprParser;

compiler/rustc_hir_analysis/src/collect/predicates_of.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ pub(super) fn predicates_of(tcx: TyCtxt<'_>, def_id: DefId) -> ty::GenericPredic
6969
);
7070
}
7171

72-
7372
debug!("predicates_of({:?}) = {:?}", def_id, result);
7473
result
7574
}
@@ -324,9 +323,10 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
324323
for item in list.iter() {
325324
// TODO: deal with error later
326325
let feature_name = item.name().unwrap();
327-
predicates
328-
.insert((ty::ClauseKind::UnstableFeature(feature_name).upcast(tcx), tcx.def_span(def_id)));
329-
326+
predicates.insert((
327+
ty::ClauseKind::UnstableFeature(feature_name).upcast(tcx),
328+
tcx.def_span(def_id),
329+
));
330330
}
331331
}
332332
}
@@ -760,7 +760,7 @@ pub(super) fn assert_only_contains_predicates_from<'tcx>(
760760
ty::ClauseKind::RegionOutlives(_)
761761
| ty::ClauseKind::ConstArgHasType(_, _)
762762
| ty::ClauseKind::WellFormed(_)
763-
| ty::ClauseKind::UnstableFeature(_)
763+
| ty::ClauseKind::UnstableFeature(_)
764764
| ty::ClauseKind::ConstEvaluatable(_) => {
765765
bug!(
766766
"unexpected non-`Self` predicate when computing \
@@ -788,7 +788,7 @@ pub(super) fn assert_only_contains_predicates_from<'tcx>(
788788
| ty::ClauseKind::ConstArgHasType(_, _)
789789
| ty::ClauseKind::WellFormed(_)
790790
| ty::ClauseKind::ConstEvaluatable(_)
791-
| ty::ClauseKind::UnstableFeature(_)
791+
| ty::ClauseKind::UnstableFeature(_)
792792
| ty::ClauseKind::HostEffect(..) => {
793793
bug!(
794794
"unexpected non-`Self` predicate when computing \

compiler/rustc_next_trait_solver/src/solve/eval_ctxt/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,7 @@ where
625625
}),
626626
ty::PredicateKind::Ambiguous => {
627627
self.evaluate_added_goals_and_make_canonical_response(Certainty::AMBIGUOUS)
628-
},
629-
628+
}
630629
}
631630
} else {
632631
self.enter_forall(kind, |ecx, kind| {

compiler/rustc_type_ir/src/flags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ impl<I: Interner> FlagComputation<I> {
410410
self.add_term(t1);
411411
self.add_term(t2);
412412
}
413-
ty::PredicateKind::Clause(ty::ClauseKind::UnstableFeature(_)) => todo!()
413+
ty::PredicateKind::Clause(ty::ClauseKind::UnstableFeature(_)) => todo!(),
414414
}
415415
}
416416

compiler/rustc_type_ir/src/predicate_kind.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use std::fmt;
22

3-
43
use derive_where::derive_where;
54
#[cfg(feature = "nightly")]
65
use rustc_macros::{Decodable_NoContext, Encodable_NoContext, HashStable_NoContext};
@@ -138,7 +137,9 @@ impl<I: Interner> fmt::Debug for ClauseKind<I> {
138137
ClauseKind::ConstEvaluatable(ct) => {
139138
write!(f, "ConstEvaluatable({ct:?})")
140139
}
141-
ClauseKind::UnstableFeature(feature_name) => write!(f, "UnstableFeature({feature_name:?})"),
140+
ClauseKind::UnstableFeature(feature_name) => {
141+
write!(f, "UnstableFeature({feature_name:?})")
142+
}
142143
}
143144
}
144145
}

0 commit comments

Comments
 (0)