Skip to content

Commit c49195b

Browse files
committed
remove function call and match
1 parent 56d336a commit c49195b

File tree

1 file changed

+1
-4
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+1
-4
lines changed

compiler/rustc_middle/src/ty/mod.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1762,10 +1762,7 @@ impl<'tcx> ParamEnv<'tcx> {
17621762
/// satisfiable. We generally want to behave as if they were true,
17631763
/// although the surrounding function is never reachable.
17641764
pub fn and<T: TypeVisitable<TyCtxt<'tcx>>>(self, value: T) -> ParamEnvAnd<'tcx, T> {
1765-
match self.reveal() {
1766-
Reveal::UserFacing => ParamEnvAnd { param_env: self, value },
1767-
Reveal::All => ParamEnvAnd { param_env: self, value },
1768-
}
1765+
ParamEnvAnd { param_env: self, value }
17691766
}
17701767
}
17711768

0 commit comments

Comments
 (0)