File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 16
16
//! somewhat differently during the collect and check phases,
17
17
//! particularly with respect to looking up the types of top-level
18
18
//! items. In the collect phase, the crate context is used as the
19
- //! `AstConv` instance; in this phase, the `get_item_type_scheme()` function
20
- //! triggers a recursive call to `ty_of_item()` (note that
21
- //! `ast_ty_to_ty()` will detect recursive types and report an error).
22
- //! In the check phase, when the FnCtxt is used as the `AstConv`,
23
- //! `get_item_type_scheme()` just looks up the item type in `tcx.tcache`.
19
+ //! `AstConv` instance; in this phase, the `get_item_type_scheme()`
20
+ //! function triggers a recursive call to `type_scheme_of_item()`
21
+ //! (note that `ast_ty_to_ty()` will detect recursive types and report
22
+ //! an error). In the check phase, when the FnCtxt is used as the
23
+ //! `AstConv`, `get_item_type_scheme()` just looks up the item type in
24
+ //! `tcx.tcache` (using `ty::lookup_item_type`).
24
25
//!
25
26
//! The `RegionScope` trait controls what happens when the user does
26
27
//! not specify a region in some location where a region is required
You can’t perform that action at this time.
0 commit comments