Move trait selection error reporting to its own top-level module

This commit is contained in:
Michael Goulet 2024-07-08 15:36:57 -04:00
parent a988389ce8
commit 920cbcdd45
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
use rustc_session::declare_lint_pass; use rustc_session::declare_lint_pass;
use rustc_span::symbol::sym; use rustc_span::symbol::sym;
use rustc_target::spec::abi::Abi; use rustc_target::spec::abi::Abi;
use rustc_trait_selection::traits::error_reporting::InferCtxtExt as _; use rustc_trait_selection::error_reporting::traits::InferCtxtExt as _;
declare_clippy_lint! { declare_clippy_lint! {
/// ### What it does /// ### What it does

View File

@ -9,7 +9,7 @@
use rustc_session::declare_lint_pass; use rustc_session::declare_lint_pass;
use rustc_span::def_id::LocalDefId; use rustc_span::def_id::LocalDefId;
use rustc_span::{sym, Span}; use rustc_span::{sym, Span};
use rustc_trait_selection::traits::error_reporting::suggestions::TypeErrCtxtExt; use rustc_trait_selection::error_reporting::traits::suggestions::TypeErrCtxtExt;
use rustc_trait_selection::traits::{self, FulfillmentError, ObligationCtxt}; use rustc_trait_selection::traits::{self, FulfillmentError, ObligationCtxt};
declare_clippy_lint! { declare_clippy_lint! {

View File

@ -15,7 +15,7 @@
use rustc_session::impl_lint_pass; use rustc_session::impl_lint_pass;
use rustc_span::symbol::{kw, Ident}; use rustc_span::symbol::{kw, Ident};
use rustc_span::{sym, Span}; use rustc_span::{sym, Span};
use rustc_trait_selection::traits::error_reporting::suggestions::ReturnsVisitor; use rustc_trait_selection::error_reporting::traits::suggestions::ReturnsVisitor;
declare_clippy_lint! { declare_clippy_lint! {
/// ### What it does /// ### What it does