fmt
This commit is contained in:
parent
7e6db83b14
commit
36ace4c0ad
2 changed files with 7 additions and 2 deletions
|
@ -1015,6 +1015,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
||||||
(result, dep_node)
|
(result, dep_node)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[instrument(level = "debug", skip(self))]
|
||||||
fn filter_impls(
|
fn filter_impls(
|
||||||
&mut self,
|
&mut self,
|
||||||
candidate: SelectionCandidate<'tcx>,
|
candidate: SelectionCandidate<'tcx>,
|
||||||
|
@ -1031,7 +1032,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
||||||
// auto trait impl
|
// auto trait impl
|
||||||
AutoImplCandidate(..) => {}
|
AutoImplCandidate(..) => {}
|
||||||
// FIXME check if this is right, but this would allow Sized impls
|
// FIXME check if this is right, but this would allow Sized impls
|
||||||
BuiltinCandidate { .. } => {}
|
// BuiltinCandidate { .. } => {}
|
||||||
_ => {
|
_ => {
|
||||||
// reject all other types of candidates
|
// reject all other types of candidates
|
||||||
return Err(Unimplemented);
|
return Err(Unimplemented);
|
||||||
|
|
|
@ -101,7 +101,11 @@ impl Inherited<'a, 'tcx> {
|
||||||
Self::with_constness(infcx, def_id, tcx.hir().get(item_id).constness())
|
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 tcx = infcx.tcx;
|
||||||
let item_id = tcx.hir().local_def_id_to_hir_id(def_id);
|
let item_id = tcx.hir().local_def_id_to_hir_id(def_id);
|
||||||
let body_id = tcx.hir().maybe_body_owned_by(item_id);
|
let body_id = tcx.hir().maybe_body_owned_by(item_id);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue