summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2013-06-17Made the while DebugContext mutable, not just created_* hashesVadim Chugunov-224/+248
Disabled create_arg
2013-06-17Use DIBuilder in debuginfoVadim Chugunov-708/+832
2013-06-17auto merge of #7199 : Kimundi/rust/master, r=bstriebors-25/+91
- Fixed tests - Added methods - Renamed casting methods to be shorter - Added unsafe versions Closes #7150
2013-06-17auto merge of #7174 : SiegeLord/rust/remove_trim, r=brsonbors-25/+67
This change prevents the indentation in code blocks inside the /// doc comments from being eaten. The indentation that is the same across the consecutive doc comments is removed by the uindent_pass in librustdoc. The bug can be seen, e.g., here: http://static.rust-lang.org/doc/std/iterator.html#example-12 I also altered how the block comments are treated, for consistency. There isn't much testing done on the documentation output (I added a few tests of my own for the modified function), so I don't know if anything relied on the previous behavior. I checked a number of documentation files and observed either no change in output or changes that consistent of the above bug being fixed.
2013-06-17auto merge of #7195 : brson/rust/timertest, r=bstriebors-2/+2
2013-06-17rt: fix jemalloc android cross-compile for macYoung-il Choi-1/+2
2013-06-17std: fix stat struct of android (SEGV error from run-pass/stat.rs on android)Young-il Choi-2/+78
2013-06-17test: adjust some test cases of run-pass for androidYoung-il Choi-4/+10
2013-06-17etc: add TEST_EXEC_ENV for run-pass to adb_run_wrapper.shYoung-il Choi-1/+2
2013-06-17etc: modify adb_run_wrapper.sh to avoid 'expr' unrecognization at some ↵Young-il Choi-1/+1
android devices
2013-06-17mk: tests.mk simplify the method to clean arm testing directoryYoung-il Choi-3/+1
2013-06-17Improved std::asciiMarvin Löbel-25/+91
- Fixed tests - Added methods - Renamed casting methods to be shorter closes #7150
2013-06-17auto merge of #7198 : huonw/rust/slice-zeros, r=Aatchbors-0/+42
2013-06-17Reproduce text changes from @brson PR 7176 and fix a typo thereinRalph Bodenner-18/+22
2013-06-17std: add Zero impls for &[] and &str.Huon Wilson-0/+42
2013-06-16Update doc references to new names for std, extra, and std::libcRalph Bodenner-12/+12
2013-06-16auto merge of #7184 : smvv/rust/doc_css, r=brsonbors-12/+9
After reading issue #7077, all header elements had a border. In my opinion those borders are a bit too much distraction. I tried a different approach with increasing the padding and font size, and omitting the borders. Comparison: http://smvv.io/rust-doc/std/hashmap.html http://static.rust-lang.org/doc/std/hashmap.html Note: the highlighted code blocks are not caused by this commit. I left the border of the code block / function signature as is. The reason behind that is that code blocks are really block elements, while headers are not. What do you guys think?
2013-06-16std::rt: Reduce the delay on a timer test. SlowBrian Anderson-2/+2
2013-06-16auto merge of #7157 : sstewartgallus/rust/master, r=brsonbors-47/+39
I did a little bit of cleanup work in driver.rs. It's not much but hey little steps.
2013-06-16auto merge of #7165 : brson/rust/releasenotes, r=thestingerbors-8/+62
2013-06-16More 0.7 release notesBrian Anderson-8/+62
2013-06-16auto merge of #7186 : dotdash/rust/landing_pads, r=pcwaltonbors-13/+31
Currently, cleanup blocks are only reused when there are nested scopes, the child scope's cleanup block will terminate with a jump to the parent scope's cleanup block. But within a single scope, adding or revoking any cleanup will force a fresh cleanup block. This means quadratic growth with the number of allocations in a scope, because each allocation needs a landing pad. Instead of forcing a fresh cleanup block, we can keep a list chained cleanup blocks that form a prefix of the currently required cleanups. That way, the next cleanup block only has to handle newly added cleanups. And by keeping the whole list instead of just the latest block, we can also handle revocations more efficiently, by only dropping those blocks that are no longer required, instead of all of them. Reduces the size of librustc by about 5% and the time required to build it by about 10%.
2013-06-16Do not strip leading whitespace when parsing doc comments.SiegeLord-25/+67
This change prevents the indentation in code blocks inside the /// doc comments from being eaten. The indentation that is the same across the consecutive doc comments is removed by the uindent_pass in librustdoc.
2013-06-16auto merge of #7177 : huonw/rust/unfold-fix, r=thestingerbors-2/+36
2013-06-16auto merge of #7167 : ↵bors-429/+405
nikomatsakis/rust/ref-bindings-explicit-copy-in-generics, r=brson Two changes: 1. Make type parameters move by default, even if they have a Copy bound. After all, they could be bound to `~T` or `~[]`. Also, this is a necessary step towards removing `copy` keyword and replacing with clone. 2. Make it illegal to move from `*T`. This is dangerous in a "moves-by-default" scenario, because it's very easy to move when working with a `*T` pointer. Also, it requires zeroing memory, which we hope to do away with someday.
2013-06-16Correct docsNiko Matsakis-1/+1
2013-06-16Correct tutorial testsNiko Matsakis-3/+5
2013-06-16Make it illegal to move from *T. This interacts poorly with moves-based-on-type,Niko Matsakis-3/+3
since it creates moves that were not apparent. It also turns out to be not widely used.
2013-06-16Make type parameters not implicitly copyable, even if they have the Copy bound.Niko Matsakis-1/+1
Consider: T:Copy could be bound to ~T, which is not implicitly copyable.
2013-06-16Remove moves from *T and implement in another wayNiko Matsakis-30/+12
2013-06-16Add copies to type params with Copy boundNiko Matsakis-390/+380
2013-06-16correct ASM_COMMENTS Makefile optionNiko Matsakis-1/+1
2013-06-16Partial fix for #7158: Save EDX in morestack on x86-32Niko Matsakis-0/+2
2013-06-16auto merge of #7171 : bstrie/rust/delbin, r=thestingerbors-0/+0
2013-06-16Avoid quadratic growth of cleanup blocksBjörn Steinbrink-13/+31
Currently, cleanup blocks are only reused when there are nested scopes, the child scope's cleanup block will terminate with a jump to the parent scope's cleanup block. But within a single scope, adding or revoking any cleanup will force a fresh cleanup block. This means quadratic growth with the number of allocations in a scope, because each allocation needs a landing pad. Instead of forcing a fresh cleanup block, we can keep a list chained cleanup blocks that form a prefix of the currently required cleanups. That way, the next cleanup block only has to handle newly added cleanups. And by keeping the whole list instead of just the latest block, we can also handle revocations more efficiently, by only dropping those blocks that are no longer required, instead of all of them. Reduces the size of librustc by about 5% and the time required to build it by about 10%.
2013-06-16Remove h[123] border and increase their padding to better readabilitySander Mathijs van Veen-12/+9
2013-06-16auto merge of #7166 : brson/rust/fuzzer, r=pcwaltonbors-1146/+0
It is suffering from a bad case of megabitrot. #5247
2013-06-16auto merge of #7163 : brson/rust/reinterpret-cast, r=thestingerbors-5/+2
2013-06-16auto merge of #7160 : kballard/rust/terminfo-parm-i-fix, r=thestingerbors-3/+14
My latest terminfo work introduced a bug in the handling of %i, which was noticed by @huonw after the PR was already merged in. r? @thestinger
2013-06-16auto merge of #7159 : Blei/rust/free-glue-no-destructor, r=graydonbors-9/+0
The free glue shouldn't be called for structs, and the drop glue already contains the destructor.
2013-06-16auto merge of #7156 : Dretch/rust/float-hash, r=graydonbors-0/+41
It can sometimes be useful to have maps/sets of floating point values. Doing arithmetic with floats and then using them as keys is, of course, not a good idea.
2013-06-16auto merge of #7155 : Blei/rust/drop-glue-alloca, r=graydonbors-7/+17
Removes one alloca and store from the drop glue of @ boxes. This speeds up the rustc build by 1s (might be noise, though).
2013-06-16auto merge of #7142 : alexcrichton/rust/deriving-zero, r=pcwaltonbors-2/+201
This allows mass-initialization of large structs without having to specify all the fields. I'm a bit hesitant, but I wanted to get this out there. I don't really like using the `Zero` trait, because it doesn't really make sense for a type like `HashMap` to use `Zero` as the 'blank allocation' trait. In theory there'd be a new trait, but then that's adding cruft to the language which may not necessarily need to be there. I do think that this can be useful, but I only implemented `Zero` on the basic types where I thought it made sense, so it may not be all that usable yet. (opinions?)
2013-06-16std: fix UnfoldrIterator cross-crate.Huon Wilson-2/+36
2013-06-16auto merge of #7137 : erickt/rust/from-elem-fixme, r=thestingerbors-2/+4
This is to make sure we track optimizing `vec::from_elem`.
2013-06-16auto merge of #7123 : huonw/rust/more-str, r=thestingerbors-430/+342
Moves all the remaining functions that could reasonably be methods to be methods, except for some FFI ones (which I believe @erickt is working on, possibly) and `each_split_within`, since I'm not really sure the details of it (I believe @kimundi wrote the current implementation, so maybe he could convert it to an external iterator method on `StrSlice`, e.g. `word_wrap_iter(&self) -> WordWrapIterator<'self>`, where `WordWrapIterator` impls `Iterator<&'self str>`. It probably won't be too hard, since it's already a state machine.) This also cleans up the comparison impls for the string types, except I'm not sure how the lang items `eq_str` and `eq_str_uniq` need to be handled, so they (`eq_slice` and `eq`) remain stand-alone functions.
2013-06-15auto merge of #7149 : thestinger/rust/vec, r=graydonbors-115/+52
2013-06-16fix benchmark and the tutorialsDaniel Micay-9/+5
2013-06-15auto merge of #7162 : thestinger/rust/iterator, r=brsonbors-3/+47
2013-06-16Delete some binary files from the test suiteBen Striegel-0/+0