]> git.lizzy.rs Git - rust.git/commitdiff
Add appropriate #[feature] directives to tests
authorAlex Crichton <alex@alexcrichton.com>
Thu, 3 Oct 2013 03:00:54 +0000 (20:00 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 6 Oct 2013 21:39:25 +0000 (14:39 -0700)
108 files changed:
src/etc/combine-tests.py
src/etc/extract-tests.py
src/librustc/driver/driver.rs
src/test/auxiliary/issue_2316_b.rs
src/test/auxiliary/struct_variant_xc_aux.rs
src/test/bench/core-std.rs
src/test/bench/rt-parfib.rs
src/test/bench/shootout-chameneos-redux.rs
src/test/bench/shootout-pfib.rs
src/test/bench/task-perf-linked-failure.rs
src/test/compile-fail/deriving-primitive.rs
src/test/compile-fail/dup-struct-enum-struct-variant.rs
src/test/compile-fail/functional-struct-update-noncopyable.rs
src/test/compile-fail/import-glob-0.rs
src/test/compile-fail/import-glob-circular.rs
src/test/compile-fail/issue-1697.rs
src/test/compile-fail/issue-4366.rs
src/test/compile-fail/issue-5060-fail.rs
src/test/compile-fail/issue-6596.rs
src/test/compile-fail/lint-missing-doc.rs
src/test/compile-fail/lint-stability.rs
src/test/compile-fail/lint-unused-import-tricky-globs.rs
src/test/compile-fail/lint-unused-imports.rs
src/test/compile-fail/macro-incomplete-parse.rs
src/test/compile-fail/macro-inner-attributes.rs
src/test/compile-fail/macro-outer-attributes.rs
src/test/compile-fail/name-clash-nullary.rs
src/test/compile-fail/private-method-cross-crate.rs
src/test/compile-fail/private-struct-field-cross-crate.rs
src/test/compile-fail/struct-like-enum-nonexhaustive.rs
src/test/debug-info/borrowed-enum.rs
src/test/debug-info/by-value-non-immediate-argument.rs
src/test/debug-info/generic-static-method-on-struct-and-enum.rs
src/test/debug-info/generic-struct-style-enum.rs
src/test/debug-info/lexical-scope-with-macro.rs
src/test/debug-info/managed-enum.rs
src/test/debug-info/method-on-enum.rs
src/test/debug-info/option-like-enum.rs
src/test/debug-info/recursive-struct.rs
src/test/debug-info/static-method-on-struct-and-enum.rs
src/test/debug-info/struct-style-enum.rs
src/test/debug-info/unique-enum.rs
src/test/run-pass/anon-extern-mod-cross-crate-2.rs
src/test/run-pass/bitv-perf-test.rs
src/test/run-pass/borrowck-macro-interaction-issue-6304.rs
src/test/run-pass/cci_nested_exe.rs
src/test/run-pass/cfg-macros-foo.rs
src/test/run-pass/cfg-macros-notfoo.rs
src/test/run-pass/class-cast-to-trait-cross-crate-2.rs
src/test/run-pass/class-exports.rs
src/test/run-pass/class-implement-trait-cross-crate.rs
src/test/run-pass/class-method-cross-crate.rs
src/test/run-pass/class-methods-cross-crate.rs
src/test/run-pass/class-poly-methods-cross-crate.rs
src/test/run-pass/classes-cross-crate.rs
src/test/run-pass/classes-simple-cross-crate.rs
src/test/run-pass/const-enum-structlike.rs
src/test/run-pass/core-run-destroy.rs
src/test/run-pass/deriving-cmp-generic-struct-enum.rs
src/test/run-pass/deriving-encodable-decodable.rs
src/test/run-pass/deriving-rand.rs
src/test/run-pass/deriving-to-str.rs
src/test/run-pass/deriving-via-extension-struct-like-enum-variant.rs
src/test/run-pass/enum-variants.rs
src/test/run-pass/export-glob-imports-target.rs
src/test/run-pass/getopts_ref.rs
src/test/run-pass/glob-std.rs
src/test/run-pass/hashmap-memory.rs
src/test/run-pass/html-literals.rs
src/test/run-pass/ifmt.rs
src/test/run-pass/import-glob-0.rs
src/test/run-pass/import-glob-crate.rs
src/test/run-pass/import-in-block.rs
src/test/run-pass/intrinsics-integer.rs
src/test/run-pass/intrinsics-math.rs
src/test/run-pass/issue-2526-a.rs
src/test/run-pass/issue-2631-b.rs
src/test/run-pass/issue-2723-b.rs
src/test/run-pass/issue-3656.rs
src/test/run-pass/issue-3979-xcrate.rs
src/test/run-pass/issue-4208.rs
src/test/run-pass/issue-5060.rs
src/test/run-pass/issue-5530.rs
src/test/run-pass/issue-5554.rs
src/test/run-pass/issue-9110.rs
src/test/run-pass/let-var-hygiene.rs
src/test/run-pass/macro-2.rs
src/test/run-pass/macro-interpolation.rs
src/test/run-pass/macro-path.rs
src/test/run-pass/macro-stmt.rs
src/test/run-pass/match-enum-struct-0.rs
src/test/run-pass/match-enum-struct-1.rs
src/test/run-pass/match-in-macro.rs
src/test/run-pass/non-boolean-pure-fns.rs
src/test/run-pass/nullable-pointer-size.rs
src/test/run-pass/reexport-star.rs
src/test/run-pass/rename-directory.rs
src/test/run-pass/rtio-processes.rs
src/test/run-pass/struct-like-variant-construct.rs
src/test/run-pass/struct-like-variant-match.rs
src/test/run-pass/syntax-extension-fmt.rs
src/test/run-pass/syntax-extension-source-utils.rs
src/test/run-pass/tag-exports.rs
src/test/run-pass/typeck-macro-interaction-issue-8852.rs
src/test/run-pass/unfold-cross-crate.rs
src/test/run-pass/unique-send-2.rs
src/test/run-pass/unwind-resource.rs
src/test/run-pass/variant-structs-trivial.rs

index 692aa6871e604df285767b058514cedefb2ce16f..d40d25c1d18c7fea41af8f0355bf96fd49849f8d 100755 (executable)
@@ -40,6 +40,7 @@ c = open("tmp/run_pass_stage2.rc", "w")
 i = 0
 c.write("// AUTO-GENERATED FILE: DO NOT EDIT\n")
 c.write("#[link(name=\"run_pass_stage2\", vers=\"0.1\")];\n")
+c.write("#[feature(globs, macro_rules, struct_variant)];\n")
 for t in stage2_tests:
     p = os.path.join(run_pass, t)
     p = p.replace("\\", "\\\\")
@@ -51,6 +52,7 @@ c.close()
 
 d = open("tmp/run_pass_stage2_driver.rs", "w")
 d.write("// AUTO-GENERATED FILE: DO NOT EDIT\n")
+d.write("#[feature(globs)];\n")
 d.write("extern mod extra;\n")
 d.write("extern mod run_pass_stage2;\n")
 d.write("use run_pass_stage2::*;\n")
index ab68afb615f1ff5d1dc1a388256a2f6eff17e190..953b69eedbba63dea3c014e299c74fd3f72f7be4 100644 (file)
@@ -63,6 +63,7 @@ while cur < len(lines):
 #[ allow(unused_variable) ];\n
 #[ allow(dead_assignment) ];\n
 #[ allow(unused_mut) ];\n
+#[ feature(macro_rules, globs, struct_variant) ];\n
 """ + block
             if xfail:
                 block = "// xfail-test\n" + block
index 4dff3abda30cc57365fd2937a4eee650f0f1dbef..5534342f3c7feacfc6d7d0d945a112b7307c9511 100644 (file)
@@ -159,7 +159,7 @@ pub fn phase_2_configure_and_expand(sess: Session,
     *sess.building_library = session::building_library(sess.opts.crate_type,
                                                        &crate, sess.opts.test);
 
-    time(time_passes, ~"gated feature checking", (), |_|
+    time(time_passes, "gated feature checking", (), |_|
          front::feature_gate::check_crate(sess, &crate));
 
     // strip before expansion to allow macros to depend on
index 1c16e347b27be67e6a69fbae86527093f5648fa4..92c20e8d9e39b45d7a7cf9e4fd7d2568ee07a874 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 #[allow(unused_imports)];
+#[feature(globs)];
 
 extern mod issue_2316_a;
 
index 6d2c77ffb0e108c2632a8a73e3047d6d088ee963..f797669195b7631c9c212830dcee9ef32a9e1515 100644 (file)
@@ -12,6 +12,8 @@
        vers = "0.1")];
 #[crate_type = "lib"];
 
+#[feature(struct_variant)];
+
 pub enum Enum {
     Variant { arg: u8 }
 }
index 054b985a55ce24cb56dc4d31b7374e563d8b914d..7323dcf4ecb5e2335f3d379da2a114d087089323 100644 (file)
@@ -10,6 +10,8 @@
 
 // Microbenchmarks for various functions in std and extra
 
+#[feature(macro_rules)];
+
 extern mod extra;
 
 use extra::time::precise_time_s;
index 3c981611e503912a1a58346df7f81830cfbe134e..1f2f163b8f008411af14b54bea9bccc1c9918a05 100644 (file)
@@ -14,7 +14,7 @@
 use std::uint;
 use std::rt::test::spawntask_later;
 use std::cell::Cell;
-use std::comm::*;
+use std::comm::oneshot;
 
 // A simple implementation of parfib. One subtree is found in a new
 // task and communicated over a oneshot pipe, the other is found
index c3296cbff9be132757617117d85bb02787d6e454..1fa48755663be24c311e9bf1dddfd82a4ef69c23 100644 (file)
@@ -13,7 +13,7 @@
 extern mod extra;
 
 use std::cell::Cell;
-use std::comm::*;
+use std::comm::{stream, SharedChan};
 use std::io;
 use std::option;
 use std::os;
index 5a1f735001028d2c1c9f061055ab5acff4917941..0f0651f4a4d51cbf172ea41c1f72fbe0e1083fc0 100644 (file)
@@ -22,7 +22,7 @@
 extern mod extra;
 
 use extra::{time, getopts};
-use std::comm::*;
+use std::comm::{stream, SharedChan};
 use std::io::WriterUtil;
 use std::io;
 use std::os;
index b029d9e4fc84472ab9b50573f16771a22ec5ecda..03f778ca1d1fccd85772e24df7ff837f41199840 100644 (file)
@@ -22,7 +22,7 @@
 // Creates in the background 'num_tasks' tasks, all blocked forever.
 // Doesn't return until all such tasks are ready, but doesn't block forever itself.
 
-use std::comm::*;
+use std::comm::{stream, SharedChan};
 use std::os;
 use std::result;
 use std::task;
index 1af0193ca4789e43e640b737373372545995d924..0e530666a8cbf0000929322acf0d0a5645d0ab6a 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(struct_variant)];
+
 use std::num::FromPrimitive;
 use std::int;
 
index 69e6b5c6856a80b135c9c0ff4afeb7ed0d57e17f..b9eda0765f6458ba3c35198083d81a02a955ae7a 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(struct_variant)];
+
 enum Foo { C { a: int, b: int } }
 struct C { a: int, b: int }         //~ ERROR error: duplicate definition of type `C`
 
index 284787a817264a16b600fd8f06e4cd4a49dd07c0..cb2fedcf9d6a892d0344b9b4c4d98f3b6e1d6ea2 100644 (file)
@@ -12,7 +12,7 @@
 
 // xfail-fast #7103
 extern mod extra;
-use extra::arc::*;
+use extra::arc::Arc;
 
 struct A { y: Arc<int>, x: Arc<int> }
 
index 0e920d137a85cb36f29e9f8c6e9c842539795374..233826bcc7d5edfcb1ef8380dd8a62482184bcf9 100644 (file)
@@ -10,6 +10,8 @@
 
 // error-pattern: unresolved name
 
+#[feature(globs)];
+
 use module_of_many_things::*;
 
 mod module_of_many_things {
index 334ddbeceee6214008733d20a0a284183c43085d..23b449fe061e33e25c7e4a1ce92dff79bce3b036 100644 (file)
@@ -10,6 +10,8 @@
 
 // error-pattern: unresolved
 
+#[feature(globs)];
+
 mod circ1 {
     pub use circ2::f2;
     pub fn f1() { info2!("f1"); }
index 71b319a27d073914b6e63f6d52cf0a76cf2de00f..e49eb1454d8a2d92f2ea1e469133079830ca6c34 100644 (file)
@@ -10,6 +10,8 @@
 
 // Testing that we don't fail abnormally after hitting the errors
 
+#[feature(globs)];
+
 use unresolved::*; //~ ERROR unresolved import. maybe a missing
 //~^ ERROR failed to resolve import
 
index 98599b5d080810be0e1c7fea58873bfb196f1e82..6b84d897c87bd6da0b795b2d6809714bfe2c63c3 100644 (file)
@@ -13,6 +13,8 @@
 // ensures that 'use foo:*' doesn't import non-public 'use' statements in the
 // module 'foo'
 
+#[feature(globs)];
+
 use m1::*;
 
 mod foo {
index c1795d31485fa59ef98cb68fbd988323123fac62..c50398544440abb02ac4a971e5a4c6ccb78c0cc3 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(macro_rules)];
 
 use std::io;
 
index 3c952dbc590877b3dbf702611123598ae46eb741..339f21d10c31dbf87e9420d78a9251f7ffcac41b 100644 (file)
@@ -1,4 +1,8 @@
-macro_rules! e( //~ ERROR unknown macro variable `nonexistent`
+#[feature(macro_rules)];
+
+// error-pattern: unknown macro variable `nonexistent`
+
+macro_rules! e(
     ($inp:ident) => (
         $nonexistent
     );
index e155089c31a0dcd7d93e90b19806ca9a1f8abfa7..372bf803ec459ffec54525a434968167f7941d1b 100644 (file)
@@ -10,6 +10,7 @@
 
 // When denying at the crate level, be sure to not get random warnings from the
 // injected intrinsics by the compiler.
+#[feature(struct_variant)];
 #[deny(missing_doc)];
 
 struct Foo {
index 2c8b768587584d6f7e414ada966f329caed2109d..1046a638ff9473bbe8c45580d60c2c1a08f4bebc 100644 (file)
@@ -11,6 +11,7 @@
 // xfail-fast aux-build
 // aux-build:lint_stability.rs
 
+#[feature(globs)];
 #[deny(unstable)];
 #[deny(deprecated)];
 #[deny(experimental)];
index 918b11b3253f91491db4e35c5b8a8496cfd62dcb..85edbd1d147ccae9c7dd6ef77a21c19c89b38296 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(globs)];
 #[deny(unused_imports)];
 
 mod A {
index e7e01a40487214b4257a13326ca8f50fb7267888..22cf54428a73a6e77b555c443f56155073deed09 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(globs)];
 #[deny(unused_imports)];
 
 use cal = bar::c::cc;
index 615a85c2e7e7170653c2d89e5ce9dc9d486b14ab..598e0706adcca94e6303016d5bdfa9202837daab 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(macro_rules)];
+
 macro_rules! ignored_item {
     () => {
         fn foo() {}
index 95000f4aa229ddbe8e133929c21d5d3f721ec5f8..d8fbb8b879c6ec34d853713efd24f00a8726ac98 100644 (file)
@@ -1,3 +1,5 @@
+#[feature(macro_rules)];
+
 macro_rules! test ( ($nm:ident,
                      $a:attr,
                      $i:item) => (mod $nm { $a; $i }); )
index 23c3e80cd3b2b7f5dac908484732cc4b58990001..cd3c9df6a7255e37b79a78a4fe1213615b3a56e4 100644 (file)
@@ -1,3 +1,5 @@
+#[feature(macro_rules)];
+
 macro_rules! test ( ($nm:ident,
                      $a:attr,
                      $i:item) => (mod $nm { $a $i }); )
index 68f5d921d023902a79f0ee47c28fe6dc9e508983..246f0cb9e662d508e26981a647da48a677eb3fa5 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(globs)];
+
 // error-pattern:declaration of `None` shadows
 use std::option::*;
 
index 7414dc5721621b3ce5e7c21bc58685a643586515..cc12d0ff2058d9e4b891497d2638a0f55bd38248 100644 (file)
@@ -11,7 +11,7 @@
 // xfail-fast
 // aux-build:cci_class_5.rs
 extern mod cci_class_5;
-use cci_class_5::kitties::*;
+use cci_class_5::kitties::cat;
 
 fn main() {
   let nyan : cat = cat(52, 99);
index 5a8f80845e16ff63493ee950c15f37b64b93873d..0b46e8d0a8206d037e3f828237fdc9006491fb3f 100644 (file)
@@ -10,7 +10,7 @@
 
 // aux-build:cci_class.rs
 extern mod cci_class;
-use cci_class::kitties::*;
+use cci_class::kitties::cat;
 
 fn main() {
   let nyan : cat = cat(52u, 99);
index 91709e2ea7da086950134346f115b3f4d30a0f8e..06fd4e6d8c9c397e40743cb700ca90f84f393a54 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(struct_variant)];
+
 enum A {
     B { x: Option<int> },
     C
index 9a9e71c7068c40e460dee7d64fe7e286fe8e2d22..c77804c38bbcf6524cb808d78fac5fd24dcacac0 100644 (file)
@@ -23,6 +23,7 @@
 // check:$3 = {4820353753753434}
 
 #[allow(unused_variable)];
+#[feature(struct_variant)];
 
 // The first element is to ensure proper alignment, irrespective of the machines word size. Since
 // the size of the discriminant value is machine dependent, this has be taken into account when
index 6ea0e0b12a3f5835c952d4a841dce03c7d8f2f09..45c7cb2a1925918d8eeaed6538b0e97eaa05f999 100644 (file)
@@ -41,6 +41,8 @@
 // check:$7 = {{Case1, x = 0, y = 8970181431921507452}, {Case1, 0, 2088533116, 2088533116}}
 // debugger:continue
 
+#[feature(struct_variant)];
+
 #[deriving(Clone)]
 struct Struct {
     a: int,
index bea901a75d04084117bd0b36359c9be59d595881..2e69dd1132380f689a67afd9d6b9048d19830cec 100644 (file)
@@ -30,6 +30,7 @@
 // check:$5 = 5
 // debugger:continue
 
+#[feature(struct_variant)];
 
 struct Struct {
     x: int
index 81b12fe60ae3d7f5fabb6180d65b1ad1c6055b65..672ddc8fc45ca71a9ebda597700a10fa8963ed71 100644 (file)
@@ -26,6 +26,8 @@
 // debugger:print univariant
 // check:$4 = {a = -1}
 
+#[feature(struct_variant)];
+
 // NOTE: This is a copy of the non-generic test case. The `Txx` type parameters have to be
 // substituted with something of size `xx` bits and the same alignment as an integer type of the
 // same size.
index 9e87eee692dc2b880d29bcf8333d5901e431cca3..6e23797e10d662e63eefa2490e111a18e3c88c9f 100644 (file)
@@ -63,6 +63,8 @@
 // check:$15 = 400
 // debugger:continue
 
+#[feature(macro_rules)];
+
 macro_rules! trivial(
     ($e1:expr) => ($e1)
 )
index 87aa3d1dfc159e8249f941af6fcfea5fd6af8743..7be428725709318c51281915169f279e85b6d1e8 100644 (file)
@@ -23,6 +23,7 @@
 // check:$3 = {-9747455}
 
 #[allow(unused_variable)];
+#[feature(struct_variant)];
 
 // The first element is to ensure proper alignment, irrespective of the machines word size. Since
 // the size of the discriminant value is machine dependent, this has be taken into account when
index d428d230d45c01486db7087561d0bf007cf840bc..2f02844fdc5f704b14dc9217273dc63e4097c744 100644 (file)
@@ -92,6 +92,8 @@
 // check:$21 = -16
 // debugger:continue
 
+#[feature(struct_variant)];
+
 enum Enum {
     Variant1 { x: u16, y: u16 },
     Variant2 (u32)
index 5c0ffe24f0eaa7c818cdf73093dccb0c64ad47aa..093b59a2bfe46a33b9e2a8c22f3d874cfd51a65d 100644 (file)
@@ -33,6 +33,8 @@
 
 // debugger:continue
 
+#[feature(struct_variant)];
+
 // If a struct has exactly two variants, one of them is empty, and the other one
 // contains a non-nullable pointer, then this value is used as the discriminator.
 // The test cases in this file make sure that something readable is generated for
index b8a43d6d16a40a82493afb40fbfc001b0e60e3ff..b8d510bd306d8281c00a7486831e61e352a92ef9 100644 (file)
@@ -99,6 +99,7 @@
 // debugger:continue
 
 #[allow(unused_variable)];
+#[feature(struct_variant)];
 
 enum Opt<T> {
     Empty,
index e4b2e06faf4d17827c01b30fac0731bf579b6a94..062cbdd48599062b30467e8e0d423fdbf0821ff5 100644 (file)
@@ -30,6 +30,7 @@
 // check:$5 = 5
 // debugger:continue
 
+#[feature(struct_variant)];
 
 struct Struct {
     x: int
index acd2526a68d6e66e9fa1833087cadd2599f8d38f..90072367bc53780f566af02dee5a7f2bc7ed65b6 100644 (file)
@@ -27,6 +27,7 @@
 // check:$4 = {a = -1}
 
 #[allow(unused_variable)];
+#[feature(struct_variant)];
 
 // The first element is to ensure proper alignment, irrespective of the machines word size. Since
 // the size of the discriminant value is machine dependent, this has be taken into account when
index 0995cec11a3b30a9aed1dfed83dab35f44f42746..d939c8c4abccd9032178900770bb96e3ce5a4647 100644 (file)
@@ -23,6 +23,7 @@
 // check:$3 = {123234}
 
 #[allow(unused_variable)];
+#[feature(struct_variant)];
 
 // The first element is to ensure proper alignment, irrespective of the machines word size. Since
 // the size of the discriminant value is machine dependent, this has be taken into account when
index 1a2c22889fd82d680fc6a993f9077c7ee0f16f7c..45e544cef8c8a21c74e2bd8577eb345d7d69e855 100644 (file)
@@ -12,7 +12,7 @@
 // aux-build:anon-extern-mod-cross-crate-1.rs
 extern mod anonexternmod;
 
-use anonexternmod::*;
+use anonexternmod::rust_get_test_int;
 
 #[fixed_stack_segment]
 pub fn main() {
index b57e179f4a9af709155d39ca87fd1d7e1a863b52..dcdab0edc3aaea1fb58dc323809b6532aad6e9f2 100644 (file)
@@ -11,7 +11,7 @@
 // except according to those terms.
 
 extern mod extra;
-use extra::bitv::*;
+use extra::bitv::Bitv;
 
 fn bitv_test() {
     let mut v1 = ~Bitv::new(31, false);
index 09c3dd2d54baf86f8634a1d941a975dca0e7ce08..2c4d007cb1a2130b059c4d11efb83f635b364791 100644 (file)
@@ -1,6 +1,8 @@
 // Check that we do not ICE when compiling this
 // macro, which reuses the expression `$id`
 
+#[feature(macro_rules)];
+
 struct Foo {
   a: int
 }
index 231cd37db5d356be689f1692f1fe846e1d2a121b..86641027e788a5050e25846f5490e351b2ec39d2 100644 (file)
@@ -11,6 +11,8 @@
 // xfail-fast - check-fast doesn't understand aux-build
 // aux-build:cci_nested_lib.rs
 
+#[feature(globs)];
+
 extern mod cci_nested_lib;
 use cci_nested_lib::*;
 
index 8dfb7190c218d99bd918723afb73c766c398f278..224df80d08ef92c9f2480e6c6d29e58ede74d39a 100644 (file)
@@ -14,6 +14,8 @@
 // check that cfg correctly chooses between the macro impls (see also
 // cfg-macros-notfoo.rs)
 
+#[feature(macro_rules)];
+
 #[cfg(foo)]
 #[macro_escape]
 mod foo {
index 8ede6eff2dd530b0d8c71c9867532f1777149ba2..5aa94bb1fbdc9950cd2835cd273635d68e536998 100644 (file)
@@ -14,6 +14,8 @@
 // check that cfg correctly chooses between the macro impls (see also
 // cfg-macros-foo.rs)
 
+#[feature(macro_rules)];
+
 #[cfg(foo)]
 #[macro_escape]
 mod foo {
index ac8c74f2da572a1b0198258c10872b90e0baabbc..bdba6a4c6c67bf6822b5e1811d01c870c030b0f8 100644 (file)
@@ -12,7 +12,7 @@
 // aux-build:cci_class_cast.rs
 extern mod cci_class_cast;
 use std::to_str::ToStr;
-use cci_class_cast::kitty::*;
+use cci_class_cast::kitty::cat;
 
 fn print_out(thing: @ToStr, expected: ~str) {
   let actual = thing.to_str();
index 11ef86035c56f444947d708e21414cb54ca085a2..d801da49efc66ebf85d94b5dbfc8a7906d19aecc 100644 (file)
@@ -13,7 +13,7 @@
 /* Test that exporting a class also exports its
    public fields and methods */
 
-use kitty::*;
+use kitty::cat;
 
 mod kitty {
     pub struct cat {
index 78dcdba2895294a8a615c00b91a10214e40e8f81..d6477d2d5a5cbae9dc895d176bd21094eb371d82 100644 (file)
@@ -11,7 +11,7 @@
 // xfail-fast
 // aux-build:cci_class_trait.rs
 extern mod cci_class_trait;
-use cci_class_trait::animals::*;
+use cci_class_trait::animals::noisy;
 
 struct cat {
   priv meows: uint,
index d2c78c7f1add831b526cad3629f7fa838458e87b..b0e96ad7e84b13f4e9031c881bdcdb1cb2592971 100644 (file)
@@ -11,7 +11,7 @@
 // xfail-fast
 // aux-build:cci_class_2.rs
 extern mod cci_class_2;
-use cci_class_2::kitties::*;
+use cci_class_2::kitties::cat;
 
 pub fn main() {
   let nyan : cat = cat(52u, 99);
index 159a100e61aaf9ae335844de3a4d30a927be5d19..86a529a75b600a354cc210e15ce659279eed1ad5 100644 (file)
@@ -11,7 +11,7 @@
 // xfail-fast
 // aux-build:cci_class_3.rs
 extern mod cci_class_3;
-use cci_class_3::kitties::*;
+use cci_class_3::kitties::cat;
 
 pub fn main() {
     let mut nyan : cat = cat(52u, 99);
index 62ff54388952fd03fbed6ab9b90f9c300d98db21..9aac6a0ff63d4e563105883ac03d24941d556183 100644 (file)
@@ -11,7 +11,7 @@
 // xfail-fast
 // aux-build:cci_class_6.rs
 extern mod cci_class_6;
-use cci_class_6::kitties::*;
+use cci_class_6::kitties::cat;
 
 pub fn main() {
   let mut nyan : cat<char> = cat::<char>(52u, 99, ~['p']);
index 4c7823b4107a05a992898d51f38f79975bf1aed0..96d9434677d87a244929db3de97bde5447cd19e5 100644 (file)
@@ -11,7 +11,7 @@
 // xfail-fast
 // aux-build:cci_class_4.rs
 extern mod cci_class_4;
-use cci_class_4::kitties::*;
+use cci_class_4::kitties::cat;
 
 pub fn main() {
     let mut nyan = cat(0u, 2, ~"nyan");
index 0df04c40fb7c965a485d2443aaefc1a34ef466e5..519cca21a0ff391dc5d809b7b3d48f0acf1bded2 100644 (file)
@@ -11,7 +11,7 @@
 // xfail-fast
 // aux-build:cci_class.rs
 extern mod cci_class;
-use cci_class::kitties::*;
+use cci_class::kitties::cat;
 
 pub fn main() {
   let nyan : cat = cat(52u, 99);
index 05f54d6bd7eed4576d51ec92589f388c8346941d..95ba635011f833641a05e23043261c90ac7679a8 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(struct_variant)];
+
 enum E {
     S0 { s: ~str },
     S1 { u: uint }
index 789295edaaa0733ccafbbf075ce2758906d3db54..0e0e52c62737a4745f186e37eb8e8289c7437c25 100644 (file)
@@ -16,7 +16,6 @@
 // instead of in std.
 
 use std::libc;
-use std::run::*;
 use std::run;
 use std::str;
 
index fe92684e8e1ea74da67c3069ec35bc75dff5232c..aedf4732afdbb8f49cebdf7afc3c8e857b178452 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(struct_variant)];
+
 #[deriving(Eq, TotalEq, Ord, TotalOrd)]
 enum ES<T> {
     ES1 { x: T },
index c282860957a1f13b6f5f3af6be36f7b191d944fc..b1c5f2f0f2d729365a1206eba7f7c05c259ed190 100644 (file)
 
 // xfail-fast
 
+#[feature(struct_variant)];
+
 extern mod extra;
 
 use std::io;
 use std::rand::{random, Rand};
-use extra::serialize::*;
+use extra::serialize::{Encodable, Decodable};
 use extra::ebml;
 use extra::ebml::writer::Encoder;
 use extra::ebml::reader::Decoder;
index 65bfc14406fc49e651072b0c2453b797b0290fdf..39a86c0ae3fd629c38d4a66b7b6a88ab8948cb42 100644 (file)
@@ -9,6 +9,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(struct_variant)];
+
 use std::rand;
 
 #[deriving(Rand)]
index a6068b52740d0a645845a66f2f16c029ac3e5680..d9f69bd4a49364fbea6f59504cc10b541c8dd3a5 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(struct_variant)];
+
 #[deriving(ToStr)]
 enum A {}
 #[deriving(ToStr)]
index 5189136c4863fd2552804b2f3bba754ca0afc2c8..83c8679027bb88c0b11b5473ee42bd60cac55bb4 100644 (file)
@@ -1,3 +1,5 @@
+#[feature(struct_variant)];
+
 #[deriving(Eq)]
 enum S {
     X { x: int, y: int },
index 6d93437971cde03b7ece27ed7b7f4d92652d36e7..69f3c8813883aa44425bfedfb0d35a83f6b58d2b 100644 (file)
@@ -1,5 +1,6 @@
 #[allow(dead_assignment)];
 #[allow(unused_variable)];
+#[feature(struct_variant)];
 
 enum Animal {
     Dog (~str, f64),
index ab2750dc4af04343a8ffcadf271b036ea115b638..16f4754beaf307724359573ae346a8b84500c1c2 100644 (file)
@@ -15,6 +15,8 @@
 
 // Modified to not use export since it's going away. --pcw
 
+#[feature(globs)];
+
 mod foo {
     use foo::bar::*;
     pub mod bar {
index 1f98b445b169dd3534dbbc0addbcf75446e8a7fd..e0ac464f321b89ed06aa531eb51df4cf0939623d 100644 (file)
@@ -12,7 +12,7 @@
 
 extern mod extra;
 
-use extra::getopts::*;
+use extra::getopts::{optopt, getopts};
 
 pub fn main() {
     let args = ~[];
index e0c0fdd396b7a6ff48c43b0e9095379c91d010c8..c7b98c34a91def284eb63e8f0ff7353ab41607db 100644 (file)
@@ -12,7 +12,7 @@
 
 extern mod extra;
 
-use extra::glob::*;
+use extra::glob::glob;
 use extra::tempfile;
 use std::unstable::finally::Finally;
 use std::{io, os, unstable};
index bf79768c7be1a4f902f34dd717ecf478f88e9ab4..13a544a200bab8760c33649a7e9b9e8b0dcfe93c 100644 (file)
@@ -19,7 +19,7 @@
 pub fn map(filename: ~str, emit: map_reduce::putter) { emit(filename, ~"1"); }
 
 mod map_reduce {
-    use std::comm::*;
+    use std::comm::{stream, SharedChan};
     use std::hashmap::HashMap;
     use std::str;
     use std::task;
index be0f9cd046b794fa7f20928cc83039409513f3dc..97040716a11ee3df16a85273e16cd515ae70dce3 100644 (file)
@@ -10,6 +10,7 @@
 
 // A test of the macro system. Can we do HTML literals?
 
+#[feature(macro_rules)];
 
 /*
 
index 39ca7b0b8ad84cc20bbadd2bd153e645bb85dac4..7611871b0e760f797256d7708c7464730acd58cb 100644 (file)
@@ -10,6 +10,7 @@
 
 // xfail-fast: check-fast screws up repr paths
 
+#[feature(macro_rules)];
 #[deny(warnings)];
 
 use std::fmt;
index f71bdb4e182da8d8f788ec24f89782f1388165ba..1da617273df64634175fdfe7d01967fb82bf96f0 100644 (file)
@@ -10,6 +10,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(globs)];
+
 use module_of_many_things::*;
 use dug::too::greedily::and::too::deep::*;
 
index 2f863d3da62ac957f1b83a314c35ac4ca71c21c0..b3c8ffb2d8d5cb9491f5e5b3c05e09ed444b27bb 100644 (file)
@@ -10,6 +10,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(globs)];
 #[allow(dead_assignment)];
 
 extern mod extra;
index b423073eca7212826006455bef131814299a05cb..0d539655148f0b5271e2031700952f18a611a76f 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(globs)];
+
 pub fn main() {
     use std::util::replace;
     let mut x = 5;
index 4b17a95cf661dac4ce65ad24aa881498443409c0..bbbc8bf4c1f7964c43434c24c3a3de96f4fefdae 100644 (file)
@@ -10,6 +10,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(globs)];
+
 extern mod extra;
 
 mod rusti {
index 62a01613c206565c898431302e9bb837072d1a03..281ca2c3424bb63b6b98297bd8d05fc15688054f 100644 (file)
@@ -10,6 +10,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(globs)];
+
 mod rusti {
     #[abi = "rust-intrinsic"]
     extern "rust-intrinsic" {
index 851c27deaa080e7c02c1365bd2e5e05ce909df14..e9df42b174ef6b3e5cb0165021ab26c02aaed9ec 100644 (file)
@@ -11,6 +11,7 @@
 // xfail-fast
 // aux-build:issue-2526.rs
 
+#[feature(globs)];
 #[allow(unused_imports)];
 
 extern mod issue_2526;
index 3ceae1030562d00133203c4027c98ef6b6d09ce5..71aa11014c1dc90fdc0aa4edc452aa5c14939645 100644 (file)
@@ -13,7 +13,7 @@
 
 extern mod req;
 
-use req::*;
+use req::request;
 use std::hashmap::HashMap;
 
 pub fn main() {
index 2ca56ae0b7aa58699cf8d5a8781697f5698c15ea..8c13ffed90b480fcb5b9d6ae3dfc5c4ef81c5dd0 100644 (file)
@@ -12,7 +12,7 @@
 // aux-build:issue_2723_a.rs
 
 extern mod issue_2723_a;
-use issue_2723_a::*;
+use issue_2723_a::f;
 
 pub fn main() {
     unsafe {
index 96cf88a0e2b5ee690dbff2b1f5f323de941b9f6b..668f3f8f154cf86827750359d531464760b10b89 100644 (file)
@@ -13,7 +13,7 @@
 // Incorrect struct size computation in the FFI, because of not taking
 // the alignment of elements into account.
 
-use std::libc::*;
+use std::libc::{c_uint, uint32_t, c_void};
 
 struct KEYGEN {
     hash_algorithm: [c_uint, ..2],
index 63d2562f5412b45d842b23f866b33baf199ce0bc..a6294daca8a58fcb3878ec87231b27fd034a46b8 100644 (file)
@@ -11,7 +11,7 @@
 // xfail-fast
 // aux-build:issue_3979_traits.rs
 extern mod issue_3979_traits;
-use issue_3979_traits::*;
+use issue_3979_traits::{Positioned, Movable};
 
 struct Point { x: int, y: int }
 
index e8b633ca251f3d84f3dda2566b7cd7b85286fe50..4328dc7d5f912d8d81f1ae88e2127abbd6225fe3 100644 (file)
@@ -12,7 +12,7 @@
 // xfail-fast - Windows hates cross-crate tests
 
 extern mod numeric;
-use numeric::*;
+use numeric::{sin, Angle};
 
 fn foo<T, A:Angle<T>>(theta: A) -> T { sin(&theta) }
 
index c988110607106ee1b7e8580a5fddb5202e5e4ebd..e7d0cc012402af5b0138003f3bd0abc9a27a5bd1 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(macro_rules)];
+
 use std::io;
 
 macro_rules! print_hd_tl (
index 8e55ad90c70441bd6091fc36d2b84d50f0cbfe2d..68287a3a97ef763c5aa737f21a8b792f19152b5c 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(struct_variant)];
+
 enum Enum {
     Foo { foo: uint },
     Bar { bar: uint }
index 9a0afc9d228fafabd72e9d04924e8e5132ad6804..e4ef20a3b0fc4cc24a85d8556da09f8d699b2b98 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(macro_rules)];
+
 use std::num::Zero;
 
 pub struct X<T> {
index 27c2ed9e5adf970fbaab8367cbb33b6d683fbb60..dad9b53e0192ad818e66d1a2b4de46584d60e40d 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(macro_rules)];
+
 macro_rules! silly_macro(
     () => (
         pub mod Qux {
index 93bb2ca98e8b5c5bbf77a2bcf837e176c1c053d6..ce49492fee947d8b17047f9bb32ff8a9492e2a90 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(macro_rules)];
+
 // shouldn't affect evaluation of $ex:
 macro_rules! bad_macro (($ex:expr) => ({let _x = 9; $ex}))
 pub fn main() {
index b4ae81a32047d1bc2c4973f06691834958670120..faf83013e0001e80467acd2e95c25b75d776635f 100644 (file)
@@ -10,6 +10,8 @@
 
 // xfail-pretty - token trees can't pretty print
 
+#[feature(macro_rules)];
+
 pub fn main() {
 
     macro_rules! mylambda_tt(
index 1c6ba82c3c98190bb96687f2f9f444a78a978320..0741d74b214b02bd56ca1227b69177d851c9e1be 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(macro_rules)];
 
 macro_rules! overly_complicated (
     ($fnname:ident, $arg:ident, $ty:ty, $body:block, $val:expr, $pat:pat, $res:path) =>
index 4aa1587943413de7cc5fa0be6948fc642054c7ac..9740982e2c9d3a5850b0c6089ee8864c6047c7de 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(macro_rules)];
+
 mod m {
     pub type t = int;
 }
index 66f16bc9f2e03cfe630e08d29a40fd76339c017d..28e0f6f8f20d0342b7c2fcc46f5f0c7e71d8b979 100644 (file)
@@ -10,6 +10,8 @@
 
 // xfail-pretty - token trees can't pretty print
 
+#[feature(macro_rules)];
+
 macro_rules! myfn(
     ( $f:ident, ( $( $x:ident ),* ), $body:block ) => (
         fn $f( $( $x : int),* ) -> int $body
index 3a223dc70160439e8ef5a03febd8b46e1779f7da..f5e4cf6c9260b211b52c6b1332553ff7b7a7831b 100644 (file)
@@ -10,6 +10,8 @@
 
 // regression test for issue #5625
 
+#[feature(struct_variant)];
+
 enum E {
     Foo{f : int},
     Bar
index 65352ada39450a7617ff6342968a9f84fd8f9473..0f853cf64c571517f3e26cae0a057b2f8203ff35 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(struct_variant)];
+
 enum E {
     Foo{f : int},
     Bar
index 671ec5a3965c3d369a06d34b0f6fba4e1a6f05e4..b364c8dc59f0c342b69b3131d70feba342c53aa3 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(macro_rules, struct_variant)];
+
 enum Foo {
     B { b1: int, bb1: int},
 }
index f4026c83c3e1fb98755c09fa2f1e9e5a530b6ff3..ed5434589317f6b5343112848f19b9de2dd0657d 100644 (file)
@@ -12,7 +12,7 @@
 
 extern mod extra;
 
-use extra::list::*;
+use extra::list::{List, Cons, Nil, head, is_empty};
 
 fn pure_length_go<T:Clone>(ls: @List<T>, acc: uint) -> uint {
     match *ls { Nil => { acc } Cons(_, tl) => { pure_length_go(tl, acc + 1u) } }
index 704fd4eafba2fca22a7f97308c8e60decc6c69ab..15cd508b655ffa008d6abfddd5bed7f7dd5b4463 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(macro_rules)];
+
 use std::sys;
 
 enum E<T> { Thing(int, T), Nothing((), ((), ()), [i8, ..0]) }
index 3cc250b1707449034ced4577f93debf62c194a42..df1df36eb3cada2715585c889f015378a554d24f 100644 (file)
@@ -10,6 +10,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(globs)];
+
 // FIXME #3654
 
 mod a {
index 6079168838585a097012fe2a43898d03bf41f530..80de9d8762be37e86d522f5d48ba1f791e267c5d 100644 (file)
 use extra::tempfile::mkdtemp;
 use std::os;
 use std::libc;
-use std::libc::*;
 
 fn rename_directory() {
     #[fixed_stack_segment];
     unsafe {
-        static U_RWX: i32 = (S_IRUSR | S_IWUSR | S_IXUSR) as i32;
+        static U_RWX: i32 = (libc::S_IRUSR | libc::S_IWUSR | libc::S_IXUSR) as i32;
 
         let tmpdir = mkdtemp(&os::tmpdir(), "rename_directory").expect("rename_directory failed");
         let old_path = tmpdir.push_many(["foo", "bar", "baz"]);
@@ -38,13 +37,13 @@ fn rename_directory() {
         assert!((ostream as uint != 0u));
         let s = ~"hello";
         do "hello".with_c_str |buf| {
-            let write_len = libc::fwrite(buf as *c_void,
-                                         1u as size_t,
-                                         (s.len() + 1u) as size_t,
+            let write_len = libc::fwrite(buf as *libc::c_void,
+                                         1u as libc::size_t,
+                                         (s.len() + 1u) as libc::size_t,
                                          ostream);
-            assert_eq!(write_len, (s.len() + 1) as size_t)
+            assert_eq!(write_len, (s.len() + 1) as libc::size_t)
         }
-        assert_eq!(libc::fclose(ostream), (0u as c_int));
+        assert_eq!(libc::fclose(ostream), (0u as libc::c_int));
 
         let new_path = tmpdir.push_many(["quux", "blat"]);
         assert!(os::mkdir_recursive(&new_path, U_RWX));
index 2d38531a648c433fe8f646497b928ecbde1ca19e..70d8b8fe5a4b842e6638685a38d1dad3d8233b5f 100644 (file)
@@ -23,9 +23,9 @@
 //
 // See #9341
 
-use std::rt::io::process::*;
+use std::rt::io::process::{Process, ProcessConfig, CreatePipe, Ignored};
 use std::rt::io::{Reader, Writer};
-use std::rt::io::pipe::*;
+use std::rt::io::pipe::PipeStream;
 use std::str;
 
 #[test]
index 42f119cbe396fd5e0863ccefc771dc148fe360c8..a7c9e3b8f064bfae069d498e30f9890c06062065 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(struct_variant)];
+
 enum Foo {
     Bar {
         a: int,
index b0f2f65b3f41bd72da6f112c9529825ae5a7fb2c..bb03f57be78e89b4c4fcb6075c4786327b2a1420 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(struct_variant)];
+
 enum Foo {
     Bar {
         x: int,
index e778645ad27b7a75f4509d88d3bb74b6c3963a6f..15a343044e13c2c8a42f448213dc9983efc27a48 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(macro_rules)];
+
 // compile-flags: --cfg nofmt
 
 extern mod extra;
index 91d10adfbfbaed0f937997c64e56121ac2de3613..bf93dd0ae497dee9b15f14354bb9cb828ada0557 100644 (file)
@@ -11,6 +11,8 @@
 // This test is brittle!
 // xfail-pretty - the pretty tests lose path information, breaking include!
 
+#[feature(macro_rules)];
+
 pub mod m1 {
     pub mod m2 {
         pub fn where_am_i() -> ~str { (module_path!()).to_owned() }
@@ -20,9 +22,9 @@ pub fn where_am_i() -> ~str { (module_path!()).to_owned() }
 macro_rules! indirect_line( () => ( line!() ) )
 
 pub fn main() {
-    assert_eq!(line!(), 23);
+    assert_eq!(line!(), 25);
     //assert!((col!() == 11));
-    assert_eq!(indirect_line!(), 25);
+    assert_eq!(indirect_line!(), 27);
     assert!((file!().to_owned().ends_with("syntax-extension-source-utils.rs")));
     assert_eq!(stringify!((2*3) + 5).to_owned(), ~"( 2 * 3 ) + 5");
     assert!(include!("syntax-extension-source-utils-files/includeme.fragment").to_owned()
index e901196387e5e3e42293bb19155e7e3aeefec9f1..b18bf66b6c9ccb53d947404603d14c3f68b560a1 100644 (file)
@@ -10,6 +10,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(globs)];
+
 use alder::*;
 
 mod alder {
index 66a1ebe26cd547dc1487507aa91d6223f6b33241..b4f28114f967281b442bfc80fa208e7e41779f4c 100644 (file)
@@ -1,3 +1,5 @@
+#[feature(macro_rules)];
+
 enum T {
     A(int),
     B(f64)
index 0b8447aa0cdff53c022a91df963a3daee04eea8a..5f63968d59d42e0f384e03b494eca76b3d5853cf 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use std::iter::*;
+use std::iter::Unfold;
 
 // Unfold had a bug with 'self that mean it didn't work
 // cross-crate
index 9face041eb24030f35d4a52511835317bc1b8ef8..e697af80dcc91df88ec7fdd66abe70d3d4c6c8f4 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use std::comm::*;
+use std::comm::{SharedChan, stream};
 use std::task;
 
 fn child(c: &SharedChan<~uint>, i: uint) {
index 85676217d4f62df6721a86916ac1b0b00658e9b0..6ab40c10aa4534ef51504b634e30c633c2ea2779 100644 (file)
@@ -12,7 +12,7 @@
 
 extern mod extra;
 
-use std::comm::*;
+use std::comm::{stream, SharedChan};
 use std::task;
 
 struct complainer {
index e078fa1485d14978fac563396a35283ea35ee889..66bdec453e636ebe14c524ccc34fbec2039a4360 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[feature(struct_variant)];
+
 enum Foo {
     Bar { x: int },
     Baz { y: int }