about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2019-08-20Merge branch 'master' into redox_builderArtyom Pavlov-2/+2
2019-08-20Refined implementations of `asinh` and `acosh`Phosphorus15-24/+29
2019-08-20Used `copysign` to avoid unnecessary branches.Phosphorus15-18/+2
2019-08-20Stabilize 'async_await'.Mazdak Farrokhzad-2/+0
2019-08-19Consolidate sigemptyset workaroundsJoe Richey-40/+27
In sys/unix/process, we work around the sigemptyset linking issues on android in two different ways. This change consolidates these workarounds, and avoids duplicating bindings from `libc`.
2019-08-19Rollup merge of #63704 - Wind-River:master, r=CentrilMazdak Farrokhzad-1/+1
Fixed: error: unnecessary trailing semicolon
2019-08-19remove any from cfgsArtyom Pavlov-2/+2
2019-08-19cfg fix 2Artyom Pavlov-1/+2
2019-08-19fix cfgArtyom Pavlov-11/+9
2019-08-19std: Update `backtrace` crate dependencyAlex Crichton-1/+1
This commit updates the `backtrace` crate from 0.3.34 to 0.3.35. The [included set of changes][changes] for this update mostly includes some gimli-related improvements (not relevant for the standard library) but critically includes a fix for rust-lang/backtrace-rs#230. The standard library will not aqcuire a session-local lock whenever a backtrace is generated on Windows to allow external synchronization with the `backtrace` crate itself, allowing `backtrace` to be safely used while other threads may be panicking. [changes]: https://github.com/rust-lang/backtrace-rs/compare/0.3.34...0.3.35
2019-08-19fixnewpavlov-3/+3
2019-08-19use constnewpavlov-2/+4
2019-08-19typo fixnewpavlov-1/+1
2019-08-19use non-zero clock idnewpavlov-2/+2
2019-08-19remove libc importnewpavlov-1/+0
2019-08-19use wasi::get_environnewpavlov-30/+17
2019-08-19use wasi::get_argsnewpavlov-37/+5
2019-08-19remove to_stringnewpavlov-1/+1
2019-08-19replace libc::nanosleep with wasi::poll_oneoffnewpavlov-14/+23
2019-08-19test cases for both `f32` and `f64` on asinh(-0.0)Phosphorus15-0/+2
2019-08-19Added negative cases for `asinh` according to IEEE-754.Phosphorus15-8/+22
2019-08-19return 0 from errno functionnewpavlov-1/+1
2019-08-19use wasi cratenewpavlov-376/+249
2019-08-17Fixed: error: unnecessary trailing semicolonSalim Nasser-1/+1
2019-08-16Rollup merge of #63613 - petrochenkov:stdhyg, r=alexcrichtonMazdak Farrokhzad-13/+10
Hygienize use of built-in macros in the standard library Same as https://github.com/rust-lang/rust/pull/61629, but for built-in macros. Closes https://github.com/rust-lang/rust/issues/48781 r? @alexcrichton
2019-08-16Add the Layout of the failed allocation to TryReserveError::AllocErrorSimon Sapin-2/+6
… and add a separately-unstable field to force non-exhaustive matching (`#[non_exhaustive]` is no implemented yet on enum variants) so that we have the option to later expose the allocator’s error value. CC https://github.com/rust-lang/wg-allocators/issues/23
2019-08-16Update hashbrown to 0.5.0Simon Sapin-2/+2
2019-08-16Rename CollectionAllocError to TryReserveErrorSimon Sapin-9/+9
2019-08-15Remove `__rust_unstable_column`Vadim Petrochenkov-4/+1
2019-08-15Hygienize use of built-in macros in the standard libraryVadim Petrochenkov-9/+9
2019-08-15Rollup merge of #63546 - lzutao:clouldabi-maybeuninit, r=RalfJungMazdak Farrokhzad-14/+18
Remove uses of `mem::uninitialized()` from cloudabi This PR removes uses of `mem::uninitialized` from `cloudabi` module, excluding the layout test in `src/libstd/sys/cloudabi/abi/cloudabi.rs`. r? @RalfJung cc @EdSchouten cc #62397
2019-08-15Rollup merge of #63155 - mfkl:uwp-msvc, r=alexcrichtonMazdak Farrokhzad-2/+2
Add UWP MSVC targets Hi, - The README URI change is the correct one for VS2019 community edition, which I suspect most people would use. Doesn't _need_ to be merged though. - This https://github.com/rust-lang/rust/commit/5e6619edd1a3b5c3f85438166d4d32af49f800fd fixes the UWP build (msvc or not, doesn't matter). I suspect it broke with recent changes unnoticed because no CI. - Store lib location is found through the VCToolsInstallDir env variable. The end of the path is currently for the VS2019 store lib locations only. - I could not test the aarch64_uwp_windows_msvc target because the rust build script does not currently support arm64 msvc AFAIU.
2019-08-15Fix gramitcal error in read_dir exampleAli Raheem-1/+1
2019-08-15Remove uses of `mem::uninitialized()` from cloudabiLzu Tao-14/+18
2019-08-14Handle cfg(bootstrap) throughoutMark Rousskov-55/+19
2019-08-12Rollup merge of #63480 - OptimisticPeach:patch-1, r=CentrilMazdak Farrokhzad-1/+1
Fixes #63477 Adds a closing parenthesis.
2019-08-12Rollup merge of #63461 - tommilligan:doc-var-panic, r=joshtriplettMazdak Farrokhzad-0/+12
docs: add stdlib env::var(_os) panic Closes #63456
2019-08-12Fixes #63477OptimisticPeach-1/+1
Adds a closing parenthesis.
2019-08-11Rollup merge of #61969 - MikailBag:master, r=CentrilMark Rousskov-0/+30
Add #[repr(transparent)] for several types In some functions, types mentioned in this PR are transmuted into their inner value. Example for `PathBuf`: https://github.com/rust-lang/rust/blob/master/src/libstd/path.rs#L1132. This PR adds `#[repr(transparent)]` to those types, so their correct behavior doesn't depend on compiler details. (As far as I understand, currently that line, converting `PathBuf` to `Vec<u8>`, is UB).
2019-08-11docs: add stdlib env::var(_os) panicTom Milligan-0/+12
2019-08-10Rollup merge of #63350 - iluuu1994:use-associated-type-bounds, r=CentrilMazdak Farrokhzad-2/+11
Use associated_type_bounds where applicable - closes #61738
2019-08-10Give built-in macros stable addresses in the standard libraryVadim Petrochenkov-21/+30
2019-08-09Add FIXME-s that some types should be transparentMikail Bagishov-0/+30
2019-08-09Add missing #![feature(associated_type_bounds)]Ilija Tovilo-0/+1
2019-08-09Postpone deprecating try! until 1.39.0Lzu Tao-1/+2
2019-08-09Deprecate `try!` macroBO41-1/+4
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Co-Authored-By: Oliver Middleton <olliemail27@gmail.com>
2019-08-08Use associated_type_bounds where applicable - closes #61738Ilija Tovilo-2/+10
2019-08-08Remove Iteration order headingAli Raheem-4/+0
2019-08-08Rollup merge of #63332 - marmistrz:truncate, r=alexcrichtonMazdak Farrokhzad-3/+11
Add an overflow check in truncate implementation for Unix. Closes #63326. cc @alexcrichton
2019-08-08Move the TryInto import into the inner scopeMarcin Mielniczuk-1/+1