about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2017-06-05[fuchsia] Track change of mx_job_defaultRaph Levien-5/+1
The implementation of mx_job_default changed from a macro which accessed the __magenta_job_default global variable to a proper function call. This patch tracks that change.
2017-06-04Auto merge of #42426 - arthurprs:io_error, r=sfacklerbors-0/+1
Inline io::Error creation from ErrorKind Faster and smaller code for mio and tokio (PRs on those to follow)
2017-06-04inline io::Error creation from ErrorKindarthurprs-0/+1
2017-06-02Switch to repr(C) for syscall structsJeremy Soller-3/+3
2017-06-02Rollup merge of #42372 - frewsxcv:frewsxcv/improve-receiver-docs, ↵Mark Simulacrum-14/+21
r=QuietMisdreavus Rewrite a couple `Receiver` doc examples. None
2017-06-02Rollup merge of #42225 - brson:vs2017, r=alexcrichtonMark Simulacrum-1/+1
Support VS 2017 Fixes #38584 This replaces all the MSVC linker logic with that from the 'gcc' crate. The code looks the same, but there could be regressions. I've only tested this with x86_64. r? @alexcrichton cc @vadimcn @retep998
2017-06-02Rollup merge of #41981 - gamazeps:thread-detach, r=frewsxcvMark Simulacrum-3/+28
[Doc] Expands `detach` documentation in `thread::JoinHande`. Part of #29378 . - Adds an example of a thread detaching. - Expands what `detaching` means. r? @steveklabnik
2017-06-02Expands `detach` documentation in `thread::JoinHande`.Felix Raimundo-3/+28
Part of #29378 . - Adds an example of a thread detaching. - Expands what `detaching` means.
2017-06-02Rewrite `Receiver::try_iter` doc example to show resulting values.Corey Farwell-8/+13
2017-06-02Rewrite `Receiver::iter` doc example to show resulting values.Corey Farwell-6/+8
2017-06-01Support VS 2017Brian Anderson-1/+1
Fixes #38584
2017-06-01Auto merge of #42281 - eddyb:well-adjusted, r=nikomatsakisbors-10/+10
Decompose Adjustment into smaller steps and remove the method map. The method map held method callee information for: * actual method calls (`x.f(...)`) * overloaded unary, binary, indexing and call operators * *every overloaded deref adjustment* (many can exist for each expression) That last one was a historical ~~accident~~ hack, and part of the motivation for this PR, along with: * a desire to compose adjustments more freely * containing the autoderef logic better to avoid mutation within an inference snapshot * not creating `TyFnDef` types which are incompatible with the original one * i.e. we used to take a`TyFnDef`'s `for<'a> &'a T -> &'a U` signature and instantiate `'a` using a region inference variable, *then* package the resulting `&'b T -> &'b U` signature in another `TyFnDef`, while keeping *the same* `DefId` and `Substs` * to fix #3548 by explicitly writing autorefs for the RHS of comparison operators Individual commits tell their own story, of "atomic" changes avoiding breaking semantics. Future work based on this PR could include: * removing the signature from `TyFnDef`, now that it's always "canonical" * some questions of variance remain, as subtyping *still* treats the signature differently * moving part of the typeck logic for methods, autoderef and coercion into `rustc::traits` * allowing LUB coercions (joining multiple expressions) to "stack up" many adjustments * transitive coercions (e.g. reify or unsize after multiple steps of autoderef) r? @nikomatsakis
2017-06-01tests: fix fallout from empowering unused_allocation in comparisons.Eduard-Mihai Burtescu-10/+10
2017-05-31Rewrite doc examples for `Receiver::recv_timeout`.Corey Farwell-4/+33
2017-05-26doc rewordingking6cong-1/+1
2017-05-24Rollup merge of #42198 - GuillaumeGomez:os-str-doc, r=QuietMisdreavusMark Simulacrum-3/+9
Add missing urls for OsStr docs r? @rust-lang/docs
2017-05-24Rollup merge of #42149 - dvyukov:license, r=brsonMark Simulacrum-54/+20
libstd/sync/mpsc: relicense under rust license These files are licensed under a different license than the rest of the codebase. This causes potential issues and inconveniences. Relicense these files under the standard license. I hold original copyright on that code. Fixes #36556
2017-05-24Rollup merge of #42142 - ids1024:redox, r=aturonMark Simulacrum-0/+5
Implement requires_synchronized_create() for Redox This was breaking the libstd build for Redox.
2017-05-24Rollup merge of #42141 - ids1024:nobacktrace, r=aturonMark Simulacrum-0/+8
Fix building std without backtrace feature, which was broken in ca8b754 Fixes #42139
2017-05-24Rollup merge of #41980 - gamazeps:thread-send, r=steveklabnikMark Simulacrum-0/+22
[Doc] Add `'static` and `Send` constraints explanations to `thread::spawn` Part of #29378. Explains why the constraints on the closure and its return value are `'static` and `Send`. Allows to tick of `thread::spawn` from the list of things to document in the `thread` module. r? @steveklabnik
2017-05-24Add missing urls for OsStr docsGuillaume Gomez-3/+9
2017-05-22Add missing links for CStr and CStringGuillaume Gomez-30/+74
2017-05-22libstd/sync/mpsc: relicense under rust licenseDmitry Vyukov-54/+20
These files are licensed under a different license than the rest of the codebase. This causes potential issues and inconveniences. Relicense these files under the standard license. I hold original copyright on that code. Fixes #36556
2017-05-21Auto merge of #41904 - sfackler:1.18-stabilization, r=alexcrichtonbors-43/+26
Stabilize library features for 1.18.0 Closes #38863 Closes #38980 Closes #38903 Closes #36648 r? @alexcrichton @rust-lang/libs
2017-05-21Implement requires_synchronized_create() for RedoxIan Douglas Scott-0/+5
This was breaking the libstd build for Redox.
2017-05-21Fix building without backtrace feature, which was broken in ca8b754Ian Douglas Scott-0/+8
Fixes #42139
2017-05-20Stabilize library features for 1.18.0Steven Fackler-43/+26
Closes #38863 Closes #38980 Closes #38903 Closes #36648
2017-05-20Rollup merge of #42127 - clarcharr:lifetimes, r=Mark-SimulacrumMark Simulacrum-2/+2
Remove unused lifetimes. This was a typo that made it onto master. Noted by @dtolnay in #42127. Also note #41960 which suggests warning these.
2017-05-20Rollup merge of #42091 - maccoda:maccoda/env_docs, r=frewsxcvMark Simulacrum-16/+33
Improving std::env docs Addresses #29351. Hopefully this addresses the following points: > - iterators should use the standard iterator boilerplate like https://doc.rust-lang.org/std/iter/struct.Map.html, this applies to all structs except for JoinPathsError > - JoinPathsError should properly link the function it comes from and use language similar to https://doc.rust-lang.org/std/io/struct.Error.html > - same wording issues with VarError > - functions need to ensure linkage to things they refer to in their descriptions > - Explain the difference between `os` and non-`os` structs and methods
2017-05-20migrate everything to using mem::needs_dropAlexis Beingessner-8/+9
2017-05-20Remove unused lifetimes.Clar Charr-2/+2
2017-05-20Auto merge of #42111 - ollie27:stab, r=Mark-Simulacrumbors-32/+32
Correct some stability versions These were found by running tidy on stable versions of rust and finding features stabilised with the wrong version numbers.
2017-05-20Correct some stability versionsOliver Middleton-32/+32
These were found by running tidy on stable versions of rust and finding features stabilised with the wrong version numbers.
2017-05-20Merge branch 'master' into maccoda/env_docsDylan Maccora-92/+418
2017-05-20Fixed link issue.Dylan Maccora-2/+2
2017-05-19Rollup merge of #42079 - seeekr:patch-1, r=steveklabnikMark Simulacrum-1/+1
fix typo in libstd/sync/mpsc/mod.rs docs
2017-05-19Rollup merge of #42070 - tshepang:env-misc, r=BurntSushiMark Simulacrum-9/+12
misc doc improvements for std::env
2017-05-19Rollup merge of #42056 - sylvestre:master, r=alexcrichtonMark Simulacrum-1/+6
Improve the error management when /proc is not mounted This PR does two things: * Triggers an error on GNU/Linux & Android when /proc/self/exe doesn't exist * Handle the error properly
2017-05-19Rollup merge of #42024 - citizen428:docs/update-exitstatus, r=steveklabnikMark Simulacrum-0/+23
Add documentation for `ExitStatus` As requested in #29370. r? @steveklabnik
2017-05-19Rollup merge of #41870 - excaliburHisSheath:iss29367-windows-docs, r=frewsxcvMark Simulacrum-57/+287
Improve docs in os::windows::ffi and os::windows::fs Part of #29367 This PR makes changes to the documentation in `os::windows::ffi` and `os::windows::fs` with the goal of fleshing them out and bringing them in line with Rust's quality standards. r? @steveklabnik
2017-05-19Fix doc test failure for OpenOptionsExtDavid LeGare-1/+1
2017-05-18Normalize docs in windows::ffi and windows::fsDavid LeGare-57/+64
- Remove `()` parens when referencing functions in docs. - Change some examples to be no_run instead of ignore. - Normalize style in examples for `OpenOptionsExt`. - Fix typo in windows mod docs.
2017-05-18Add documentation for `ExitStatus`Michael Kohl-0/+23
As requested in #29370.
2017-05-18std::env docsDylan Maccora-18/+35
2017-05-18fix typo in libstd/sync/mpsc/mod.rs docsDenis Andrejew-1/+1
2017-05-18misc doc improvements for std::envTshepang Lekhonkhobe-9/+12
2017-05-17Improve the error management when /proc is not mountedSylvestre Ledru-1/+6
This PR does two things: * Triggers an error on GNU/Linux & Android when /proc/self/exe doesn't exist * Handle the error properly
2017-05-16Rollup merge of #41995 - gamazeps:thread-localkey, r=frewsxcvMark Simulacrum-15/+30
[Doc] Add links to the `thread::LocalKey` doc. Part of #29378 . I do not know exactly what should be done for the `cleanup` part, if you have any idea I'll gladly do it. r? @rust-lang/docs
2017-05-16Rollup merge of #41994 - gamazeps:thread-builder, r=GuillaumeGomezMark Simulacrum-11/+38
[Doc] Implrove `thread::Builder`'s doc. Part of #29378 . - Explains *why* we would use the builder instead ofthe free function. - Changes the parent-child explanation for a spawned-caller in `thread::Builder::spawn` - Adds a link to `io::Result` in `thread::Builder` - Corrects the return type doc in `thread::Builder::spawn` r? @rust-lang/docs
2017-05-15Add links to the `thread::LocalKey` doc.Felix Raimundo-15/+30
Part of #29378 .