Skip to content

Commit 4bdfb46

Browse files
committed
fmt
1 parent bfd4487 commit 4bdfb46

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

compiler/rustc_trait_selection/src/traits/select/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
10151015
(result, dep_node)
10161016
}
10171017

1018+
#[instrument(level = "debug", skip(self))]
10181019
fn filter_impls(
10191020
&mut self,
10201021
candidate: SelectionCandidate<'tcx>,
@@ -1031,7 +1032,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
10311032
// auto trait impl
10321033
AutoImplCandidate(..) => {}
10331034
// FIXME check if this is right, but this would allow Sized impls
1034-
BuiltinCandidate { .. } => {}
1035+
// BuiltinCandidate { .. } => {}
10351036
_ => {
10361037
// reject all other types of candidates
10371038
return Err(Unimplemented);

compiler/rustc_typeck/src/check/inherited.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ impl Inherited<'a, 'tcx> {
117117
Self::with_constness(infcx, def_id, tcx.hir().get(item_id).constness())
118118
}
119119

120-
pub(super) fn with_constness(infcx: InferCtxt<'a, 'tcx>, def_id: LocalDefId, constness: hir::Constness) -> Self {
120+
pub(super) fn with_constness(
121+
infcx: InferCtxt<'a, 'tcx>,
122+
def_id: LocalDefId,
123+
constness: hir::Constness,
124+
) -> Self {
121125
let tcx = infcx.tcx;
122126
let item_id = tcx.hir().local_def_id_to_hir_id(def_id);
123127
let body_id = tcx.hir().maybe_body_owned_by(item_id);

0 commit comments

Comments
 (0)