]> git.lizzy.rs Git - rust.git/commitdiff
Test fixes and rebase conflicts, round 1
authorAlex Crichton <alex@alexcrichton.com>
Fri, 27 Mar 2015 18:29:36 +0000 (11:29 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 27 Mar 2015 18:29:36 +0000 (11:29 -0700)
src/doc/trpl/lang-items.md
src/doc/trpl/no-stdlib.md
src/doc/trpl/tracing-macros.md
src/doc/trpl/unstable.md [new file with mode: 0644]
src/libcore/option.rs
src/libcoretest/option.rs
src/librustc_borrowck/lib.rs
src/librustc_resolve/lib.rs

index 30ab59cc0291a057d5e8561007209507f67fc9f7..5c27c03e8e0b259a0216abb1245f5e82b8b4fea7 100644 (file)
@@ -16,7 +16,7 @@ and one for deallocation. A freestanding program that uses the `Box`
 sugar for dynamic allocations via `malloc` and `free`:
 
 ```
-#![feature(lang_items, box_syntax, start, no_std)]
+#![feature(lang_items, box_syntax, start, no_std, libc)]
 #![no_std]
 
 extern crate libc;
index 539a0729ba336011f59e9ff469951faf79bc307f..094c82a08cc9d12ac3eb57ac09deae56043b65ee 100644 (file)
@@ -21,7 +21,7 @@ The function marked `#[start]` is passed the command line parameters
 in the same format as C:
 
 ```
-#![feature(lang_items, start, no_std)]
+#![feature(lang_items, start, no_std, libc)]
 #![no_std]
 
 // Pull in the system libc library for what crt0.o likely requires
@@ -104,7 +104,7 @@ As an example, here is a program that will calculate the dot product of two
 vectors provided from C, using idiomatic Rust practices.
 
 ```
-#![feature(lang_items, start, no_std)]
+#![feature(lang_items, start, no_std, core, libc)]
 #![no_std]
 
 # extern crate libc;
index bc337f30515a86579c5ae15bea80f931e4100f43..6226ea9f3e75a21e067909c49155bad69e03bb4b 100644 (file)
@@ -31,7 +31,7 @@ macro_rules! bct {
 
 This is pretty complex! we can see the output
 
- ```rust
+```rust,ignore
 #![feature(trace_macros)]
 
 macro_rules! bct {
@@ -61,6 +61,7 @@ fn main() {
 
     bct!(0, 0, 1, 1, 1 ; 1, 0, 1);
 }
+```
 
 This will print out a wall of text:
 
diff --git a/src/doc/trpl/unstable.md b/src/doc/trpl/unstable.md
new file mode 100644 (file)
index 0000000..e8e02cc
--- /dev/null
@@ -0,0 +1 @@
+% Unstable Rust
index 368d56f515e55b2fa47112cc76b67bdaef8ab1e2..6d9b93e9be07e0354077fed8467b46878074292d 100644 (file)
 use iter::{ExactSizeIterator};
 use iter::{Iterator, IteratorExt, DoubleEndedIterator, FromIterator, IntoIterator};
 use mem;
-use ops::{Deref, FnOnce};
+use ops::FnOnce;
 use result::Result::{Ok, Err};
 use result::Result;
 #[allow(deprecated)]
index 1a7d8f83d701860193cc26898a4c9c7c5861b6de..569142c0d7dc9609d0e1f04d7b837c6fb3bf9458 100644 (file)
@@ -258,9 +258,6 @@ fn test_cloned() {
     assert_eq!(opt_none.clone(), None);
     assert_eq!(opt_none.cloned(), None);
 
-    // Mutable refs work
-    assert_eq!(opt_mut_ref.cloned(), Some(2u32));
-
     // Immutable ref works
     assert_eq!(opt_ref.clone(), Some(&val1));
     assert_eq!(opt_ref.cloned(), Some(1u32));
index 516e4b26faa9c9556fd903949a30f07b3f70c9d2..54feed930a80d7b9766d1e54bade1090abcf5da6 100644 (file)
@@ -21,7 +21,6 @@
 
 #![allow(non_camel_case_types)]
 
-#![feature(core)]
 #![feature(quote)]
 #![feature(rustc_diagnostic_macros)]
 #![feature(rustc_private)]
index 808891013c61fc15609d8d0e5cd1dec75d93373e..24278af48a964e9687d63565337cecdcab7ece7e 100644 (file)
@@ -21,7 +21,6 @@
 
 #![feature(alloc)]
 #![feature(collections)]
-#![feature(core)]
 #![feature(rustc_diagnostic_macros)]
 #![feature(rustc_private)]
 #![feature(staged_api)]