about summary refs log tree commit diff
path: root/src/libcore/bool.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-36/+0
2019-12-06Format libcore with rustfmt (including tests and benches)David Tolnay-10/+2
2019-12-06Rename to `then_some` and `then`varkor-6/+6
2019-12-06Rename `bool`'s `then` to `to_option`varkor-6/+6
2019-09-25Snap cfgs to new betaMark Rousskov-1/+0
2019-09-23Move `--cfg bootstrap` out of `rustc.rs`Alex Crichton-1/+1
Instead let's do this via `RUSTFLAGS` in `builder.rs`. Currently requires a submodule update of `stdarch` to fix a problem with previous compilers.
2019-09-07Add tracking issuevarkor-2/+2
2019-09-07Move `libcore/bool/mod.rs` to `libcore/bool.rs`varkor-0/+45
2014-12-18std: Remove public bool,tuple,unit modulesAlex Crichton-16/+0
This commit modifies rustdoc to not require these empty modules to be public in the standard library. The modules still remain as a location to attach documentation to, but the modules themselves are now private (don't have to commit to an API). The documentation for the standard library now shows all of the primitive types on the main index page.
2014-07-26std: Stabilize unit, bool, ty, tuple, arc, anyAlex Crichton-0/+2
This commit applies stability attributes to the contents of these modules, summarized here: * The `unit` and `bool` modules have become #[unstable] as they are purely meant for documentation purposes and are candidates for removal. * The `ty` module has been deprecated, and the inner `Unsafe` type has been renamed to `UnsafeCell` and moved to the `cell` module. The `marker1` field has been removed as the compiler now always infers `UnsafeCell` to be invariant. The `new` method i stable, but the `value` field, `get` and `unwrap` methods are all unstable. * The `tuple` module has its name as stable, the naming of the `TupleN` traits as stable while the methods are all #[unstable]. The other impls in the module have appropriate stability for the corresponding trait. * The `arc` module has received the exact same treatment as the `rc` module previously did. * The `any` module has its name as stable. The `Any` trait is also stable, with a new private supertrait which now contains the `get_type_id` method. This is to make the method a private implementation detail rather than a public-facing detail. The two extension traits in the module are marked #[unstable] as they will not be necessary with DST. The `is` method is #[stable], the as_{mut,ref} methods have been renamed to downcast_{mut,ref} and are #[unstable]. The extension trait `BoxAny` has been clarified as to why it is unstable as it will not be necessary with DST. This is a breaking change because the `marker1` field was removed from the `UnsafeCell` type. To deal with this change, you can simply delete the field and only specify the value of the `data` field in static initializers. [breaking-change]
2014-06-24Move core::bool tests to run-passBrian Anderson-99/+0
These are closer to language tests than library.
2014-06-24core: Remove bool::to_bitBrian Anderson-24/+1
This is an unused one-liner.
2014-05-31rustdoc: Create anchor pages for primitive typesAlex Crichton-0/+2
This commit adds support in rustdoc to recognize the `#[doc(primitive = "foo")]` attribute. This attribute indicates that the current module is the "owner" of the primitive type `foo`. For rustdoc, this means that the doc-comment for the module is the doc-comment for the primitive type, plus a signal to all downstream crates that hyperlinks for primitive types will be directed at the crate containing the `#[doc]` directive. Additionally, rustdoc will favor crates closest to the one being documented which "implements the primitive type". For example, documentation of libcore links to libcore for primitive types, but documentation for libstd and beyond all links to libstd for primitive types. This change involves no compiler modifications, it is purely a rustdoc change. The landing pages for the primitive types primarily serve to show a list of implemented traits for the primitive type itself. The primitive types documented includes both strings and slices in a semi-ad-hoc way, but in a way that should provide at least somewhat meaningful documentation. Closes #14474
2014-05-28Move trait impls for primitives near trait definitionPiotr Jawniak-143/+0
Closes #12925
2014-05-22libcore: Remove all uses of `~str` from `libcore`.Patrick Walton-2/+4
[breaking-change]
2014-05-19Minor doc fixes in various placesPiotr Jawniak-1/+4
2014-05-07core: Get coretest workingAlex Crichton-2/+1
This mostly involved frobbing imports between realstd, realcore, and the core being test. Some of the imports are a little counterintuitive, but it mainly focuses around libcore's types not implementing Show while libstd's types implement Show.
2014-05-07core: Inherit the bool moduleAlex Crichton-0/+273
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-153/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-3/+3
2013-05-18Use pattern-matching instead of conditionals where appropriate to improve ↵Brendan Zabarauskas-6/+4
code clarity
2013-05-08Remove #[cfg(notest)] and use #[cfg(not(test))] to cooincide with #[cfg(debug)]Zack Corr-4/+4
2013-05-03Remove extra `#[cfg(stage0)]`gifnksm-3/+0
2013-05-02libcore: Export core::from_str::FromStr from core::preludegifnksm-0/+1
2013-04-11bool: implement Ord and TotalOrdDaniel Micay-27/+72
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-4/+4
2013-03-22libcore: Remove `pure` from libcore. rs=depurePatrick Walton-14/+14
2013-03-22librustc: Remove all uses of `static` from functions. rs=destaticPatrick Walton-1/+1
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-1/+1
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-4/+4
2013-03-06bool: make the from_str function a FromStr implDaniel Micay-8/+14
2013-03-04Adding missing imports for tests, and gate off othersAlex Crichton-2/+2
2013-03-04Remove unused imports throughout src/Alex Crichton-2/+0
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-1/+1
rs=implflipping
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-4/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-01-17Add a license check to tidy. #4018Brian Anderson-1/+0
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+1
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-1/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+1
module scope. r=tjc
2012-12-27librustc: Fix the test runner, the condition system, and core test. rs=bustagePatrick Walton-0/+1
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-0/+1
contain at least two components. r=graydon
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-30core: Make core.rc more readable. CleanupBrian Anderson-0/+1
2012-11-28Register snapshotsBrian Anderson-8/+0
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+8
2012-09-26libcore: De-export boolPatrick Walton-20/+16
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-7/+0
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-0/+7
2012-09-07rustc: Add an "ne" method to the Eq trait, and implement it everywherePatrick Walton-3/+2
2012-09-04libcore: "import" -> "use"Patrick Walton-1/+1