提交 0037cca2 编写于 作者: N Niko Matsakis

comment the purpose of `TransNormalize`

上级 d0aff859
......@@ -487,6 +487,10 @@ pub struct CombinedSnapshot<'a, 'tcx:'a> {
/// Helper trait for shortening the lifetimes inside a
/// value for post-type-checking normalization.
///
/// This trait offers a normalization method where the inputs and
/// outputs both have the `'gcx` lifetime; the implementations
/// internally create inference contexts and/or lift as needed.
pub trait TransNormalize<'gcx>: TypeFoldable<'gcx> {
fn trans_normalize<'a, 'tcx>(&self,
infcx: &InferCtxt<'a, 'gcx, 'tcx>,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册