review
This commit is contained in:
parent
795ff6576c
commit
8c7c83d6ef
3 changed files with 36 additions and 5 deletions
|
@ -1375,8 +1375,9 @@ rustc_queries! {
|
|||
/// type-checking etc, and it does not normalize specializable
|
||||
/// associated types.
|
||||
///
|
||||
/// You should pretty much only use this if an `infcx` is available,
|
||||
/// otherwise use a `TypingEnv`.
|
||||
/// You should almost certainly not use this. If you already have an InferCtxt, then
|
||||
/// you should also probably have a `ParamEnv` from when it was built. If you don't,
|
||||
/// then you should take a `TypingEnv` to ensure that you handle opaque types correctly.
|
||||
query param_env(def_id: DefId) -> ty::ParamEnv<'tcx> {
|
||||
desc { |tcx| "computing normalized predicates of `{}`", tcx.def_path_str(def_id) }
|
||||
feedable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue