We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56d336a commit c49195bCopy full SHA for c49195b
compiler/rustc_middle/src/ty/mod.rs
@@ -1762,10 +1762,7 @@ impl<'tcx> ParamEnv<'tcx> {
1762
/// satisfiable. We generally want to behave as if they were true,
1763
/// although the surrounding function is never reachable.
1764
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
- }
+ ParamEnvAnd { param_env: self, value }
1769
}
1770
1771
0 commit comments