Module rustc_typeck::check::method::suggest [−][src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Give useful errors and suggestions to users when an item can't be found or is otherwise invalid.
Re-exports
use check::FnCtxt; |
use rustc::hir::map as hir_map; |
use rustc_data_structures::sync::Lrc; |
use rustc::ty; |
use rustc::ty::Ty; |
use rustc::ty::TyCtxt; |
use rustc::ty::ToPolyTraitRef; |
use rustc::ty::ToPredicate; |
use rustc::ty::TypeFoldable; |
use hir::def::Def; |
use hir::def_id::CRATE_DEF_INDEX; |
use hir::def_id::DefId; |
use middle::lang_items::FnOnceTraitLangItem; |
use namespace::Namespace; |
use rustc::traits::Obligation; |
use util::nodemap::FxHashSet; |
use util::nodemap::FxHashSet; |
use syntax::ast; |
use syntax::util::lev_distance::find_best_match_for_name; |
use errors::DiagnosticBuilder; |
use syntax_pos::Span; |
use rustc::hir::def_id::LOCAL_CRATE; |
use rustc::hir; |
use rustc::hir::print; |
use rustc::infer::type_variable::TypeVariableOrigin; |
use rustc::ty::TyAdt; |
use std::cmp::Ordering; |
use super::MethodError; |
use super::NoMatchData; |
use super::CandidateSource; |
use super::probe::Mode; |
Structs
TraitInfo |
[ Experimental ]
|
UsePlacementFinder |
[ Experimental ]
|
Functions
all_traits |
[ Experimental ] Retrieve all traits in this crate and any dependent crates. |
compute_all_traits |
[ Experimental ] Compute all traits in this crate and any dependent crates. |
provide |
[ Experimental ]
|