]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/metadata.rs
Plumb dyn trait representation through ty::Dynamic
[rust.git] / compiler / rustc_middle / src / metadata.rs
index c8e78747d8e7b3a74ac53afb841bef9b9bd047dd..5ff014c7815a9c0ba52aaaffa49d29d0ffdce603 100644 (file)
@@ -2,6 +2,7 @@
 
 use rustc_hir::def::Res;
 use rustc_macros::HashStable;
+use rustc_span::def_id::DefId;
 use rustc_span::symbol::Ident;
 use rustc_span::Span;
 
@@ -18,7 +19,7 @@ pub struct ModChild {
     /// Local variables cannot be exported, so this `Res` doesn't need the ID parameter.
     pub res: Res<!>,
     /// Visibility of the item.
-    pub vis: ty::Visibility,
+    pub vis: ty::Visibility<DefId>,
     /// Span of the item.
     pub span: Span,
     /// A proper `macro_rules` item (not a reexport).