Skip to content

Commit 85eae88

Browse files
committedJan 2, 2018
Auto merge of #47130 - frewsxcv:rollup, r=frewsxcv
Rollup of 4 pull requests - Successful merges: #47107, #47117, #47118, #47121 - Failed merges:
2 parents 687d3d1 + 4002618 commit 85eae88

File tree

6 files changed

+10
-13
lines changed

6 files changed

+10
-13
lines changed
 

‎src/doc/unstable-book/src/library-features/proc-macro.md

-7
This file was deleted.

‎src/liballoc/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ impl<T> Vec<T> {
715715
///
716716
/// # Panics
717717
///
718-
/// Panics if `index` is out of bounds.
718+
/// Panics if `index > len`.
719719
///
720720
/// # Examples
721721
///

‎src/libcore/slice/memchr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fn repeat_byte(b: u8) -> usize {
5656
rep
5757
}
5858

59-
/// Return the first index matching the byte `a` in `text`.
59+
/// Return the first index matching the byte `x` in `text`.
6060
pub fn memchr(x: u8, text: &[u8]) -> Option<usize> {
6161
// Scan for a single byte value by reading two `usize` words at a time.
6262
//
@@ -101,7 +101,7 @@ pub fn memchr(x: u8, text: &[u8]) -> Option<usize> {
101101
text[offset..].iter().position(|elt| *elt == x).map(|i| offset + i)
102102
}
103103

104-
/// Return the last index matching the byte `a` in `text`.
104+
/// Return the last index matching the byte `x` in `text`.
105105
pub fn memrchr(x: u8, text: &[u8]) -> Option<usize> {
106106
// Scan for a single byte value by reading two `usize` words at a time.
107107
//

‎src/librustc/mir/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ensure that, before the MIR at a particular phase in the processing
5959
pipeline is stolen, anyone who may want to read from it has already
6060
done so. Concretely, this means that if you have some query `foo(D)`
6161
that wants to access the result of `mir_const(D)` or
62-
`mir_validated(D)`, you need to have the successor pass either "force"
62+
`mir_validated(D)`, you need to have the successor pass "force"
6363
`foo(D)` using `ty::queries::foo::force(...)`. This will force a query
6464
to execute even though you don't directly require its result.
6565

‎src/tools/tidy/src/unstable_book.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ pub fn check(path: &path::Path, bad: &mut bool) {
8787
// Library features
8888

8989
let lang_features = collect_lang_features(path);
90-
let lib_features = collect_lib_features(path);
90+
let lib_features = collect_lib_features(path).into_iter().filter(|&(ref name, _)| {
91+
!lang_features.contains_key(name)
92+
}).collect();
9193

9294
let unstable_lib_feature_names = collect_unstable_feature_names(&lib_features);
9395
let unstable_book_lib_features_section_file_names =

‎src/tools/unstable-book-gen/src/main.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ fn main() {
129129
let dest_path = Path::new(&dest_path_str).join("src");
130130

131131
let lang_features = collect_lang_features(src_path);
132-
let lib_features = collect_lib_features(src_path);
132+
let lib_features = collect_lib_features(src_path).into_iter().filter(|&(ref name, _)| {
133+
!lang_features.contains_key(name)
134+
}).collect();
133135

134136
let doc_src_path = src_path.join(PATH_STR);
135137

0 commit comments

Comments
 (0)