diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-02-11 10:30:16 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-02-12 13:29:51 -0500 |
| commit | c87166e149c6c67d72c62667ae8cd96cb27bc090 (patch) | |
| tree | ed02ee116557b459992f86c953cb522a6f949551 | |
| parent | a6c295cb22d4c76c0b58a7f0fbca104b7dcbfdc4 (diff) | |
| download | rust-c87166e149c6c67d72c62667ae8cd96cb27bc090.tar.gz rust-c87166e149c6c67d72c62667ae8cd96cb27bc090.zip | |
Adjust wording of astconv comment.
| -rw-r--r-- | src/librustc_typeck/astconv.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/librustc_typeck/astconv.rs b/src/librustc_typeck/astconv.rs index 0dbb53e09b7..1951d9946bc 100644 --- a/src/librustc_typeck/astconv.rs +++ b/src/librustc_typeck/astconv.rs @@ -16,11 +16,12 @@ //! somewhat differently during the collect and check phases, //! particularly with respect to looking up the types of top-level //! items. In the collect phase, the crate context is used as the -//! `AstConv` instance; in this phase, the `get_item_type_scheme()` function -//! triggers a recursive call to `ty_of_item()` (note that -//! `ast_ty_to_ty()` will detect recursive types and report an error). -//! In the check phase, when the FnCtxt is used as the `AstConv`, -//! `get_item_type_scheme()` just looks up the item type in `tcx.tcache`. +//! `AstConv` instance; in this phase, the `get_item_type_scheme()` +//! function triggers a recursive call to `type_scheme_of_item()` +//! (note that `ast_ty_to_ty()` will detect recursive types and report +//! an error). In the check phase, when the FnCtxt is used as the +//! `AstConv`, `get_item_type_scheme()` just looks up the item type in +//! `tcx.tcache` (using `ty::lookup_item_type`). //! //! The `RegionScope` trait controls what happens when the user does //! not specify a region in some location where a region is required |
