compiletest: Add #[no_core] to fix check-stage1.
auto merge of #6789 : luqmana/rust/compiletest-fix, r=thestinger

Can be removed after a snapshot I believe.