about summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2017-09-08Revert "Fix documentation and formatting."Jacob Kiesel-7/+9
This reverts commit 2e34ff767113c6a15c5862b0646ca9ad7ffd81b1.
2017-09-06Rollup merge of #44328 - mcomstock:from-str-doc-fix, r=steveklabnikMark Simulacrum-1/+0
Removed the incorrect documentation for from_str Fixes #44242.
2017-09-06Rollup merge of #44206 - MarkMcCaskey:master, r=steveklabnikMark Simulacrum-3/+1
update unimplemented! docs For #42628 (updating docs from changes from #42155). Initial changes made to make `unimplemented!` doc comments look more like `unreachable!` and remove statement about the panic message. r? @steveklabnik
2017-09-06Rollup merge of #44097 - Xaeroxe:clamp, r=burntsushiMark Simulacrum-0/+24
Add clamp functions Implementation of clamp feature: Tracking issue: https://github.com/rust-lang/rust/issues/44095 RFC: https://github.com/rust-lang/rfcs/pull/1961
2017-09-04Removed the incorrect documentation for from_strMax Comstock-1/+0
2017-09-04Additional traits for std::mem::ManuallyDropLance Roy-4/+61
Add pass-through implementations for all of the derivable traits. These cannot be derived since ManuallyDrop is a union.
2017-09-04Derive std::mem::ManuallyDrop from Clone and Copy.Lance Roy-0/+14
Although types that don't implement Drop can't be Copyable, this can still be useful when ManuallyDrop is used inside a generic type. This doesn't derive from Copy as that would require T: Copy + Clone, instead it provides an impl of Clone for T: Clone.
2017-09-03Auto merge of #44263 - durka:stabilize-discriminant, r=dtolnaybors-9/+8
stabilize mem::discriminant (closes #24263)
2017-09-03Manuall rebase of @Migi pull/41336Eh2406-0/+51
2017-09-03add error message for the other case tooAriel Ben-Yehuda-1/+6
2017-09-03on_unimplemented: add method-name checks and use them in TryAriel Ben-Yehuda-1/+3
2017-09-03address review commentsAriel Ben-Yehuda-2/+3
2017-09-03enable desugaring-sensitive error messages and use them in TryAriel Ben-Yehuda-2/+10
Maybe I should allow error messages to check the *specific* desugaring? Thanks @huntiep for the idea!
2017-09-02Merge branch 'master' of git://github.com/rust-lang/rustMarkMcCaskey-141/+1
2017-09-02stabilize mem::discriminant (closes #24263)Alex Burka-9/+8
2017-09-01impl From<Infallible> for TryFromIntError.Jimmy Cuadra-2/+17
2017-09-01Reword docs for Infallible to make them easier to understand.Jimmy Cuadra-6/+5
2017-09-01Fix documentation and formatting.Jacob Kiesel-9/+7
2017-08-31Merge branch 'master' into masterMark-12/+35
2017-08-31Update bootstrap compilerAlex Crichton-141/+1
This commit updates the bootstrap compiler and clears out a number of #[cfg(stage0)] annotations and related business
2017-08-30update unimplemented! docsMarkMcCaskey-2/+5
2017-08-30Rollup merge of #44160 - AndyGauge:api-docs-macros, r=steveklabnikAlex Crichton-14/+42
API docs: macros. Standard Documentation Checklist Fixes #29381 r? @steveklabnik
2017-08-30Remove Borrow bound from SliceExt::binary_searchChris Stankus-15/+10
2017-08-30Remove test case that assumes FromStr provides TryFrom<&'a str>.Jimmy Cuadra-1/+0
See https://travis-ci.org/rust-lang/rust/jobs/269861252
2017-08-30Implement TryFrom explicitly for infallible numeric conversions.Jimmy Cuadra-6/+8
See https://github.com/rust-lang/rust/pull/44174#discussion_r135982787
2017-08-30Auto merge of #43903 - oli-obk:alignto, r=aturonbors-1/+82
Add align_offset intrinsic see https://github.com/rust-lang/rfcs/pull/2043 for details and the plan towards stabilization (reexport in `core::mem` via various convenience functions) as per @scottmcm 's [comment](https://github.com/rust-lang/rfcs/pull/2043#issuecomment-316818169), this is just the intrinsic (which is obviously unstable).
2017-08-29Add blanket TryFrom impl when From is implemented.Jimmy Cuadra-44/+42
Adds `impl<T, U> TryFrom<T> for U where U: From<T>`. Removes `impl<'a, T> TryFrom<&'a str> for T where T: FromStr` due to overlapping impls caused by the new blanket impl. This removal is to be discussed further on the tracking issue for TryFrom. Refs #33417.
2017-08-29Rollup merge of #44158 - dtolnay:zero48, r=sfacklerAriel Ben-Yehuda-1/+1
Use a byte literal ASCII 0 instead of its decimal value @SimonSapin noticed this in https://github.com/dtolnay/itoa/pull/8.
2017-08-29Rollup merge of #43705 - panicbit:option_ref_mut_cloned, r=aturonAriel Ben-Yehuda-0/+20
libcore: Implement cloned() for Option<&mut T> None
2017-08-29API docs: macros. Part of #29329 Standard Library Documentation Checklist.Andy Gauge-14/+42
2017-08-29Use a byte literal ASCII 0 instead of its decimal valueDavid Tolnay-1/+1
2017-08-28Merge branch 'master' of https://github.com/rust-lang/rust into genJohn Kåre Alsaker-14/+8
2017-08-27Move unused-extern-crate to late passTatsuyuki Ishi-4/+0
2017-08-26Add clamp functionsJacob Kiesel-0/+26
2017-08-26Rollup merge of #44072 - lukaramu:fix-doc-headings, r=steveklabnikCorey Farwell-8/+8
Fix inconsistent doc headings This fixes headings reading "Unsafety" and "Example", they should be "Safety" and "Examples" according to RFC 1574. r? @steveklabnik
2017-08-25*: remove crate_{name,type} attributesTamir Duberstein-2/+0
Fixes #41701.
2017-08-25Merge remote-tracking branch 'origin/master' into genAlex Crichton-0/+13
2017-08-25Auto merge of #44031 - scottmcm:swap_with_slice, r=alexcrichtonbors-0/+13
Add [T]::swap_with_slice The safe version of a method from `ptr`, like `[T]::copy_from_slice` is. Tracking issue: https://github.com/rust-lang/rust/issues/44030
2017-08-24Fix inconsistent doc headingslukaramu-8/+8
This fixes headings reading "Unsafety" and "Example", they should be "Safety" and "Examples" according to RFC 1574.
2017-08-22Update intrinsics.rsOliver Schneider-2/+2
2017-08-21Add [T]::swap_with_sliceScott McMurray-0/+13
The safe version of a method from ptr, like [T]::copy_from_slice
2017-08-21Merge remote-tracking branch 'origin/master' into genAlex Crichton-0/+8
2017-08-22Auto merge of #43690 - scalexm:issue-28229, r=nikomatsakisbors-0/+8
Generate builtin impls for `Clone` This fixes a long-standing ICE and limitation where some builtin types implement `Copy` but not `Clone` (whereas `Clone` is a super trait of `Copy`). However, this PR has a few side-effects: * `Clone` is now marked as a lang item. * `[T; N]` is now `Clone` if `T: Clone` (currently, only if `T: Copy` and for `N <= 32`). * `fn foo<'a>() where &'a mut (): Clone { }` won't compile anymore because of how bounds for builtin traits are handled (e.g. same thing currently if you replace `Clone` by `Copy` in this example). Of course this function is unusable anyway, an error would pop as soon as it is called. Hence, I'm wondering wether this PR would need an RFC... Also, cc-ing @nikomatsakis, @arielb1. Related issues: #28229, #24000.
2017-08-21Merge remote-tracking branch 'origin/master' into genAlex Crichton-29/+75
2017-08-21Add align_offset intrinsicOliver Schneider-1/+82
see https://github.com/rust-lang/rfcs/pull/2043 for details
2017-08-20Auto merge of #43996 - shanavas786:fix-typo, r=frewsxcvbors-1/+1
Fix typo in doc
2017-08-20Auto merge of #43978 - GuillaumeGomez:missing-links, r=frewsxcvbors-27/+73
Missing links r? @rust-lang/docs
2017-08-20Fix typo in docShanavas M-1/+1
2017-08-18Minor Iterator::filter_map description rewording.Corey Farwell-1/+1
Fixes https://github.com/rust-lang/rust/issues/39294.
2017-08-18Add missing urls for Result structGuillaume Gomez-27/+73