summary refs log tree commit diff
path: root/src/libstd/logging.rs
AgeCommit message (Collapse)AuthorLines
2013-09-18Register new snapshotsAlex Crichton-11/+0
2013-09-16Add an SendStr typeMarvin Löbel-3/+4
A SendStr is a string that can hold either a ~str or a &'static str. This can be useful as an optimization when an allocation is sometimes needed but the common case is statically known. Possible use cases include Maps with both static and owned keys, or propagating error messages across task boundaries. SendStr implements most basic traits in a way that hides the fact that it is an enum; in particular things like order and equality are only determined by the content of the wrapped strings. Replaced std::rt:logging::SendableString with SendStr Added tests for using an SendStr as key in Hash- and Treemaps
2013-09-14std::logging: Use a more specific enum than Eitherblake2-ppc-4/+3
2013-09-05Remove the __log function for __log_levelAlex Crichton-1/+8
Also redefine all of the standard logging macros to use more rust code instead of custom LLVM translation code. This makes them a bit easier to understand, but also more flexibile for future types of logging. Additionally, this commit removes the LogType language item in preparation for changing how logging is performed.
2013-08-28Remove @io::Writer from sys/repr/reflectAlex Crichton-8/+2
At the same time, this updates the TyVisitor to use a mutable self because it's probably going to be mutating state as it goes along anyway.
2013-08-27librustc: Ensure that type parameters are in the right positions in paths.Patrick Walton-1/+2
This removes the stacking of type parameters that occurs when invoking trait methods, and fixes all places in the standard library that were relying on it. It is somewhat awkward in places; I think we'll probably want something like the `Foo::<for T>::new()` syntax.
2013-08-09Remove the C++ runtime. SayonaraBrian Anderson-46/+6
2013-08-04std: Fix newsched logging truncationBrian Anderson-10/+0
The truncation needs to be done in the console logger in order to catch all the logging output, and because truncation only matters when outputting to the console.
2013-08-03fixed the buffer to make it a more reasonable sizetoddaaro-1/+1
2013-08-03modified logging function to truncate output and adjusted error output ↵toddaaro-0/+10
formatting tests to be compatible with both the new and old runtimes
2013-08-02librustc: Disallow "unsafe" for external functionsPatrick Walton-5/+5
2013-07-20librustc: Remove `pub extern` and `priv extern` from the language.Patrick Walton-6/+6
Place `pub` or `priv` on individual items instead.
2013-06-21std: Make console log off/on controls work with newschedBrian Anderson-4/+20
2013-05-30Require documentation by default for libstdAlex Crichton-0/+1
Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-28Silence various warnings throughout test modulesAlex Crichton-3/+3
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+97
This only changes the directory names; it does not change the "real" metadata names.