Skip to content

Commit 78fa111

Browse files
committed
no more Reveal :(
1 parent ff6c4b7 commit 78fa111

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

clippy_lints/src/derive.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use rustc_hir::{
1111
};
1212
use rustc_lint::{LateContext, LateLintPass};
1313
use rustc_middle::hir::nested_filter;
14-
use rustc_middle::traits::Reveal;
1514
use rustc_middle::ty::{
1615
self, ClauseKind, GenericArgKind, GenericParamDefKind, ParamEnv, TraitPredicate, Ty, TyCtxt, Upcast,
1716
};
@@ -516,7 +515,6 @@ fn typing_env_env_for_derived_eq(tcx: TyCtxt<'_>, did: DefId, eq_trait_id: DefId
516515
.upcast(tcx)
517516
}),
518517
)),
519-
Reveal::UserFacing,
520518
);
521519
ty::TypingEnv {
522520
typing_mode: ty::TypingMode::non_body_analysis(),

clippy_utils/src/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ pub fn same_type_and_consts<'tcx>(a: Ty<'tcx>, b: Ty<'tcx>) -> bool {
575575

576576
/// Checks if a given type looks safe to be uninitialized.
577577
pub fn is_uninit_value_valid_for_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool {
578-
let typing_env = cx.typing_env().with_reveal_all_normalized(cx.tcx);
578+
let typing_env = cx.typing_env().with_post_analysis_normalized(cx.tcx);
579579
cx.tcx
580580
.check_validity_requirement((ValidityRequirement::Uninit, typing_env.as_query_input(ty)))
581581
.unwrap_or_else(|_| is_uninit_value_valid_for_ty_fallback(cx, ty))

0 commit comments

Comments
 (0)