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 19 pull requests #57005

Closed
wants to merge 50 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
1bdd6ca
retrieve ty info from place_ty
csmoe Dec 15, 2018
7f9883d
Add unstable VecDeque::rotate_{left|right}
scottmcm Dec 15, 2018
9ca2902
update test
csmoe Dec 15, 2018
c4fa1d2
stop treating trait objects from #[fundamental] traits as fundamental
arielb1 Dec 15, 2018
0815531
Add a note about why the unsafe is sound
scottmcm Dec 16, 2018
bf4a984
Reduce search-index.js size
GuillaumeGomez Dec 16, 2018
fba23d0
Disable field reordering for repr(int).
emilio Dec 16, 2018
d84bdba
Add test to check order of repr(int) enum fields
petertodd Dec 8, 2018
bbce189
rustc: Update Clang used to build LLVM on LInux
alexcrichton Dec 16, 2018
a2b6401
Issue 56905
blitzerr Dec 17, 2018
37c3561
describe index with accurate _
csmoe Dec 17, 2018
b31a1f7
Fix a recently introduces regression
oli-obk Dec 17, 2018
7e2e489
Also test projections
oli-obk Dec 17, 2018
3e7a4ca
Remove a wrong multiplier on relocation offset computation
oli-obk Dec 17, 2018
e7e17f9
static eval: Do not ICE on layout size overflow
dlrobertson Dec 17, 2018
6130fc8
Add --progress to git submodule commands
Dec 17, 2018
50eb5f6
Explain the math
oli-obk Dec 18, 2018
170f068
Don't render const keyword on stable
GuillaumeGomez Oct 24, 2018
00bd306
Extend documentation for mem uninit to discuss partial allocation of …
Firstyear Dec 19, 2018
0829d0c
Updates based on comment
Firstyear Dec 19, 2018
d751954
Creating the vector using with_capacity to avoid re-allocation later …
blitzerr Dec 19, 2018
cbe9abb
Add more VecDeque::rotate_{left|right} tests
scottmcm Dec 19, 2018
a6943d9
Set constness correctly
GuillaumeGomez Dec 18, 2018
b2d8040
Fix tidy error
Firstyear Dec 19, 2018
202904b
make basic CTFE tracing available on release builds
RalfJung Dec 19, 2018
885cf2a
Adding unwinding support for x86_64_fortanix_unknown_sgx target.
Dec 14, 2018
818ed69
dropck: simplify common patterns
ljedrz Dec 19, 2018
ae3f6b0
dropck: remove unnecessary call to cloned()
ljedrz Dec 19, 2018
7eb67c2
test: Ignore ui/target-feature-gate on powerpc and powerpc64(le)
glaubitz Dec 19, 2018
a153d48
test: Ignore ui/target-feature-gate on sparc and sparc64
glaubitz Dec 19, 2018
036ce5c
Fix compiletest `trim` deprecation warnings
phansch Dec 19, 2018
7b70b0b
Rollup merge of #56842 - scottmcm:vecdeque-rotate, r=alexcrichton
pietroalbini Dec 20, 2018
063e4a2
Rollup merge of #56843 - csmoe:non-copy, r=davidtwco
pietroalbini Dec 20, 2018
80bc55b
Rollup merge of #56845 - GuillaumeGomez:const-docs, r=oli-obk
pietroalbini Dec 20, 2018
234c340
Rollup merge of #56862 - arielb1:fundamentally-clean, r=nikomatsakis
pietroalbini Dec 20, 2018
7c7e21a
Rollup merge of #56869 - GuillaumeGomez:index-size-reduction, r=Quiet…
pietroalbini Dec 20, 2018
e12e472
Rollup merge of #56887 - emilio:enum-field-reordering, r=eddyb
pietroalbini Dec 20, 2018
e801ffa
Rollup merge of #56892 - alexcrichton:new-llvm, r=michaelwoerister
pietroalbini Dec 20, 2018
f46a757
Rollup merge of #56906 - blitzerr:master, r=nikomatsakis
pietroalbini Dec 20, 2018
7b61ef3
Rollup merge of #56909 - dlrobertson:fix_56762, r=estebank
pietroalbini Dec 20, 2018
7429367
Rollup merge of #56914 - glaubitz:ignore-tests, r=alexcrichton
pietroalbini Dec 20, 2018
5ecc80a
Rollup merge of #56916 - oli-obk:static_mut_beta_regression, r=davidtwco
pietroalbini Dec 20, 2018
d96be3d
Rollup merge of #56919 - oli-obk:null_ref_array_tuple, r=RalfJung
pietroalbini Dec 20, 2018
5a118d4
Rollup merge of #56933 - clarcharr:xpy_progress, r=Mark-Simulacrum
pietroalbini Dec 20, 2018
3fa6672
Rollup merge of #56954 - hug-dev:armv8m-main-ci, r=alexcrichton
pietroalbini Dec 20, 2018
bfb4cce
Rollup merge of #56970 - Firstyear:mem_uninit_doc_ptr_drop, r=Manishe…
pietroalbini Dec 20, 2018
3b15bd2
Rollup merge of #56973 - RalfJung:miri-trace, r=oli-obk
pietroalbini Dec 20, 2018
04e51eb
Rollup merge of #56979 - VardhanThigle:Vardhan/rust-sgx-unwind-suppor…
pietroalbini Dec 20, 2018
b2207e2
Rollup merge of #56984 - ljedrz:dropck_outlives_tweaks, r=oli-obk
pietroalbini Dec 20, 2018
0880d95
Rollup merge of #56989 - phansch:fix_compiletest_trim_deprecations, r…
pietroalbini Dec 20, 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
Prev Previous commit
Next Next commit
Updates based on comment
  • Loading branch information
Firstyear committed Dec 19, 2018
commit 0829d0c0e480a3729dcfe4f28f5969277dc8f646
12 changes: 4 additions & 8 deletions src/libcore/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,9 @@ pub unsafe fn zeroed<T>() -> T {
/// includes a `panic` occurring and unwinding the stack suddenly.
///
/// If you partially initialize an array, you may need to use
/// [`ptr::drop_in_place`][drop_in_place] to remove the set you have created
/// followed by [`mem::forget`][mem_forget] to prevent drop running on the
/// array. If a partially allocated array is dropped this may lead to
/// [`ptr::drop_in_place`][drop_in_place] to remove the elements you have fully
/// initialized followed by [`mem::forget`][mem_forget] to prevent drop running
/// on the array. If a partially allocated array is dropped this will lead to
/// undefined behaviour.
///
/// # Examples
Expand Down Expand Up @@ -589,7 +589,7 @@ pub unsafe fn zeroed<T>() -> T {
/// println!("{:?}", &data[0]);
/// ```
///
/// This example shows how to handle partially allocated arrays, which could
/// This example shows how to handle partially initialized arrays, which could
/// be found in low-level datastructures.
///
/// ```
Expand Down Expand Up @@ -618,10 +618,6 @@ pub unsafe fn zeroed<T>() -> T {
/// mem::forget(data);
/// ```
///
/// An alternate strategy is to use [`mem::zeroed`][mem_zeroed] with ptr
/// comparison. This is a very error prone strategy and may only be relevant
/// for FFI.
///
/// [`Vec`]: ../../std/vec/struct.Vec.html
/// [`vec!`]: ../../std/macro.vec.html
/// [`Clone`]: ../../std/clone/trait.Clone.html
Expand Down