Skip to content

Commit

Permalink
remove function call and match
Browse files Browse the repository at this point in the history
  • Loading branch information
ouz-a committed Oct 4, 2023
1 parent 56d336a commit c49195b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/rustc_middle/src/ty/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1762,10 +1762,7 @@ impl<'tcx> ParamEnv<'tcx> {
/// satisfiable. We generally want to behave as if they were true,
/// although the surrounding function is never reachable.
pub fn and<T: TypeVisitable<TyCtxt<'tcx>>>(self, value: T) -> ParamEnvAnd<'tcx, T> {
match self.reveal() {
Reveal::UserFacing => ParamEnvAnd { param_env: self, value },
Reveal::All => ParamEnvAnd { param_env: self, value },
}
ParamEnvAnd { param_env: self, value }
}
}

Expand Down

0 comments on commit c49195b

Please sign in to comment.