1
Fork 0

rustc_typeck: hook up collect and item/body check to on-demand.

This commit is contained in:
Eduard-Mihai Burtescu 2017-02-14 11:32:00 +02:00
parent 9c3c306800
commit ba11640179
36 changed files with 782 additions and 1097 deletions

View file

@ -773,7 +773,7 @@ fn find_repr_type_name(diagnostic: &Handler, type_attrs: &[ast::Attribute]) -> &
for a in type_attrs {
for r in &attr::find_repr_attrs(diagnostic, a) {
repr_type_name = match *r {
attr::ReprAny | attr::ReprPacked | attr::ReprSimd => continue,
attr::ReprPacked | attr::ReprSimd => continue,
attr::ReprExtern => "i32",
attr::ReprInt(attr::SignedInt(ast::IntTy::Is)) => "isize",