Actually filter view_items in blocks
auto merge of #6726 : alexcrichton/rust/filter-blocks, r=z0w0

Among other things, this suppresses a spurious unused import warning in the compiler right now.