about summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2018-09-01Rollup merge of #53781 - matthiaskrgr:fix_any_bench, r=kennytmkennytm-1/+1
bench: libcore: fix build failure of any.rs benchmark (use "dyn Any") fixes ```` error: trait objects without an explicit `dyn` are deprecated --> libcore/../libcore/benches/any.rs:18:36 | 18 | let mut y = &mut x as &mut Any; | ^^^ help: use `dyn`: `dyn Any` | = note: requested on the command line with `-D bare-trait-objects` ````
2018-09-01rebaseTim-56/+503
2018-09-01Auto merge of #53604 - oli-obk:min_const_fn, r=Centril,varkorbors-0/+28
Implement the `min_const_fn` feature gate cc @RalfJung @eddyb r? @Centril implements the feature gate for #53555 I added a hack so the `const_fn` feature gate also enables the `min_const_fn` feature gate. This ensures that nightly users of `const_fn` don't have to touch their code at all. The `min_const_fn` checks are run first, and if they succeeded, the `const_fn` checks are run additionally to ensure we didn't miss anything.
2018-09-01Update to a new pinning API.Without Boats-96/+258
2018-08-31Auto merge of #53755 - llogiq:fix-unsound-16bit-range, r=nagisabors-2/+10
fix u32 steps_between for 16-bit systems This fixes #48006.
2018-08-31use cfg(rustdoc) instead of cfg(dox) in std and friendsQuietMisdreavus-1/+1
2018-08-31fix doctestsRalf Jung-4/+8
2018-08-31(un)alignedRalf Jung-2/+2
2018-08-31apply feedbackRalf Jung-20/+28
2018-08-31turn ptr type method docs into links to docs of free functions, to avoid ↵Ralf Jung-433/+44
duplication and inconsistency
2018-08-31Implement the `min_const_fn` feature gateOliver Schneider-0/+28
2018-08-30Rollup merge of #53785 - tbu-:pr_comment, r=Mark-SimulacrumPietro Albini-6/+1
Fix a comment in src/libcore/slice/mod.rs
2018-08-30Rollup merge of #53476 - GuillaumeGomez:try-from-int-error-partial-eq, r=KodrAusPietro Albini-1/+1
Add partialeq implementation for TryFromIntError type Fixes #53458.
2018-08-30Rollup merge of #51760 - GuillaumeGomez:add-another-partialeq-example, ↵Pietro Albini-1/+84
r=QuietMisdreavus Add another PartialEq example r? @steveklabnik
2018-08-30fix exampleRalf Jung-2/+1
2018-08-30fix exampleRalf Jung-2/+3
2018-08-30improve volatile commentsRalf Jung-4/+4
2018-08-30avoid shadowing; fix examplesRalf Jung-4/+4
2018-08-30address remaining remarks and add example for dropping unaligned dataRalf Jung-7/+35
2018-08-30apply commentsRalf Jung-18/+23
2018-08-30clarify ZST commentRalf Jung-16/+16
2018-08-30fix u32 steps_between for 16-bit systemsAndre Bogus-2/+10
2018-08-30Added feature attribute to example code in map_or_else docIsaac van Bakel-0/+1
2018-08-29Corrected type variable output T -> U in Result::map_or_elseIsaac van Bakel-1/+1
2018-08-29Corrected feature status of Result::map_or_elseIsaac van Bakel-1/+1
map_or_else is now correctly labelled unstable and points to the tracking issue on rust-lang/rust
2018-08-29Corrected bad typing in Result::map_or_else docIsaac van Bakel-2/+2
The error value now includes the type of the success. The success value now includes the type of the error.
2018-08-29clarify that these are preliminary guaranteesRalf Jung-5/+4
2018-08-29Fix a comment in src/libcore/slice/mod.rsTobias Bucher-6/+1
2018-08-29edit docs a littleRalf Jung-27/+49
2018-08-29Corrected feature name for map_or_elseIsaac van Bakel-1/+1
2018-08-29bench: libcore: fix build failure of any.rs benchmark (use "dyn Any")Matthias Krüger-1/+1
2018-08-29Resolve null/ZST conflict correctly (whoops)Dylan MacKenzie-4/+3
2018-08-29Add a list of known facts re: validityDylan MacKenzie-9/+26
Also rewrites the reads/writes section to be less reliant on `*const`, `*mut`
2018-08-29You can't make an omlette without breaking a few linksDylan MacKenzie-1/+1
2018-08-29Incorporate RalfJung's suggestionsDylan MacKenzie-52/+49
This splits "valid" into "valid for reads" and "valid for writes", and also adds the concept of operation size to validity. Now functions which operate on sequences state that e.g. pointer args must be "valid for reads of size x".
2018-08-29Redefine range validityDylan MacKenzie-30/+27
Uses `x.offset(i)` must be valid for all `i` in `0..count`.
2018-08-29Remove definiton of valid pointerDylan MacKenzie-7/+14
The enumerated list of conditions is replaced by an explanation that rust doesn't have a formal memory model. It does say that pointers created directly from references are guaranteed to be valid, and links to both the "Unsafe Code" section of the book and the "Undefined Behavior" section of the reference.
2018-08-29Fix off-by-one error when specifying a valid rangeDylan MacKenzie-7/+7
2018-08-29Reword module level docs re: alignmentDylan MacKenzie-4/+4
2018-08-29Update docs for `swap_nonoverlapping`Dylan MacKenzie-3/+19
They closely mirror the docs for `copy_nonoverlapping`
2018-08-29Fix unused variable warning in doctestDylan MacKenzie-0/+1
2018-08-29Fix failing doctestsDylan MacKenzie-4/+4
2018-08-29Mention alignment in top-level docsDylan MacKenzie-5/+11
This also removes the overlong link that failed tidy xD.
2018-08-29Rewrite docs for `std::ptr`Dylan MacKenzie-102/+497
- Add links to the GNU libc docs for `memmove`, `memcpy`, and `memset`, as well as internally linking to other functions in `std::ptr` - List invariants which, when violated, cause UB for all functions - Add example to `ptr::drop_in_place` and compares it to `ptr::read`. - Add examples which more closely mirror real world uses for the functions in `std::ptr`. Also, move the reimplementation of `mem::swap` to the examples of `ptr::read` and use a more interesting example for `copy_nonoverlapping`. - Change module level description - Define what constitutes a "valid" pointer. - Centralize discussion of ownership of bitwise copies in `ptr::read` and provide an example.
2018-08-29Implemented map_or_else for Result<T, E>Isaac van Bakel-0/+29
2018-08-28Add partialeq implementation for TryFromIntError typeGuillaume Gomez-1/+1
2018-08-28stabilize slice_align_toRalf Jung-9/+8
2018-08-27Auto merge of #53227 - nivkner:pin_move, r=RalfJungbors-153/+172
move the Pin API into its own module for centralized documentation This implements the change proposed by @withoutboats in #49150, as suggested by @RalfJung in the review of #53104, along with the documentation that was originally in it, that was deemed more appropriate in module-level documentation. r? @RalfJung
2018-08-27Auto merge of #53441 - toidiu:ak-fix53419, r=nikomatsakisbors-0/+1
fix for late-bound regions Fix for https://github.com/rust-lang/rust/issues/53419 r? @nikomatsakis
2018-08-25Auto merge of #53385 - matklad:stabilize-find-map, r=KodrAusbors-5/+1
Stablize Iterator::find_map Stabilization PR for https://github.com/rust-lang/rust/issues/49602