1
Fork 0

rustc: separate bodies for static/(associated)const and embedded constants.

This commit is contained in:
Eduard-Mihai Burtescu 2016-12-21 12:32:59 +02:00
parent 864928297d
commit e64f64a2fc
72 changed files with 637 additions and 655 deletions

View file

@ -174,7 +174,7 @@ pub struct Typedef {
pub struct Static {
pub type_: P<hir::Ty>,
pub mutability: hir::Mutability,
pub expr: P<hir::Expr>,
pub expr: hir::BodyId,
pub name: Name,
pub attrs: hir::HirVec<ast::Attribute>,
pub vis: hir::Visibility,
@ -186,7 +186,7 @@ pub struct Static {
pub struct Constant {
pub type_: P<hir::Ty>,
pub expr: P<hir::Expr>,
pub expr: hir::BodyId,
pub name: Name,
pub attrs: hir::HirVec<ast::Attribute>,
pub vis: hir::Visibility,