]> git.lizzy.rs Git - rust.git/commit
rustc: implement a `#[no_implicit_prelude]` attribute.
authorHuon Wilson <dbau.pp+github@gmail.com>
Wed, 17 Jul 2013 04:23:17 +0000 (14:23 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Wed, 17 Jul 2013 05:01:02 +0000 (15:01 +1000)
commit040e470f475944a355101aa89e9ec447c10b0caa
tree02dee1f1f978752cb83668c3856f52a91e8f5776
parent8a1002fbd93989bbf5c8989ed8002827920b375b
rustc: implement a `#[no_implicit_prelude]` attribute.

It disables the insertion of `use std::prelude::*;` into the top of
all the modules below the item on which it is placed (including that
item itself).
src/librustc/front/std_inject.rs
src/test/compile-fail/no-implicit-prelude-nested.rs [new file with mode: 0644]
src/test/compile-fail/no-implicit-prelude.rs [new file with mode: 0644]