Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 4 pull requests #47130

Closed
wants to merge 9 commits into from
Closed
7 changes: 0 additions & 7 deletions src/doc/unstable-book/src/library-features/proc-macro.md

This file was deleted.

2 changes: 1 addition & 1 deletion src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ impl<T> Vec<T> {
///
/// # Panics
///
/// Panics if `index` is out of bounds.
/// Panics if `index > len`.
///
/// # Examples
///
Expand Down
4 changes: 2 additions & 2 deletions src/libcore/slice/memchr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn repeat_byte(b: u8) -> usize {
rep
}

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

/// Return the last index matching the byte `a` in `text`.
/// Return the last index matching the byte `x` in `text`.
pub fn memrchr(x: u8, text: &[u8]) -> Option<usize> {
// Scan for a single byte value by reading two `usize` words at a time.
//
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/mir/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ ensure that, before the MIR at a particular phase in the processing
pipeline is stolen, anyone who may want to read from it has already
done so. Concretely, this means that if you have some query `foo(D)`
that wants to access the result of `mir_const(D)` or
`mir_validated(D)`, you need to have the successor pass either "force"
`mir_validated(D)`, you need to have the successor pass "force"
`foo(D)` using `ty::queries::foo::force(...)`. This will force a query
to execute even though you don't directly require its result.

Expand Down
4 changes: 3 additions & 1 deletion src/tools/tidy/src/unstable_book.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ pub fn check(path: &path::Path, bad: &mut bool) {
// Library features

let lang_features = collect_lang_features(path);
let lib_features = collect_lib_features(path);
let lib_features = collect_lib_features(path).into_iter().filter(|&(ref name, _)| {
!lang_features.contains_key(name)
}).collect();

let unstable_lib_feature_names = collect_unstable_feature_names(&lib_features);
let unstable_book_lib_features_section_file_names =
Expand Down
4 changes: 3 additions & 1 deletion src/tools/unstable-book-gen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ fn main() {
let dest_path = Path::new(&dest_path_str).join("src");

let lang_features = collect_lang_features(src_path);
let lib_features = collect_lib_features(src_path);
let lib_features = collect_lib_features(src_path).into_iter().filter(|&(ref name, _)| {
!lang_features.contains_key(name)
}).collect();

let doc_src_path = src_path.join(PATH_STR);

Expand Down