about summary refs log tree commit diff
path: root/src/libstd/env.rs
AgeCommit message (Collapse)AuthorLines
2019-04-17Document `Item` type in `std::env::SplitPaths` iterator.Nathan Kleyn-1/+7
Previously there wasn't any documentation to show what the type of `Item` was inside `std::env::SplitPaths`. Now, in the same format as other examples of docs in `srd` for `Iterator#Item`, we mention the type. This fixes #59543.
2019-03-31libstd: deny(elided_lifetimes_in_paths)Mazdak Farrokhzad-8/+8
2019-03-25SGX target: fix std unit testsJethro Beekman-1/+2
2019-02-28libstd => 2018Taiki Endo-13/+13
2019-02-17Use more impl header lifetime elisionScott McMurray-1/+1
There are two big categories of changes in here - Removing lifetimes from common traits that can essentially never user a lifetime from an input (particularly `Drop` & `Debug`) - Forwarding impls that are only possible because the lifetime doesn't matter (like `impl<R: Read + ?Sized> Read for &mut R`) I omitted things that seemed like they could be more controversial, like the handful of iterators that have a `Item: 'static` despite the iterator having a lifetime or the `PartialEq` implementations where the flipped one cannot elide the lifetime.
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-04cleanup: remove static lifetimes from consts in libstdljedrz-21/+21
2018-07-12make reference to dirs crate clickable in terminalsRalf Jung-1/+1
2018-07-07Deprecate `std::env::home_dir` and fix incorrect documentationSimon Ochsenreither-10/+15
2018-05-14env: remove unwrap in examples in favor of try opJohn-John Tedro-12/+21
2018-04-05Correct a few stability attributesOliver Middleton-4/+4
2018-03-28Remove hidden `foo` functions from doc examples; use `Termination` trait.Corey Farwell-7/+7
Fixes https://github.com/rust-lang/rust/issues/49233.
2018-02-05Unimplement Send/Sync for ::env::{Args,ArgsOs,Vars,VarsOs}panicbit-0/+12
2018-01-11Make tests build on CloudABI.Ed Schouten-2/+9
There are some tests that need to be disabled on CloudABI specifically, due to the fact that the shims cannot be built in combination with unix::ext or windows::ext. Also improve the scoping of some imports to suppress compiler warnings.
2017-12-24Minor rewrite of env::current_exe docs; clarify symlinks.Corey Farwell-8/+11
- Update example in ‘security’ section to use hard links, like the linked securityvulns.com example. - Weaken language on symbolic links – indicate behavior is platform-specific Fixes https://github.com/rust-lang/rust/issues/43617.
2017-11-07Warn about non-portability of glob patternsKornel-0/+4
2017-06-24Move global vars changing tests into run-passStepan Koltsov-81/+1
Should fix race #42795
2017-06-22Auto merge of #42798 - stepancheg:args-debug, r=sfacklerbors-2/+16
Better Debug for Args and ArgsOs Display actual args instead of two dots.
2017-06-21Better Debug for Args and ArgsOsStepan Koltsov-2/+16
Display actual args instead of two dots.
2017-06-20Add a couple doc additional examples for `env::join_paths`.Corey Farwell-0/+29
2017-06-12Rollup merge of #42579 - maccoda:maccoda/env_docs, r=steveklabnikCorey Farwell-9/+11
env docs completion. Should be closing #29351 with the alignment of the iterators to the template.
2017-06-10env docs completion.Dylan Maccora-9/+11
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-20Auto merge of #42111 - ollie27:stab, r=Mark-Simulacrumbors-2/+2
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-2/+2
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-7/+10
2017-05-20Fixed link issue.Dylan Maccora-2/+2
2017-05-18std::env docsDylan Maccora-18/+35
2017-05-18misc doc improvements for std::envTshepang Lekhonkhobe-9/+12
2017-03-05clarify docs for Args and ArgsOsJack O'Connor-0/+8
The args() and args_os() docs include a line about how the first element is usually the program name. Include that line in the struct docs too.
2017-02-18Add missing urls for env functionsGuillaume Gomez-4/+11
2017-02-08Add missing urls on join_pathsGuillaume Gomez-4/+8
2017-02-07Add missing urls for current_dirGuillaume Gomez-2/+5
2017-01-29Fix a few impl stability attributesOliver Middleton-5/+5
The versions show up in rustdoc.
2017-01-27Fix a few links in the docsOliver Middleton-1/+1
2017-01-22libstd: replace all `try!` with `?` in documentation examplesUtkarsh Kukreti-1/+1
See #38644.
2017-01-12Minor improvements to docs in std::env structures/functions.Corey Farwell-8/+12
* Call functions "functions" instead of "methods". * Link structures to their constructor functions * Add other misc. documentation links
2016-12-29libstd: define std::env::consts::ARCH for sparc64Jonathan A. Kollasch-0/+6
2016-12-18Implement `fmt::Debug` for all structures in libstd.Corey Farwell-0/+36
Part of https://github.com/rust-lang/rust/issues/31869. Also turn on the `missing_debug_implementations` lint at the crate level.
2016-12-04std: Forward ExactSizeIterator::is_empty for Args, ArgsOs iteratorsUlrik Sverdrup-0/+2
2016-11-21Add some internal docs links for Args/ArgsOsJohn Downey-5/+13
2016-10-02Move platform-specific arg handling to sys::argsBrian Anderson-2/+3
2016-10-01std: Move platform specific env code into sysBrian Anderson-183/+9
2016-09-30Ignore lots and lots of std tests on emscriptenBrian Anderson-0/+3
2016-09-30Preliminary wasm32 supportBrian Anderson-1/+17
2016-09-25Add support for the Haiku operating system on x86 and x86_64 machinesNiels Sascha Reedijk-0/+11
* Hand rebased from Niels original work on 1.9.0
2016-09-14doc: make that sound betterTshepang Lekhonkhobe-2/+2
2016-09-09Add s390x supportUlrich Weigand-0/+6
This adds support for building the Rust compiler and standard library for s390x-linux, allowing a full cross-bootstrap sequence to complete. This includes: - Makefile/configure changes to allow native s390x builds - Full Rust compiler support for the s390x C ABI (only the non-vector ABI is supported at this point) - Port of the standard library to s390x - Update the liblibc submodule to a version including s390x support - Testsuite fixes to allow clean "make check" on s390x Caveats: - Resets base cpu to "z10" to bring support in sync with the default behaviour of other compilers on the platforms. (Usually, upstream supports all older processors; a distribution build may then chose to require a more recent base version.) (Also, using zEC12 causes failures in the valgrind tests since valgrind doesn't fully support this CPU yet.) - z13 vector ABI is not yet supported. To ensure compatible code generation, the -vector feature is passed to LLVM. Note that this means that even when compiling for z13, no vector instructions will be used. In the future, support for the vector ABI should be added (this will require common code support for different ABIs that need different data_layout strings on the same platform). - Two test cases are (temporarily) ignored on s390x to allow passing the test suite. The underlying issues still need to be fixed: * debuginfo/simd.rs fails because of incorrect debug information. This seems to be a LLVM bug (also seen with C code). * run-pass/union/union-basic.rs simply seems to be incorrect for all big-endian platforms. Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
2016-09-02Auto merge of #36024 - japaric:mips64, r=alexcrichtonbors-0/+6
add mips64-gnu and mips64el-gnu targets With this commit one can build no_core (and probably no_std as well) Rust programs for these targets. It's not yet possible to cross compile std for these targets because rust-lang/libc doesn't know about the mips64 architecture. These targets have been tested by cross compiling the "smallest hello" program (see code below) and then running it under QEMU. ``` rust extern { fn puts(_: *const u8); } fn start(_: isize, _: *const *const u8) -> isize { unsafe { let msg = b"Hello, world!\0"; puts(msg as *const _ as *const u8); } 0 } trait Copy {} trait Sized {} ``` cc #36015 r? @alexcrichton cc @brson The cabi stuff is likely wrong. I just copied cabi_mips source and changed some `4`s to `8`s and `32`s to `64`s. It was enough to get libc's `puts` to work but I'd like someone familiar with this module to check it.
2016-08-27fix cross compilation of stdJorge Aparicio-0/+6