about summary refs log tree commit diff
path: root/src/libstd/sys_common/util.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-28/+0
2020-05-17abort_internal is safeRalf Jung-3/+1
2019-11-29Format libstd with rustfmtDavid Tolnay-3/+7
This commit applies rustfmt with rust-lang/rust's default settings to files in src/libstd *that are not involved in any currently open PR* to minimize merge conflicts. THe list of files involved in open PRs was determined by querying GitHub's GraphQL API with this script: https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8 With the list of files from the script in outstanding_files, the relevant commands were: $ find src/libstd -name '*.rs' \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ rg libstd outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of libstd. To confirm no funny business: $ git checkout $THIS_COMMIT^ $ git show --pretty= --name-only $THIS_COMMIT \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ git diff $THIS_COMMIT # there should be no difference
2019-03-31libstd: deny(elided_lifetimes_in_paths)Mazdak Farrokhzad-2/+2
2019-02-28Fix some imports and pathsTaiki Endo-1/+1
2019-02-28libstd => 2018Taiki Endo-5/+5
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-06Refactor stderr_prints_nothing into a more modular functionJethro Beekman-4/+3
2018-04-13std: Minimize size of panicking on wasmAlex Crichton-1/+4
This commit applies a few code size optimizations for the wasm target to the standard library, namely around panics. We notably know that in most configurations it's impossible for us to print anything in wasm32-unknown-unknown so we can skip larger portions of panicking that are otherwise simply informative. This allows us to get quite a nice size reduction. Finally we can also tweak where the allocation happens for the `Box<Any>` that we panic with. By only allocating once unwinding starts we can reduce the size of a panicking wasm module from 44k to 350 bytes.
2017-09-13Move default stack min size to thread implementationsTobias Schaffner-21/+0
The default min stack size value is smaller on l4re and therefore this value has to be different depending on the platform.
2017-09-08Move the stack size value for L4Re to the min_stack_size functionSebastian Humenda-0/+5
2016-11-01std: Move sys_common to libstd/sys_commonBrian Anderson-0/+50
Make the directory structure reflect the module structure. I've always found the existing structure confusing.