]> git.lizzy.rs Git - rust.git/commit
Change std inject attributes to outer attributes
authorKevin Ballard <kevin@sb.org>
Wed, 21 May 2014 04:25:42 +0000 (21:25 -0700)
committerKevin Ballard <kevin@sb.org>
Wed, 21 May 2014 05:44:58 +0000 (22:44 -0700)
commit23ca66ecd2e10d0c6de2e3a657f58f6db35d0a9a
tree23080e165636b6b8845413e5eedf42b69bd1cba2
parente546452727379f701f2104eb826141a29d4b39fd
Change std inject attributes to outer attributes

The #[phase(syntax,link)] attribute on `extern crate std` needs to be an
outer attribute so it can pretty-print properly.

Also add `#![no_std]` and `#[feature(phase)]` so compiling the
pretty-printed source will work.
src/librustc/front/std_inject.rs
src/librustc/front/test.rs
src/librustc/metadata/encoder.rs
src/librustc/middle/trans/base.rs
src/libsyntax/attr.rs