Skip to content

Commit 0156011

Browse files
committed
Test fixes and rebase conflicts, round 1
1 parent e361b25 commit 0156011

File tree

8 files changed

+7
-10
lines changed

8 files changed

+7
-10
lines changed

src/doc/trpl/lang-items.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ and one for deallocation. A freestanding program that uses the `Box`
1616
sugar for dynamic allocations via `malloc` and `free`:
1717

1818
```
19-
#![feature(lang_items, box_syntax, start, no_std)]
19+
#![feature(lang_items, box_syntax, start, no_std, libc)]
2020
#![no_std]
2121
2222
extern crate libc;

src/doc/trpl/no-stdlib.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The function marked `#[start]` is passed the command line parameters
2121
in the same format as C:
2222

2323
```
24-
#![feature(lang_items, start, no_std)]
24+
#![feature(lang_items, start, no_std, libc)]
2525
#![no_std]
2626
2727
// 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
104104
vectors provided from C, using idiomatic Rust practices.
105105

106106
```
107-
#![feature(lang_items, start, no_std)]
107+
#![feature(lang_items, start, no_std, core, libc)]
108108
#![no_std]
109109
110110
# extern crate libc;

src/doc/trpl/tracing-macros.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ macro_rules! bct {
3131

3232
This is pretty complex! we can see the output
3333

34-
```rust
34+
```rust,ignore
3535
#![feature(trace_macros)]
3636
3737
macro_rules! bct {
@@ -61,6 +61,7 @@ fn main() {
6161
6262
bct!(0, 0, 1, 1, 1 ; 1, 0, 1);
6363
}
64+
```
6465

6566
This will print out a wall of text:
6667

src/doc/trpl/unstable.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
% Unstable Rust

src/libcore/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ use default::Default;
151151
use iter::{ExactSizeIterator};
152152
use iter::{Iterator, IteratorExt, DoubleEndedIterator, FromIterator, IntoIterator};
153153
use mem;
154-
use ops::{Deref, FnOnce};
154+
use ops::FnOnce;
155155
use result::Result::{Ok, Err};
156156
use result::Result;
157157
#[allow(deprecated)]

src/libcoretest/option.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,6 @@ fn test_cloned() {
258258
assert_eq!(opt_none.clone(), None);
259259
assert_eq!(opt_none.cloned(), None);
260260

261-
// Mutable refs work
262-
assert_eq!(opt_mut_ref.cloned(), Some(2u32));
263-
264261
// Immutable ref works
265262
assert_eq!(opt_ref.clone(), Some(&val1));
266263
assert_eq!(opt_ref.cloned(), Some(1u32));

src/librustc_borrowck/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
#![allow(non_camel_case_types)]
2323

24-
#![feature(core)]
2524
#![feature(quote)]
2625
#![feature(rustc_diagnostic_macros)]
2726
#![feature(rustc_private)]

src/librustc_resolve/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
#![feature(alloc)]
2323
#![feature(collections)]
24-
#![feature(core)]
2524
#![feature(rustc_diagnostic_macros)]
2625
#![feature(rustc_private)]
2726
#![feature(staged_api)]

0 commit comments

Comments
 (0)