From: bors Date: Fri, 3 Mar 2017 05:16:10 +0000 (+0000) Subject: Auto merge of #40178 - arielb1:provide-destructors, r=eddyb X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=042728e7ff27e305130747c0d1f19d4a67587863;p=rust.git Auto merge of #40178 - arielb1:provide-destructors, r=eddyb convert AdtDef::destructor to on-demand This removes the `Cell` from `AdtDef`. Also, moving destructor validity checking to on-demand (forced during item-type checking) ensures that invalid destructors can't cause ICEs. Fixes #38868. Fixes #40132. r? @eddyb --- 042728e7ff27e305130747c0d1f19d4a67587863 diff --cc src/librustc/dep_graph/dep_node.rs index 2777c4d2487,6a70dce35c9..254cae61152 --- a/src/librustc/dep_graph/dep_node.rs +++ b/src/librustc/dep_graph/dep_node.rs @@@ -114,9 -110,9 +112,10 @@@ pub enum DepNode ItemSignature(D), TypeParamPredicates((D, D)), SizedConstraint(D), + AdtDestructor(D), AssociatedItemDefIds(D), InherentImpls(D), + TypeckBodiesKrate, TypeckTables(D), UsedTraitImports(D), MonomorphicConstEval(D),