about summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2018-08-12Rollup merge of #53273 - frewsxcv:frewsxcv-ufffd, r=GuillaumeGomezGuillaume Gomez-1/+4
Add links to std::char::REPLACEMENT_CHARACTER from docs. There are a few places where we mention the replacement character in the docs, and it could be helpful for users to utilize the constant which is available in the standard library, so let’s link to it!
2018-08-12Rollup merge of #53240 - llogiq:doc-num-swap-reverse, r=joshtriplettGuillaume Gomez-113/+112
Add individual documentation for <integer>`.swap_bytes`/.`reverse_bits`
2018-08-12Rollup merge of #53230 - memoryruins:nll_bootstrap_4, r=nikomatsakisGuillaume Gomez-0/+1
[nll] enable feature(nll) on various crates for bootstrap: part 4 #53172 r? @nikomatsakis
2018-08-12Rollup merge of #53059 - ljedrz:unneeded_returns, r=kennytmGuillaume Gomez-21/+21
Remove explicit returns where unnecessary
2018-08-11Add links to std::char::REPLACEMENT_CHARACTER from docs.Corey Farwell-1/+4
There are a few places where we mention the replacement character in the docs, and it could be helpful for users to utilize the constant which is available in the standard library, so let’s link to it!
2018-08-10Don't accept none str literals for the format string in writelnOliver Middleton-5/+3
2018-08-10Also add a `From` implementation for `&mut Option<T>` -> `Option<&mut T>'Georg Semmler-0/+7
2018-08-10Add individual documentation for <integer>`.swap_bytes`/.`reverse_bits`Andre Bogus-113/+112
2018-08-10Rollup merge of #53207 - llogiq:num-rotate-docs, r=QuietMisdreavuskennytm-113/+115
Add individual docs for rotate_{left, right}
2018-08-10Rollup merge of #53082 - felixrabe:fix-doc-link-again, r=GuillaumeGomezkennytm-1/+1
Fix doc link (again) Similar to #52404. The link for comparison: - https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-sized (broken) - https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, stable 2nd ed) - https://doc.rust-lang.org/nightly/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, nightly 2nd ed) - https://doc.rust-lang.org/nightly/book/2018-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, nightly 2018 ed) This commit is the result of (first) searching via ripgrep (0.8.1 -SIMD -AVX): rg -l dynamically-sized-types-and-sized and then replacing all relevant occurrences via: find src/{libcore,test/ui} -type f -print0 | xargs -0 sed -i.bak \ s/dynamically-sized-types-and-sized/dynamically-sized-types-and-the-sized-trait/g find src/{libcore,test/ui} -type f -name '*.bak' -print0 | xargs -0 rm (Note: Tested on on macOS 10.13 (BSD). `sed -i.bak` should work on Linux (GNU sed) as well, but not tested.)
2018-08-10Rollup merge of #53217 - strake:inline, r=nagisakennytm-0/+10
inline some short functions I found these were outline in binaries i link. I think they ought to be inline, considering their size.
2018-08-10Rollup merge of #53106 - RalfJung:ordering, r=stjepangkennytm-74/+327
atomic ordering docs Discussion in https://github.com/rust-lang/rfcs/pull/2503 revealed that this could be improved. I hope this helps.
2018-08-09Add individual docs for rotate_{left, right}Andre Bogus-113/+115
2018-08-09[nll] libcore: enable feature(nll) for bootstrapmemoryruins-0/+1
2018-08-09Add stability attributeGeorg Semmler-0/+1
2018-08-09repr(transparent)Ralf Jung-0/+1
2018-08-09inline some short functionsM Farkas-Dyck-0/+10
2018-08-09Add a implementation of `From` for converting `&'a Option<T>` intoGeorg Semmler-0/+6
`Option<&'a T>`
2018-08-07remove general pinning information from Unpin traitNiv Kaminer-88/+9
2018-08-07Auto merge of #51990 - oli-obk:unstable_union, r=nikomatsakisbors-0/+1
Place unions, pointer casts and pointer derefs behind extra feature gates To ensure we don't stabilize these things together with const fn stabilization (or any other stabilization) This PR moves union field accesses inside `const fn` behind a feature gate. It was possible without a feature gate before, but since `const fn` was behind a feature gate we can do this change. While "dereferencing raw pointers" and "casting raw pointers to usize" were hard errors before this PR, one could work around them by abusing unions: ```rust // deref union Foo<T> { x: &'static T, y: *const T, } const FOO: u32 = unsafe { *Foo { y: 42 as *const T }.x }; // as usize cast union Bar<T> { x: usize, y: *const T, } const BAR: usize = unsafe { Bar { y: &1u8 }.x }; ``` r? @eddyb cc @nikomatsakis
2018-08-07Place unions, pointer casts and pointer derefs behind extra feature gatesOliver Schneider-0/+1
2018-08-07document mode possibilities for all RMW operationsRalf Jung-29/+226
2018-08-07list possible orderings for load and storeRalf Jung-26/+43
2018-08-07forgot to add comment for some atomic typesRalf Jung-2/+4
2018-08-07fix link label; use more httpsRalf Jung-14/+14
2018-08-07Rollup merge of #53068 - MajorBreakfast:spawn, r=cramertjkennytm-32/+33
Rename Executor trait to Spawn Renames the `Executor` trait to `Spawn` and the method on `Context` to `spawner`. Note: Best only merge this after we've the alpha 3 announcement post ready. r? @cramertj
2018-08-07Rollup merge of #53052 - redroc:master, r=QuietMisdreavuskennytm-33/+0
fixed broken links to char fixes https://github.com/rust-lang/rust/issues/32129
2018-08-07fix style issues in doc commentNiv Kaminer-12/+14
2018-08-06unconfuse @eddybRalf Jung-1/+2
2018-08-06remove unnecessary CoerceUnsized implRalf Jung-3/+0
2018-08-06fix link to PinBoxNiv Kaminer-1/+1
2018-08-06Rename Executor trait to SpawnJosef Reinhard Brandl-32/+33
2018-08-06atomic ordering docsRalf Jung-11/+48
2018-08-06correct explenation on the usage of NonNullNiv Kaminer-1/+1
2018-08-06expand the documentation on the `Unpin` traitNiv Kaminer-5/+89
provides an overview of the Pin API which the trait is for, and show how it can be used in making self referencial structs part of #49150
2018-08-05Make features stable and clarify examplesvarkor-22/+8
2018-08-05Fix 2018 edition testsvarkor-1/+0
2018-08-05Fix stage 2 testsvarkor-1/+0
2018-08-05Correct invalid feature attributesvarkor-45/+5
2018-08-05Remove unnecessary or invalid feature attributesvarkor-7/+0
2018-08-05Fix doc link (again)Felix Rabe-1/+1
Similar to #52404. The link for comparison: - https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-sized (broken) - https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, stable 2nd ed) - https://doc.rust-lang.org/nightly/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, nightly 2nd ed) - https://doc.rust-lang.org/nightly/book/2018-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, nightly 2018 ed) This commit is the result of (first) searching via ripgrep (0.8.1 -SIMD -AVX): rg -l dynamically-sized-types-and-sized and then replacing all relevant occurrences via: find src/{libcore,test/ui} -type f -print0 | xargs -0 sed -i.bak \ s/dynamically-sized-types-and-sized/dynamically-sized-types-and-the-sized-trait/g find src/{libcore,test/ui} -type f -name '*.bak' -print0 | xargs -0 rm (Note: Tested on on macOS 10.13 (BSD). `sed -i.bak` should work on Linux (GNU sed) as well, but not tested.)
2018-08-04Rollup merge of #53062 - ljedrz:redundant_field_names, r=Mark-Simulacrumkennytm-50/+50
Remove redundant field names in structs
2018-08-04Remove redundant field names in structsljedrz-50/+50
2018-08-04Remove explicit returns where unnecessaryljedrz-21/+21
2018-08-04Rollup merge of #51919 - tbu-:pr_num_to_from_bytes2, r=SimonSapinkennytm-18/+90
Provide `{to,from}_{ne,le,be}_bytes` functions on integers If one doesn't view integers as containers of bytes, converting them to bytes necessarily needs the specfication of encoding. I think Rust is a language that wants to be explicit. The `to_bytes` function is basically the opposite of that – it converts an integer into the native byte representation, but there's no mention (in the function name) of it being very much platform dependent. Therefore, I think it would be better to replace that method by three methods, the explicit `to_ne_bytes` ("native endian") which does the same thing and `to_{le,be}_bytes` which return the little- resp. big-endian encoding.
2018-08-04Change tracking issue from #49792 to #51919Tobias Bucher-8/+8
The old issue has already been in FCP, a new issue was opened for the new API.
2018-08-04deleted changed linesredroc-33/+0
2018-08-04fixed broken links to charredroc-19/+19
2018-08-041.29.0 -> 1.30.0Артём Павлов [Artyom Pavlov]-7/+7
2018-08-03unsized ManuallyDropRalf Jung-3/+12