summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2014-01-08Fix windows installer version to be less verboseBrian Anderson-2/+1
2014-01-08Robustly read remaining bytes in a characterAlex Crichton-4/+16
Closes #11372
2014-01-08auto merge of #11401 : michaelwoerister/rust/issue11322, r=alexcrichtonbors-13/+46
`expand_include_str()` in libsyntax seems to have corrupted the CodeMap by always setting the BytePos of any included files to zero. It now uses `CodeMap::new_filemap()` which should set everything properly. This should fix issue #11322 but I don't want to close it before I have confirmation from the reporters that the problem is indeed fixed.
2014-01-08auto merge of #11370 : alexcrichton/rust/issue-10465, r=pwaltonbors-247/+278
Turned out to be a 2-line fix, but the compiler fallout was huge.
2014-01-08Fix CodeMap issue in expand_include_str()Michael Woerister-13/+46
2014-01-08auto merge of #11405 : huonw/rust/moredocs, r=huonwbors-93/+120
Various documentation changes, change the 'borrowed pointer' terminology to 'reference', fix a problem with 'make dist' on windows.
2014-01-08auto merge of #11358 : pcwalton/rust/typed-arenas, r=alexcrichtonbors-44/+331
A typed arena is a type of arena that can only allocate objects of one type. It is 3x faster than the existing arena and 13x faster than malloc on Mac. r? @brson
2014-01-08auto merge of #11391 : alexcrichton/rust/rustdoc-inline, r=brsonbors-149/+289
If a reexport comes from a non-public module, then the documentation for the reexport will be inlined into the module that exports it, but if the reexport is targeted at a public type (like the prelude), then it is not inlined but rather hyperlinked.
2014-01-07Fixup the rest of the tests in the compilerAlex Crichton-5/+7
2014-01-07extratest: Fix all leaked trait importsAlex Crichton-48/+41
2014-01-07stdtest: Fix all leaked trait importsAlex Crichton-99/+65
2014-01-07Fix remaining cases of leaking importsAlex Crichton-17/+44
2014-01-07std: Fill in all missing importsAlex Crichton-24/+65
Fallout from the previous commits
2014-01-07rustc: De-indent portions of middle::resolveAlex Crichton-56/+26
It's a little prettier to look at now
2014-01-07Fix leaking trait imports across modulesAlex Crichton-2/+34
Turns out the pass in resolve was a little too eager to travel back up the hierarchy chain when looking for trait candidates. Closes #10465
2014-01-07doc: Add rustc and syntax to the indexBrian Anderson-4/+25
2014-01-07doc: Add libgreen and libnative to the indexBrian Anderson-0/+6
2014-01-07'borrowed pointer' -> 'reference'Brian Anderson-88/+87
2014-01-07Inline reexports in rustdocAlex Crichton-149/+289
If a reexport comes from a non-public module, then the documentation for the reexport will be inlined into the module that exports it, but if the reexport is targeted at a public type (like the prelude), then it is not inlined but rather hyperlinked.
2014-01-07mk: Fix the naming of the windows installer harderBrian Anderson-1/+2
CFG_VERSION includes a bunch of VCS info in it that is not a valid filename. CFG_RELEASE is just the version number.
2014-01-07libextra: Introduce typed arenas.Patrick Walton-44/+331
A typed arena is a type of arena that can only allocate objects of one type. It is 3x faster than the existing arena and 13x faster than malloc on Mac.
2014-01-08Renamed Option::map_default and mutate_default to map_or and mutate_or_setMarvin Löbel-44/+43
2014-01-07auto merge of #11045 : jhasse/rust/patch-libdir, r=alexcrichtonbors-4/+3
See https://github.com/mozilla/rust/issues/5223#issuecomment-30455086
2014-01-07auto merge of #11263 : niftynif/rust/btree, r=catamorphismbors-115/+256
Apologies for junking up the feed with all of these separate pull requests. I'm still getting the hang of git and will hopefully be doing less of this nonsense soon. I opened up another PR and closed the one from earlier today because the first PR was coming from the wrong branch of my repo. Anyway, this contains a fleshed-out implementation of TotalEq/TotalOrd/Clone/ToStr for the whole B-tree structure and relevant tests, integrating suggestions and comments from several community members. r? @catamorphism
2014-01-07auto merge of #11353 : alexcrichton/rust/improve-logging, r=brsonbors-158/+328
This will allow capturing of common things like logging messages, stdout prints (using stdio println), and failure messages (printed to stderr). Any new prints added to libstd should be funneled through these task handles to allow capture as well. Additionally, this commit redirects logging back through a `Logger` trait so the log level can be usefully consumed by an arbitrary logger. This commit also introduces methods to set the task-local stdout handles: * std::io::stdio::set_stdout * std::io::stdio::set_stderr * std::io::logging::set_logger These methods all return the previous logger just in case it needs to be used for inspection. I plan on using this infrastructure for extra::test soon, but we don't quite have the primitives that I'd like to use for it, so it doesn't migrate extra::test at this time. Closes #6369
2014-01-07Make CFG_LIBDIR configurable. Fixes #5223Jan Niklas Hasse-4/+3
2014-01-07auto merge of #11348 : alexcrichton/rust/snapshots, r=brsonbors-41/+10
2014-01-07auto merge of #11342 : huonw/rust/trie-mut, r=alexcrichtonbors-184/+304
- Add `mut_iter`, `mut_lower_bound`, `mut_upper_bound` - Remove some internal iterators - Add benchmarks - Improve performance of `{mut_,}{lower,upper}_bound` - Minor clean-up of `extra::treemap` after I realised I wasn't exploiting macros to their full DRY potential.
2014-01-08extra::treemap: use the dummy-macro trick with items to make theHuon Wilson-16/+13
iterator macro properly hygiene. Requires less repetition of `mut` or not too.
2014-01-08std::trie: make lower_bound and upper_bound about 15% faster.Huon Wilson-10/+10
I believe this is mainly due to code-size reduction. Before: test [...]::bench_lower_bound ... bench: 818 ns/iter (+/- 100) test [...]::bench_upper_bound ... bench: 939 ns/iter (+/- 34) After: test [...]::bench_lower_bound ... bench: 698 ns/iter (+/- 60) test [...]::bench_upper_bound ... bench: 817 ns/iter (+/- 20)
2014-01-08std::trie: Add some iteration/search benchmarks.Huon Wilson-0/+60
2014-01-08std::trie: use macros to share code between the iterator implementations.Huon Wilson-129/+126
2014-01-08std::trie: remove some obsolete internal iterators.Huon Wilson-113/+11
2014-01-08std::trie: add an mutable-values iterator.Huon Wilson-0/+168
2014-01-07auto merge of #11347 : alexcrichton/rust/issue-11346, r=brsonbors-1/+8
This ends up causing weird errors like those seen in #11346 Closes #11346
2014-01-07auto merge of #11329 : fhahn/rust/unused-cast-lint2, r=alexcrichtonbors-26/+93
Updates as mentioned in #11135
2014-01-06auto merge of #11355 : alexcrichton/rust/read-waits-forever, r=brsonbors-5/+27
All the fun is down below.
2014-01-06auto merge of #11296 : brson/rust/anti-cond, r=alexcrichtonbors-34/+48
In preparation for removing conditions.
2014-01-06Added in Clone/TotalEq/TotalOrd/ToStr traits to all parts of btree.Nif Ward-115/+256
Equals is now compact and uses vec's equals method. Cmp compares all elements on branches and leaves (Nodes).
2014-01-06Don't read forever on a file descriptorAlex Crichton-5/+27
Similarly to the recent commit to do this for networking, there's no reason that a read on a file descriptor should continue reading until the entire buffer is full. This makes sense when dealing with literal files, but when dealing with things like stdin this doesn't make sense.
2014-01-06auto merge of #11354 : brson/rust/versionwin, r=alexcrichtonbors-1/+1
The makefiles and the windows installer disagree on the name of this file. In practical terms this change only means that the '-pre' installers will be named 'rust-0.9-pre-install.exe' instead 'rust-0.9-install.exe'.
2014-01-06Use the full version string for the windows installer exeBrian Anderson-1/+1
2014-01-06Support arbitrary stdout/stderr/logger handlesAlex Crichton-159/+329
This will allow capturing of common things like logging messages, stdout prints (using stdio println), and failure messages (printed to stderr). Any new prints added to libstd should be funneled through these task handles to allow capture as well. Additionally, this commit redirects logging back through a `Logger` trait so the log level can be usefully consumed by an arbitrary logger. This commit also introduces methods to set the task-local stdout handles: * std::io::stdio::set_stdout * std::io::stdio::set_stderr * std::io::logging::set_logger These methods all return the previous logger just in case it needs to be used for inspection. I plan on using this infrastructure for extra::test soon, but we don't quite have the primitives that I'd like to use for it, so it doesn't migrate extra::test at this time. Closes #6369
2014-01-06auto merge of #10826 : SimonSapin/rust/str-insert, r=brsonbors-0/+42
I could not run the tests because of unrelated building issue, sorry about that.
2014-01-06Remove some unnecessary type castsFlorian Hahn-25/+25
Conflicts: src/librustc/middle/lint.rs
2014-01-06Add lint for unnecessary castsFlorian Hahn-1/+68
2014-01-06auto merge of #11334 : alexcrichton/rust/fix-native-tcp, r=pcwaltonbors-4/+25
libnative erroneously would attempt to fill the entire buffer in a call to `read` before returning, when rather it should return immediately because there's not guaranteed to be any data that will ever be received again. Close #11328
2014-01-06Register new snapshotsAlex Crichton-42/+11
2014-01-06Don't attempt duplicate outputsAlex Crichton-1/+8
This ends up causing weird errors like those seen in #11346 Closes #11346
2014-01-06auto merge of #11333 : cmr/rust/triage2, r=alexcrichtonbors-44/+95