summary refs log tree commit diff
path: root/src/libstd/util.rs
AgeCommit message (Collapse)AuthorLines
2014-01-07stdtest: Fix all leaked trait importsAlex Crichton-4/+1
2014-01-03Remove std::eitherAlex Crichton-10/+0
2013-12-27std: uniform modules titles for docLuca Bruno-1/+1
This commit uniforms the short title of modules provided by libstd, in order to make their roles more explicit when glancing at the index. Signed-off-by: Luca Bruno <lucab@debian.org>
2013-12-03Move std::util::ignore to std::prelude::dropSteven Fackler-4/+0
It's a more fitting name for the most common use case of this function.
2013-11-28Register new snapshotsAlex Crichton-1/+1
2013-11-26test: Remove non-procedure uses of `do` from compiletest, libstd tests,Patrick Walton-8/+8
compile-fail tests, run-fail tests, and run-pass tests.
2013-11-19Remove NonCopyable::newSteven Fackler-6/+0
The issue that required it has been fixed.
2013-10-17std: Move size/align functions to std::mem. #2240Brian Anderson-1/+1
2013-10-07Fix existing privacy/visibility violationsAlex Crichton-1/+1
This commit fixes all of the fallout of the previous commit which is an attempt to refine privacy. There were a few unfortunate leaks which now must be plugged, and the most horrible one is the current `shouldnt_be_public` module now inside `std::rt`. I think that this either needs a slight reorganization of the runtime, or otherwise it needs to just wait for the external users of these modules to get replaced with their `rt` implementations. Other fixes involve making things pub which should be pub, and otherwise updating error messages that now reference privacy instead of referencing an "unresolved name" (yay!).
2013-09-21auto merge of #9354 : thestinger/rust/cleanup, r=alexcrichtonbors-19/+0
I don't see the point of this function, and there are no users.
2013-09-20util: remove unused `with` functionDaniel Micay-19/+0
2013-09-19Replace unreachable() calls with unreachable!().Chris Morgan-28/+0
This is the second of two parts of #8991, now possible as a new snapshot has been made. (The first part implemented the unreachable!() macro; it was #8992, 6b7b8f2682.) ``std::util::unreachable()`` is removed summarily; any code which used it should now use the ``unreachable!()`` macro. Closes #9312. Closes #8991.
2013-09-16switch Drop to `&mut self`Daniel Micay-2/+2
2013-08-27librustc: Remove `&const` and `*const` from the language.Patrick Walton-2/+4
They are still present as part of the borrow check.
2013-08-02(cleanup) Use more do...finally in extra::sync.Ben Blum-0/+6
2013-07-22std: various additional language benchmarks in util.Graydon Hoare-0/+65
2013-07-22new snapshotDaniel Micay-8/+5
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-2/+4
2013-06-28fix stage0 buildDaniel Micay-5/+8
2013-06-27Rename #[no_drop_flag] to #[unsafe_no_drop_flag]Birunthan Mohanathas-2/+2
2013-06-27util: make NonCopyable 0 size (instead of 1 byte)Daniel Micay-12/+39
this also adds a derived Eq, TotalEq, Ord and TotalOrd along with removing the useless constructor
2013-06-25Change finalize -> drop.Luqman Aden-1/+1
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-5/+5
2013-06-12make util::NonCopyable a unit struct instead of a struct with a unitBen Blum-4/+2
2013-06-04std::util: fix missed old constructorPhilipp Brüschweiler-1/+1
2013-06-04std::util: Modernize NonCopyable constructorPhilipp Brüschweiler-3/+5
part of #3853
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-2/+2
2013-05-31mv the raw pointer {swap,replace}_ptr to std::ptrDaniel Micay-30/+0
2013-05-30Remove unnecessary 'use' formsDaniel Farina-1/+0
Fix a laundry list of warnings involving unused imports that glutted up compilation output. There are more, but there seems to be some false positives (where 'remedy' appears to break the build), but this particular set of fixes seems safe.
2013-05-30Require documentation by default for libstdAlex Crichton-1/+2
Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-5/+4
2013-05-27syntax highlight code examples in docstringsDaniel Micay-1/+1
2013-05-23optimize util::swap, &mut pointers never aliasDaniel Micay-2/+13
2013-05-23swap_ptr: rm equality checkDaniel Micay-3/+1
This isn't needed semantically, and it's the wrong case to optimize for.
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+190
This only changes the directory names; it does not change the "real" metadata names.
2012-08-02Remove std::utilBen Blum-21/+0
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-2/+2
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-03-09std: Convert to rustdocBrian Anderson-17/+2
2012-03-08Change util::unreachable to core::unreachableTim Chevalier-11/+0
Closes #1931
2012-01-14libstd: Remove util::voidBrian Anderson-5/+0
2012-01-14libstd: Remove util::orb. Redundant with core::boolBrian Anderson-5/+0
2012-01-05Switch to new param kind bound syntaxMarijn Haverbeke-1/+1
And remove support for the old syntax
2012-01-02Add 'copy' bounds to functions that were faultily accepted withoutMarijn Haverbeke-1/+1
Issue #1390
2011-12-06Establish 'core' library separate from 'std'.Graydon Hoare-0/+57