Rollup merge of #137800 - BoxyUwU:param_env_docs, r=compiler-errors
Remove `ParamEnv::without_caller_bounds` This doesn't really do anything that `ParamEnv::empty` doesn't do nowadays as `ParamEnv` *only* stores caller bounds since other information has been moved out into `TypingMode` r? ```@compiler-errors``` ```@lcnr```
This commit is contained in:
commit
c03756a56b
2 changed files with 1 additions and 7 deletions
|
@ -992,12 +992,6 @@ impl<'tcx> ParamEnv<'tcx> {
|
|||
ParamEnv { caller_bounds }
|
||||
}
|
||||
|
||||
/// Returns this same environment but with no caller bounds.
|
||||
#[inline]
|
||||
pub fn without_caller_bounds(self) -> Self {
|
||||
Self::new(ListWithCachedTypeInfo::empty())
|
||||
}
|
||||
|
||||
/// Creates a pair of param-env and value for use in queries.
|
||||
pub fn and<T: TypeVisitable<TyCtxt<'tcx>>>(self, value: T) -> ParamEnvAnd<'tcx, T> {
|
||||
ParamEnvAnd { param_env: self, value }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue