libsyntax: Stop parsing mutable fields
This commit is contained in:
parent
481d4ca43f
commit
4e3d4b36dc
6 changed files with 6 additions and 15 deletions
|
|
@ -118,11 +118,7 @@ pub fn classify(e: @expr,
|
|||
|
||||
ast::expr_struct(_, ref fs, None) => {
|
||||
let cs = do vec::map((*fs)) |f| {
|
||||
if f.node.mutbl == ast::m_imm {
|
||||
classify(f.node.expr, tcx)
|
||||
} else {
|
||||
non_const
|
||||
}
|
||||
classify(f.node.expr, tcx)
|
||||
};
|
||||
join_all(cs)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue