fmt
This commit is contained in:
parent
7e6db83b14
commit
36ace4c0ad
@ -1015,6 +1015,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
||||
(result, dep_node)
|
||||
}
|
||||
|
||||
#[instrument(level = "debug", skip(self))]
|
||||
fn filter_impls(
|
||||
&mut self,
|
||||
candidate: SelectionCandidate<'tcx>,
|
||||
@ -1031,7 +1032,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
||||
// auto trait impl
|
||||
AutoImplCandidate(..) => {}
|
||||
// FIXME check if this is right, but this would allow Sized impls
|
||||
BuiltinCandidate { .. } => {}
|
||||
// BuiltinCandidate { .. } => {}
|
||||
_ => {
|
||||
// reject all other types of candidates
|
||||
return Err(Unimplemented);
|
||||
|
@ -101,7 +101,11 @@ impl Inherited<'a, 'tcx> {
|
||||
Self::with_constness(infcx, def_id, tcx.hir().get(item_id).constness())
|
||||
}
|
||||
|
||||
pub(super) fn with_constness(infcx: InferCtxt<'a, 'tcx>, def_id: LocalDefId, constness: hir::Constness) -> Self {
|
||||
pub(super) fn with_constness(
|
||||
infcx: InferCtxt<'a, 'tcx>,
|
||||
def_id: LocalDefId,
|
||||
constness: hir::Constness,
|
||||
) -> Self {
|
||||
let tcx = infcx.tcx;
|
||||
let item_id = tcx.hir().local_def_id_to_hir_id(def_id);
|
||||
let body_id = tcx.hir().maybe_body_owned_by(item_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user