Skip to content

Commit c87166e

Browse files
committed
Adjust wording of astconv comment.
1 parent a6c295c commit c87166e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/librustc_typeck/astconv.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
//! somewhat differently during the collect and check phases,
1717
//! particularly with respect to looking up the types of top-level
1818
//! 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`).
2425
//!
2526
//! The `RegionScope` trait controls what happens when the user does
2627
//! not specify a region in some location where a region is required

0 commit comments

Comments
 (0)