Skip to content

Rollup of 15 pull requests #53297

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

Merged
merged 57 commits into from
Aug 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
b68b396
Don't collect() when size_hint is useless
ljedrz Aug 3, 2018
1667950
Remove explicit returns where unnecessary
ljedrz Aug 4, 2018
1dd53f7
Add aarch64-unknown-netbsd target
jakllsch Aug 4, 2018
bf089a1
[nll] libcore: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
26991eb
[nll] libprofiler_builtins: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
ed55520
[nll] librustc: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
9207cc9
[nll] librustc_allocator: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
c556cff
[nll] librustc_data_structures: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
75fa16b
[nll] libserialize: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
6858bd8
[nll] libsyntax: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
9d2c4a3
[nll] libtest: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
6c7473d
Deny future duplication of rustc-ap-syntax
alexcrichton Aug 9, 2018
ffdac5d
Make SnapshotMap::{commit, rollback_to} take references
ljedrz Aug 9, 2018
1601879
Change transmute()s in IdxSet::{from_slice, from_slice_mut} to casts
ljedrz Aug 9, 2018
94c3856
A few cleanups for rustc_data_structures
ljedrz Aug 9, 2018
2cb91da
[nll] libsyntax_ext: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
ce5b9c6
[nll] libsyntax_ext: remove unnecessary mut annotation on variable
memoryruins Aug 9, 2018
4861643
[nll] libproc_macro: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
4b42a21
[nll] librustc_codegen_utils: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
8172485
[nll] librustc_llvm: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
588dbed
[nll] librustc_lsan: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
d9f2b51
[nll] librustc_msan: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
5840735
[nll] librustc_platform_intrinsics: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
ac9b7be
[nll] librustc_typeck: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
4aced68
[nll] librustdoc: enable feature(nll) for bootstrap
memoryruins Aug 9, 2018
ef34a16
[nll] librustc_data_structures: remove unused mut annotation in test
memoryruins Aug 9, 2018
b187c42
Consider changing assert! to debug_assert! when it calls visit_with
ljedrz Aug 3, 2018
945f032
Add individual documentation for <integer>`.swap_bytes`/.`reverse_bits`
llogiq Aug 10, 2018
e8d95a5
[nll] libstd: enable feature(nll) for bootstrap
memoryruins Aug 10, 2018
5d6ca8e
[nll] librustc_mir: enable feature(nll) for bootstrap
memoryruins Aug 10, 2018
46b818e
[nll] librustc_codegen_llvm: enable feature(nll) for bootstrap
memoryruins Aug 10, 2018
085535b
[nll] librustc_codegen_llvm: change Child signature to fix error poin…
memoryruins Aug 10, 2018
0123ac1
[nll] librustc_codegen_llvm: remove unused mut annotation
memoryruins Aug 10, 2018
8a76656
Link compiler test documentation to rustc-guide
tromey Aug 1, 2018
e37391b
Remove unwanted console log
GuillaumeGomez Aug 10, 2018
538d1ba
aarch64-unknown-netbsd: add openssl configuration
jakllsch Aug 10, 2018
5a801c8
Fix styles
GuillaumeGomez Aug 11, 2018
53d308f
Show that Command can be reused and remodified
Havvy Aug 11, 2018
f9f934f
Add let keyword doc
GuillaumeGomez Aug 11, 2018
ec18991
Add links to std::char::REPLACEMENT_CHARACTER from docs.
frewsxcv Aug 11, 2018
0070b46
Fix indent
Havvy Aug 11, 2018
58f660f
wherein we suggest float for integer literals where a float was expected
zackmdavis Aug 12, 2018
0653c25
Rollup merge of #52955 - tromey:compiler-test-docs, r=nikomatsakis
GuillaumeGomez Aug 12, 2018
7d38649
Rollup merge of #53019 - ljedrz:bad_collects, r=estebank
GuillaumeGomez Aug 12, 2018
fbe6241
Rollup merge of #53025 - ljedrz:debug_asserts_limited, r=varkor
GuillaumeGomez Aug 12, 2018
28e1a7b
Rollup merge of #53059 - ljedrz:unneeded_returns, r=kennytm
GuillaumeGomez Aug 12, 2018
d509e31
Rollup merge of #53165 - jakllsch:netbsd-ad22a005-b917-47f3-8156-f717…
GuillaumeGomez Aug 12, 2018
0903b18
Rollup merge of #53210 - alexcrichton:deny-rustc-syntax, r=nrc
GuillaumeGomez Aug 12, 2018
f1ae95f
Rollup merge of #53223 - ljedrz:cleanup_data_structures, r=oli-obk
GuillaumeGomez Aug 12, 2018
3e9a1a1
Rollup merge of #53230 - memoryruins:nll_bootstrap_4, r=nikomatsakis
GuillaumeGomez Aug 12, 2018
dfb122e
Rollup merge of #53231 - GuillaumeGomez:let-keyword, r=QuietMisdreavus
GuillaumeGomez Aug 12, 2018
b1b5c66
Rollup merge of #53240 - llogiq:doc-num-swap-reverse, r=joshtriplett
GuillaumeGomez Aug 12, 2018
b0d7f91
Rollup merge of #53253 - GuillaumeGomez:remove-console, r=kennytm
GuillaumeGomez Aug 12, 2018
17d4bd0
Rollup merge of #53264 - Havvy:patch-3, r=GuillaumeGomez
GuillaumeGomez Aug 12, 2018
34956ac
Rollup merge of #53267 - GuillaumeGomez:fix-styles, r=QuietMisdreavus
GuillaumeGomez Aug 12, 2018
f618071
Rollup merge of #53273 - frewsxcv:frewsxcv-ufffd, r=GuillaumeGomez
GuillaumeGomez Aug 12, 2018
3959dca
Rollup merge of #53283 - zackmdavis:and_the_case_of_the_flotation_dev…
GuillaumeGomez Aug 12, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/bootstrap/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ impl Step for Openssl {
"aarch64-linux-android" => "linux-aarch64",
"aarch64-unknown-linux-gnu" => "linux-aarch64",
"aarch64-unknown-linux-musl" => "linux-aarch64",
"aarch64-unknown-netbsd" => "BSD-generic64",
"arm-linux-androideabi" => "android",
"arm-unknown-linux-gnueabi" => "linux-armv4",
"arm-unknown-linux-gnueabihf" => "linux-armv4",
Expand Down
6 changes: 4 additions & 2 deletions src/liballoc/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,11 @@ impl String {
/// between the two. Not all byte slices are valid strings, however: strings
/// are required to be valid UTF-8. During this conversion,
/// `from_utf8_lossy()` will replace any invalid UTF-8 sequences with
/// `U+FFFD REPLACEMENT CHARACTER`, which looks like this: �
/// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD], which looks like this: �
///
/// [`u8`]: ../../std/primitive.u8.html
/// [byteslice]: ../../std/primitive.slice.html
/// [U+FFFD]: ../char/constant.REPLACEMENT_CHARACTER.html
///
/// If you are sure that the byte slice is valid UTF-8, and you don't want
/// to incur the overhead of the conversion, there is an unsafe version
Expand Down Expand Up @@ -621,14 +622,15 @@ impl String {
}

/// Decode a UTF-16 encoded slice `v` into a `String`, replacing
/// invalid data with the replacement character (U+FFFD).
/// invalid data with [the replacement character (`U+FFFD`)][U+FFFD].
///
/// Unlike [`from_utf8_lossy`] which returns a [`Cow<'a, str>`],
/// `from_utf16_lossy` returns a `String` since the UTF-16 to UTF-8
/// conversion requires a memory allocation.
///
/// [`from_utf8_lossy`]: #method.from_utf8_lossy
/// [`Cow<'a, str>`]: ../borrow/enum.Cow.html
/// [U+FFFD]: ../char/constant.REPLACEMENT_CHARACTER.html
///
/// # Examples
///
Expand Down
10 changes: 5 additions & 5 deletions src/libcore/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ impl Layout {

let len_rounded_up = len.wrapping_add(align).wrapping_sub(1)
& !align.wrapping_sub(1);
return len_rounded_up.wrapping_sub(len);
len_rounded_up.wrapping_sub(len)
}

/// Creates a layout describing the record for `n` instances of
Expand Down Expand Up @@ -971,9 +971,9 @@ pub unsafe trait Alloc {
// _l <= layout.size() [guaranteed by usable_size()]
// layout.size() <= new_layout.size() [required by this method]
if new_size <= u {
return Ok(());
Ok(())
} else {
return Err(CannotReallocInPlace);
Err(CannotReallocInPlace)
}
}

Expand Down Expand Up @@ -1026,9 +1026,9 @@ pub unsafe trait Alloc {
// layout.size() <= _u [guaranteed by usable_size()]
// new_layout.size() <= layout.size() [required by this method]
if l <= new_size {
return Ok(());
Ok(())
} else {
return Err(CannotReallocInPlace);
Err(CannotReallocInPlace)
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/libcore/char/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ impl Iterator for EscapeDefault {
None
}
},
EscapeDefaultState::Done => return None,
EscapeDefaultState::Unicode(ref mut i) => return i.nth(n),
EscapeDefaultState::Done => None,
EscapeDefaultState::Unicode(ref mut i) => i.nth(n),
}
}

Expand Down
1 change: 1 addition & 0 deletions src/libcore/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
#![feature(lang_items)]
#![feature(link_llvm_intrinsics)]
#![feature(never_type)]
#![cfg_attr(not(stage0), feature(nll))]
#![feature(exhaustive_patterns)]
#![feature(macro_at_most_once_rep)]
#![feature(no_core)]
Expand Down
Loading