about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2018-04-13Auto merge of #49389 - fanzier:euclidean-division, r=KodrAusbors-0/+101
Implement RFC #2169 (Euclidean modulo). Tracking issue: #49048
2018-04-12Rename alloc::Void to alloc::OpaqueSimon Sapin-4/+4
2018-04-12Use NonNull<Void> instead of *mut u8 in the Alloc traitMike Hommey-4/+3
Fixes #49608
2018-04-12Restore Global.oom() functionalitySimon Sapin-0/+6
… now that #[global_allocator] does not define a symbol for it
2018-04-12Return Result instead of Option in alloc::Layout constructorsSimon Sapin-2/+11
2018-04-12Remove the now-unit-struct AllocErr field inside CollectionAllocErrSimon Sapin-4/+4
2018-04-12Remove the now-unit-struct AllocErr parameter of oom()Simon Sapin-3/+3
2018-04-12Use the GlobalAlloc trait for #[global_allocator]Simon Sapin-99/+54
2018-04-12Make AllocErr a zero-size unit structSimon Sapin-31/+14
2018-04-12Actually deprecate the Heap typeSimon Sapin-9/+10
2018-04-12Actually deprecate heap modules.Simon Sapin-4/+7
2018-04-12Rename `heap` modules in the core, alloc, and std crates to `alloc`Simon Sapin-1/+5
2018-04-12Import the `alloc` crate as `alloc_crate` in stdSimon Sapin-40/+34
… to make the name `alloc` available.
2018-04-12Inline docs for the heap module’s reexportsSimon Sapin-1/+1
2018-04-12Mark the rest of the `unicode` feature flag as perma-unstable.Simon Sapin-1/+0
2018-04-12Reexport from core::unicode::char in core::char rather than vice versaSimon Sapin-1/+1
2018-04-12Deprecate the std_unicode crateSimon Sapin-2/+1
2018-04-12Move Utf8Lossy decoder to libcoreSimon Sapin-4/+4
2018-04-11Prevent EPIPE causing ICEs in rustc and rustdocvarkor-2/+2
2018-04-11Auto merge of #49681 - tmccombs:take-set-limit-stable, r=sfacklerbors-2/+1
Stabilize take_set_limit Fixes #42781
2018-04-11Auto merge of #49715 - Mark-Simulacrum:deny-warnings, r=alexcrichtonbors-4/+0
Move deny(warnings) into rustbuild This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-09Auto merge of #49673 - ollie27:stab, r=sfacklerbors-4/+4
Correct a few stability attributes * `const_indexing` language feature was stabilized in 1.26.0 by #46882 * `Display` impls for `PanicInfo` and `Location` were stabilized in 1.26.0 by #47687 * `TrustedLen` is still unstable so its impls should be as well even though `RangeInclusive` was stabilized by #47813 * `!Send` and `!Sync` for `Args` and `ArgsOs` were stabilized in 1.26.0 by #48005 * `EscapeDefault` has been stable since 1.0.0 so should continue to show that even though it was moved to core in #48735 This could be backported to beta like #49612
2018-04-08Move deny(warnings) into rustbuildMark Simulacrum-4/+0
This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-08fixup! std: Child::kill() returns error if process has already exitedAndreas Tolfsen-1/+1
2018-04-07Auto merge of #49661 - alexcrichton:bump-bootstrap, r=nikomatsakisbors-8/+2
Bump the bootstrap compiler to 1.26.0 beta Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language features!
2018-04-07Rollup merge of #49503 - oli-obk:extern_crate_compiler_builtins, r=alexcrichtonkennytm-0/+1
Inject the `compiler_builtins` crate whenever the `core` crate is injected
2018-04-07Inject the `compiler_builtins` crate whenever the `core` crate is injectedOliver Schneider-0/+1
2018-04-07Rollup merge of #49702 - alexcrichton:inline-methods, r=Mark-Simulacrumkennytm-0/+4
std: Inline some Termination-related methods These were showing up in tests and in binaries but are trivially optimize-able away, so add `#[inline]` attributes so LLVM has an opportunity to optimize them out.
2018-04-05Rollup merge of #49686 - memoryleak47:typo, r=alexcrichtonAlex Crichton-3/+3
typos
2018-04-05std: Inline some Termination-related methodsAlex Crichton-0/+4
These were showing up in tests and in binaries but are trivially optimize-able away, so add `#[inline]` attributes so LLVM has an opportunity to optimize them out.
2018-04-05Correct a few stability attributesOliver Middleton-4/+4
2018-04-05Bump the bootstrap compiler to 1.26.0 betaAlex Crichton-8/+2
Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language features!
2018-04-05typosmemoryleak47-3/+3
2018-04-05Auto merge of #48851 - petrochenkov:genparattr, r=nikomatsakisbors-1/+1
Stabilize attributes on generic parameters Closes https://github.com/rust-lang/rust/issues/48848
2018-04-05Stabilize take_set_limitThayne McCombs-2/+1
Fixes #42781
2018-04-05Stabilize attributes on generic parametersVadim Petrochenkov-1/+1
2018-04-04Replace manual iter exhaust with for_each(drop).Clar Charr-1/+1
2018-04-05Rollup merge of #49594 - mbrubeck:docs, r=steveklabnikkennytm-2/+28
Add some performance guidance to std::fs and std::io docs Adds more documentation about performance to various "read" functions in `fs` and `io`, and to `BufReader`/`BufWriter`, with the goal of helping developers choose the best option for a given task.
2018-04-05Rollup merge of #49637 - tmccombs:parent-id-stabilize, r=sfacklerkennytm-1/+1
Stabilize parent_id() Fixes #46104
2018-04-04Use box syntax instead of Box::new in Mutex::remutex on WindowsMike Hommey-1/+1
The Box::new(mem::uninitialized()) pattern actually actively copies uninitialized bytes from the stack into the box, which is a waste of time. Using the box syntax instead avoids the useless copy.
2018-04-04Rollup merge of #49619 - durka:patch-46, r=steveklabnikkennytm-2/+2
tweak core::fmt docs Remove an outdated (pre-1.0!) claim about passing something or other to a function. Also swap the variable names in the example.
2018-04-04Rollup merge of #49612 - tmccombs:stabilize-getpid, r=kennytmkennytm-1/+1
Fix "since" version for getpid feature. It was stabilized right before the beta branch was cut for 1.26.0. See https://github.com/rust-lang/rust/pull/49523#issuecomment-377996315 This will need to be backported to beta (1.26.0)
2018-04-04Rollup merge of #49599 - rolfvandekrol:feature/no_ru, r=frewsxcvkennytm-1/+1
Fix typo In `libstd/io/buffered.rs` one example was marked as `no_ru` instead of `no_run`. I assume this is a typo.
2018-04-04Auto merge of #48575 - ishitatsuyuki:unix-no-thread, r=alexcrichtonbors-10/+61
rustc_driver: get rid of the extra thread **Do not rollup** We can alter the stack size afterwards on Unix. Having a separate thread causes poor debugging experience when interrupting with signals. I have to get the backtrace of the all thread, as the main thread is waiting to join doing nothing else. This patch allows me to just run `bt` to get the desired backtrace.
2018-04-03Stabilize parent_id()Thayne McCombs-1/+1
Fixes #46104
2018-04-03Add performance notes to BufReader/BufWriter docsMatt Brubeck-0/+12
2018-04-03Cross-reference fs::read functions from io::Read docsMatt Brubeck-0/+10
2018-04-03tweak format_args! docsAlex Burka-2/+2
Swap the variable names in the example.
2018-04-03Remove all unstable placement featuresAidan Hobson Sayers-177/+1
Closes #22181, #27779
2018-04-03Fix importsTatsuyuki Ishi-1/+1