Skip to content

Rollup of 16 pull requests #62178

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

Closed
wants to merge 44 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
a99a7b7
Remove FnBox.
Centril Jun 22, 2019
1c12b1b
call out explicitly that general read needs to be called with an init…
RalfJung Jun 24, 2019
bb26e07
Add debug assertions to write_bytes and copy*
nitnelave Feb 27, 2019
0533f12
Handle null from LLVMRustGetSectionName
nitnelave Mar 27, 2019
8a4573f
format a bit
RalfJung Jun 24, 2019
4159b27
order things more traditionally
RalfJung Jun 24, 2019
86ffeef
Add suggestion for missing `.await` keyword
cofibrant Jun 19, 2019
a68afc5
ignore some codegen tests in debug mode
RalfJung Jun 25, 2019
d3e1bf9
nits
RalfJung Jun 25, 2019
85ea4a1
Update new_debug_unreachable
JohnTitor Jun 25, 2019
b75021b
refactor lexer to use idiomatic borrowing
matklad Jun 25, 2019
0f34d7a
Updated RELEASES.md for 1.36.0
XAMPPRocky Jun 23, 2019
ba12e78
Add more tests for async/await
cramertj Jun 25, 2019
57db25e
cleanup: rename name_from to symbol_from
matklad Jun 25, 2019
390f717
tweak wording
RalfJung Jun 25, 2019
dedcd97
Use f{32,64}::from_bits
Xanewok Jun 25, 2019
12806b7
Fix clippy::redundant_field_names
Xanewok Jun 25, 2019
6c93b47
Fix clippy::cast_losless
Xanewok Jun 26, 2019
33f58ba
Fix clippy::redundant_closure
Xanewok Jun 26, 2019
1af1f62
Fix clippy::print_with_newline
Xanewok Jun 26, 2019
ad62b42
Fix clippy::precedence
Xanewok Jun 26, 2019
5cb841d
Don't ICE on item in `.await` expression
cofibrant Jun 26, 2019
182ce77
remove old fixme
mark-i-m Jun 26, 2019
72ca844
Add regression test for MIR drop generation in async loops
cramertj Jun 26, 2019
7e62050
Update books
ehuss Jun 26, 2019
e053eed
Remove outdated question_mark_macro_sep lint
ia0 Jun 26, 2019
b366f2b
Implement mem::{zeroed,uninitialized} in terms of MaybeUninit.
alex Jun 26, 2019
768d500
save-analysis: use buffered writes
jsgf Jun 27, 2019
3acadd5
Rollup merge of #61767 - JohnTitor:update-smallvec, r=nikomatsakis
Centril Jun 27, 2019
1c8bc9e
Rollup merge of #62043 - Centril:remove-fnbox, r=cramertj
Centril Jun 27, 2019
ceb4805
Rollup merge of #62067 - doctorn:await_diagnostic, r=matthewjasper
Centril Jun 27, 2019
f6131e9
Rollup merge of #62076 - XAMPPRocky:master, r=XAMPPRocky
Centril Jun 27, 2019
2d8883b
Rollup merge of #62102 - RalfJung:read, r=Centril
Centril Jun 27, 2019
e14989b
Rollup merge of #62103 - RalfJung:debug-assert, r=alexcrichton
Centril Jun 27, 2019
fbb035a
Rollup merge of #62106 - cramertj:test-await, r=centril
Centril Jun 27, 2019
4fade7a
Rollup merge of #62124 - matklad:without-with, r=petrochenkov
Centril Jun 27, 2019
0d8c956
Rollup merge of #62131 - Xanewok:clip-some-nits, r=petrochenkov
Centril Jun 27, 2019
417c01b
Rollup merge of #62150 - alex:mem-uninit-refactor, r=RalfJung,oli-obk…
Centril Jun 27, 2019
b553e7d
Rollup merge of #62152 - doctorn:async_let_ice, r=cramertj
Centril Jun 27, 2019
72b56cf
Rollup merge of #62154 - mark-i-m:old-fixme, r=Centril
Centril Jun 27, 2019
dd7dca9
Rollup merge of #62155 - cramertj:61872, r=centril
Centril Jun 27, 2019
30d9bfe
Rollup merge of #62156 - ehuss:update-books, r=ehuss
Centril Jun 27, 2019
a94c5dd
Rollup merge of #62160 - ia0:question_mark_macro_sep, r=petrochenkov
Centril Jun 27, 2019
a76ff49
Rollup merge of #62164 - jsgf:buffer-save-analysis, r=Xanewok
Centril Jun 27, 2019
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
Prev Previous commit
Next Next commit
nits
  • Loading branch information
RalfJung committed Jun 25, 2019
commit d3e1bf96dacab3e5c7c86321eb79fc916b28db87
2 changes: 1 addition & 1 deletion src/libcore/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ extern "rust-intrinsic" {
/// Checks whether `ptr` is properly aligned with respect to
/// `align_of::<T>()`.
pub(crate) fn is_aligned_and_not_null<T>(ptr: *const T) -> bool {
return !ptr.is_null() && ptr as usize % mem::align_of::<T>() == 0;
!ptr.is_null() && ptr as usize % mem::align_of::<T>() == 0
}

/// Checks whether the regions of memory starting at `src` and `dst` of size
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_codegen_llvm/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fn search_meta_section<'a>(of: &'a ObjectFile,
let mut name_buf = None;
let name_len = llvm::LLVMRustGetSectionName(si.llsi, &mut name_buf);
let name = name_buf.map_or(
String::new(), // we got a NULL ptr, ignore `name_len`
String::new(), // We got a NULL ptr, ignore `name_len`.
|buf| String::from_utf8(
slice::from_raw_parts(buf.as_ptr() as *const u8,
name_len as usize)
Expand Down