Rename traits::drop -> traits::misc.

This commit is contained in:
Camille GILLOT
2020-01-07 19:36:50 +01:00
parent f629baf96c
commit 700ac84eae
5 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -7,10 +7,10 @@
mod chalk_fulfill;
pub mod codegen;
mod coherence;
pub mod drop;
mod engine;
pub mod error_reporting;
mod fulfill;
pub mod misc;
mod object_safety;
mod on_unimplemented;
mod project;
@@ -1244,7 +1244,7 @@ fn self_ty(&self) -> ty::Binder<Ty<'tcx>> {
}
pub fn provide(providers: &mut ty::query::Providers<'_>) {
drop::provide(providers);
misc::provide(providers);
*providers = ty::query::Providers {
is_object_safe: object_safety::is_object_safe_provider,
specialization_graph_of: specialize::specialization_graph_provider,
+1 -1
View File
@@ -27,7 +27,7 @@
use lint::{LateContext, LintArray, LintContext};
use rustc::lint;
use rustc::lint::FutureIncompatibleInfo;
use rustc::traits::drop::can_type_implement_copy;
use rustc::traits::misc::can_type_implement_copy;
use rustc::ty::{self, layout::VariantIdx, Ty, TyCtxt};
use rustc_data_structures::fx::FxHashSet;
use rustc_feature::Stability;
+1 -1
View File
@@ -6,7 +6,7 @@
use rustc::middle::privacy::AccessLevels;
use rustc::middle::stability::{DeprecationEntry, Index};
use rustc::session::Session;
use rustc::traits::drop::can_type_implement_copy;
use rustc::traits::misc::can_type_implement_copy;
use rustc::ty::query::Providers;
use rustc::ty::TyCtxt;
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
+1 -1
View File
@@ -7,7 +7,7 @@
use rustc::middle::region;
use rustc::infer;
use rustc::traits::drop::{can_type_implement_copy, CopyImplementationError};
use rustc::traits::misc::{can_type_implement_copy, CopyImplementationError};
use rustc::traits::predicate_for_trait_def;
use rustc::traits::{self, ObligationCause, TraitEngine};
use rustc::ty::adjustment::CoerceUnsizedInfo;