Skip to content

Commit 627691f

Browse files
committed
Fix rebase
1 parent 2cd28c1 commit 627691f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/librustc/traits/coherence.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,12 @@ fn orphan_check_trait_ref<'tcx>(
378378
// Let Ti be the first such type.
379379
// - No uncovered type parameters P1..=Pn may appear in T0..Ti (excluding Ti)
380380
//
381-
fn uncover_fundamental_ty<'a>(
382-
tcx: TyCtxt<'_>,
383-
ty: Ty<'a>,
381+
fn uncover_fundamental_ty<'tcx>(
382+
tcx: TyCtxt<'tcx>,
383+
ty: Ty<'tcx>,
384384
in_crate: InCrate,
385-
) -> Vec<Ty<'a>> {
386-
if fundamental_ty(ty) && !ty_is_local(tcx, ty, in_crate) {
385+
) -> Vec<Ty<'tcx>> {
386+
if fundamental_ty(ty) && ty_is_non_local(tcx, ty, in_crate).is_some() {
387387
ty.walk_shallow().flat_map(|ty| uncover_fundamental_ty(tcx, ty, in_crate)).collect()
388388
} else {
389389
vec![ty]

0 commit comments

Comments
 (0)