File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11//! In certain situations, rust automatically inserts derefs as necessary: for
22//! example, field accesses `foo.bar` still work when `foo` is actually a
33//! reference to a type with the field `bar`. This is an approximation of the
4- //! logic in rustc (which lives in librustc_typeck /check/autoderef.rs).
4+ //! logic in rustc (which lives in rustc_hir_analysis /check/autoderef.rs).
55
66use std:: sync:: Arc ;
77
Original file line number Diff line number Diff line change 22//! the type of each expression and pattern.
33//!
44//! For type inference, compare the implementations in rustc (the various
5- //! check_* methods in librustc_typeck /check/mod.rs are a good entry point) and
5+ //! check_* methods in rustc_hir_analysis /check/mod.rs are a good entry point) and
66//! IntelliJ-Rust (org.rust.lang.core.types.infer). Our entry point for
77//! inference here is the `infer` function, which infers the types of all
88//! expressions in a given function.
Original file line number Diff line number Diff line change 33//! like going from `&Vec<T>` to `&[T]`.
44//!
55//! See <https://doc.rust-lang.org/nomicon/coercions.html> and
6- //! `librustc_typeck /check/coercion.rs`.
6+ //! `rustc_hir_analysis /check/coercion.rs`.
77
88use std:: { iter, sync:: Arc } ;
99
Original file line number Diff line number Diff line change 11//! This module is concerned with finding methods that a given type provides.
22//! For details about how this works in rustc, see the method lookup page in the
33//! [rustc guide](https://rust-lang.github.io/rustc-guide/method-lookup.html)
4- //! and the corresponding code mostly in librustc_typeck /check/method/probe.rs.
4+ //! and the corresponding code mostly in rustc_hir_analysis /check/method/probe.rs.
55use std:: { iter, ops:: ControlFlow , sync:: Arc } ;
66
77use arrayvec:: ArrayVec ;
You can’t perform that action at this time.
0 commit comments