diff options
| author | David Wood <david@davidtw.co> | 2019-03-24 18:54:56 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2019-03-24 18:54:56 +0100 |
| commit | 88f8f0779417963fe04aaba6719f1752ff1ce487 (patch) | |
| tree | 76ecf2fa97f25a876caa93f4749f390624e046f0 /src/librustc_save_analysis | |
| parent | db4770f699bb5e700c5946d5d1a1651c3ad0bfcc (diff) | |
| download | rust-88f8f0779417963fe04aaba6719f1752ff1ce487.tar.gz rust-88f8f0779417963fe04aaba6719f1752ff1ce487.zip | |
Move `CtorOf` into `hir::def`.
This commit moves the definition of `CtorOf` from `rustc::hir` to `rustc::hir::def` and adds imports wherever it is used.
Diffstat (limited to 'src/librustc_save_analysis')
| -rw-r--r-- | src/librustc_save_analysis/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_save_analysis/lib.rs b/src/librustc_save_analysis/lib.rs index de9a4b92c82..96a0b364678 100644 --- a/src/librustc_save_analysis/lib.rs +++ b/src/librustc_save_analysis/lib.rs @@ -14,7 +14,7 @@ mod span_utils; mod sig; use rustc::hir; -use rustc::hir::def::Def as HirDef; +use rustc::hir::def::{CtorOf, Def as HirDef}; use rustc::hir::Node; use rustc::hir::def_id::{DefId, LOCAL_CRATE}; use rustc::middle::privacy::AccessLevels; @@ -757,7 +757,7 @@ impl<'l, 'tcx: 'l> SaveContext<'l, 'tcx> { ref_id: id_from_def_id(def_id), }) } - HirDef::Ctor(hir::CtorOf::Struct, def_id, _) => { + HirDef::Ctor(CtorOf::Struct, def_id, _) => { // This is a reference to a tuple struct where the def_id points // to an invisible constructor function. That is not a very useful // def, so adjust to point to the tuple struct itself. |
