Skip to content

Commit 1b28ffa

Browse files
committed
Auto merge of #26961 - Manishearth:rollup, r=Manishearth
- Successful merges: #26932, #26936, #26943, #26944 - Failed merges:
2 parents f7f28c8 + 25b1437 commit 1b28ffa

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

src/liballoc/boxed.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ use core::raw::{TraitObject};
7171
/// The following two examples are equivalent:
7272
///
7373
/// ```
74-
/// # #![feature(box_heap)]
74+
/// #![feature(box_heap)]
7575
/// #![feature(box_syntax)]
7676
/// use std::boxed::HEAP;
7777
///
@@ -162,7 +162,7 @@ impl<T : ?Sized> Box<T> {
162162
///
163163
/// # Examples
164164
/// ```
165-
/// # #![feature(box_raw)]
165+
/// #![feature(box_raw)]
166166
/// use std::boxed;
167167
///
168168
/// let seventeen = Box::new(17u32);

src/librustdoc/html/static/playpen.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ document.addEventListener('DOMContentLoaded', function() {
1616
return;
1717
}
1818

19+
var featureRegexp = new RegExp('^\s*#!\\[feature\\(\.*?\\)\\]');
1920
var elements = document.querySelectorAll('pre.rust');
2021

2122
Array.prototype.forEach.call(elements, function(el) {
@@ -29,8 +30,14 @@ document.addEventListener('DOMContentLoaded', function() {
2930
a.setAttribute('class', 'test-arrow');
3031

3132
var code = el.previousElementSibling.textContent;
33+
34+
var channel = '';
35+
if (featureRegexp.test(code)) {
36+
channel = '&version=nightly';
37+
}
38+
3239
a.setAttribute('href', window.playgroundUrl + '?code=' +
33-
encodeURIComponent(code));
40+
encodeURIComponent(code) + channel);
3441
a.setAttribute('target', '_blank');
3542

3643
el.appendChild(a);

src/libstd/array.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
//! A fixed-size array is denoted `[T; N]` for the element type `T` and
12-
//! the compile time constant size `N`. The size should be zero or positive.
12+
//! the compile time constant size `N`. The size must be zero or positive.
1313
//!
1414
//! Arrays values are created either with an explicit expression that lists
1515
//! each element: `[x, y, z]` or a repeat expression: `[x; N]`. The repeat
@@ -32,7 +32,9 @@
3232
//!
3333
//! [slice]: primitive.slice.html
3434
//!
35-
//! ## Examples
35+
//! Rust does not currently support generics over the size of an array type.
36+
//!
37+
//! # Examples
3638
//!
3739
//! ```
3840
//! let mut array: [i32; 3] = [0; 3];
@@ -49,7 +51,5 @@
4951
//!
5052
//! ```
5153
//!
52-
//! Rust does not currently support generics over the size of an array type.
53-
//!
5454
5555
#![doc(primitive = "array")]

0 commit comments

Comments
 (0)