]> git.lizzy.rs Git - rust.git/commitdiff
rustc_typeck to rustc_hir_analysis
authorlcnr <rust@lcnr.de>
Mon, 26 Sep 2022 11:00:29 +0000 (13:00 +0200)
committerlcnr <rust@lcnr.de>
Tue, 27 Sep 2022 08:37:23 +0000 (10:37 +0200)
crates/hir-ty/src/autoderef.rs
crates/hir-ty/src/infer.rs
crates/hir-ty/src/infer/coerce.rs
crates/hir-ty/src/method_resolution.rs

index 344036dd8139d28d433c745b6121ab8c85e9865f..e106c4c2cfd6a2f5105c58e47429297514145a99 100644 (file)
@@ -1,7 +1,7 @@
 //! In certain situations, rust automatically inserts derefs as necessary: for
 //! example, field accesses `foo.bar` still work when `foo` is actually a
 //! reference to a type with the field `bar`. This is an approximation of the
-//! logic in rustc (which lives in librustc_typeck/check/autoderef.rs).
+//! logic in rustc (which lives in rustc_hir_analysis/check/autoderef.rs).
 
 use std::sync::Arc;
 
index e37763e8ea7f03075b5c19349d4c7d5ff1baf69d..9dbeba4f9f48f900bf0afd09ef9ba2e11522e667 100644 (file)
@@ -2,7 +2,7 @@
 //! the type of each expression and pattern.
 //!
 //! For type inference, compare the implementations in rustc (the various
-//! check_* methods in librustc_typeck/check/mod.rs are a good entry point) and
+//! check_* methods in rustc_hir_analysis/check/mod.rs are a good entry point) and
 //! IntelliJ-Rust (org.rust.lang.core.types.infer). Our entry point for
 //! inference here is the `infer` function, which infers the types of all
 //! expressions in a given function.
index f54440bf5b372e00b8422ae4069a47d0de2f7c5f..8df25c83c6eb7d5b35a910881403186861be2a11 100644 (file)
@@ -3,7 +3,7 @@
 //! like going from `&Vec<T>` to `&[T]`.
 //!
 //! See <https://doc.rust-lang.org/nomicon/coercions.html> and
-//! `librustc_typeck/check/coercion.rs`.
+//! `rustc_hir_analysis/check/coercion.rs`.
 
 use std::{iter, sync::Arc};
 
index 41fcef73d9be40827aa671979c8da0f0931560c6..cc21990d5537186fb89d0d4abc92737c0e702838 100644 (file)
@@ -1,7 +1,7 @@
 //! This module is concerned with finding methods that a given type provides.
 //! For details about how this works in rustc, see the method lookup page in the
 //! [rustc guide](https://rust-lang.github.io/rustc-guide/method-lookup.html)
-//! and the corresponding code mostly in librustc_typeck/check/method/probe.rs.
+//! and the corresponding code mostly in rustc_hir_analysis/check/method/probe.rs.
 use std::{iter, ops::ControlFlow, sync::Arc};
 
 use arrayvec::ArrayVec;