about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2014-11-12Register new snapshotsAlex Crichton-580/+9
2014-11-12auto merge of #18860 : aturon/rust/reexports-in-stab-summary, r=brsonbors-22/+42
Previously, the stability summary page attempted to associate impl blocks with the module in which they were defined, rather than the module defining the type they apply to (which is usually, but not always, the same). Unfortunately, due to the basic architecture of rustdoc, this meant that impls from re-exports were not being counted. This commit makes the stability summary work the same way that rustdoc's rendered output does: all methods are counted alongside the type they apply to, no matter where the methods are defined. In addition, for trait impl blocks only the stability of the overall block is counted; the stability of the methods within is not counted (since that stability level is part of the trait definition). Fixes #18812
2014-11-12auto merge of #18854 : thestinger/rust/spawn, r=aturonbors-1/+2
cc https://github.com/rust-lang/rust/issues/18000
2014-11-12auto merge of #18841 : Manishearth/rust/doc-ty, r=alexcrichtonbors-2/+18
I'll probably start documenting the rest of `syntax::ast` whenever I get time.
2014-11-12auto merge of #18833 : slashgrin/rust/patch-1, r=brsonbors-1/+1
Should refer to handling panicking tasks like any other computation that may _fail_, not any other computation that may _panic_.
2014-11-11auto merge of #18813 : csherratt/rust/add-encode-decode-vecmap, r=alexcrichtonbors-1/+35
2014-11-11auto merge of #18793 : swgillespie/rust/master, r=alexcrichtonbors-1/+2
I noticed today that `move` wasn't getting highlighted in my editor of choice (emacs), so I went ahead and added it as a keyword in the emacs, vim, and kate editor files. Apparently it has already been done for gedit.
2014-11-11auto merge of #18821 : arielb1/rust/fnv-hash-map, r=eddybbors-289/+250
This should improve performance
2014-11-11auto merge of #18808 : ebfe/rust/lint-names, r=alexcrichtonbors-3/+3
2014-11-11auto merge of #18797 : vadimcn/rust/prefer-bundled2, r=alexcrichtonbors-19/+49
Based on Windows bundle feedback we got to date, - We *do* want to prefer the bundled linker: The external one might be for the wrong architecture (e.g. 32 bit vs 64 bit). On the other hand, binutils don't add many new features these days, so using an older bundled linker is not likely to be a problem. - We *do* want to prefer bundled libraries: The external ones might not have the symbols we expect (e.g. what's needed for DWARF exceptions vs SjLj). Since `-L rustlib/<triple>/lib` appears first on the linker command line, it's a good place to keep our platform libs that we want to be found first. Closes #18325, closes #17726.
2014-11-10Add 'move' keyword to emacs, kate, and vim editor modes.Sean Gillespie-1/+2
2014-11-11auto merge of #18789 : cuviper/rust/vim-move, r=alexcrichtonbors-2/+2
It used to be in `rustKeyword`, until commit 5c75f210ba6e450fb1603b50ca0a4805f13173d7 removed it, and then #18782 restored it again. However, this is now a closure modifier, and I think moving it to `rustStorage` is more appropriate to highlight it similarly to `mut`, `ref`, and the `&` sigil.
2014-11-11auto merge of #18766 : liigo/rust/improve-inner-attr-msg, r=huonwbors-0/+2
for the code: ``` use std::io; #![crate_type="rlib"] // ERROR: an inner attribute is not permitted in this context fn say_hello() { println!("hello"); } ``` this PR provides another note to help programmer fixing this error more easily: ``` hello.rs:6:3: 6:4 error: an inner attribute is not permitted in this context hello.rs:6 #![crate_type="rlib"] ^ hello.rs:6:3: 6:4 note: put inner attribute in top of file or block hello.rs:6 #![crate_type="rlib"] ^ ```
2014-11-11auto merge of #18753 : jbcrail/rust/fix-deprecated-enum-set, r=alexcrichtonbors-2/+2
I renamed the deprecated methods, resulting from the collection reform.
2014-11-11syntax: improve message for misused inner attributesLiigo Zhuang-0/+2
2014-11-10rustdoc: revise method counts in stability summaryAaron Turon-22/+42
Previously, the stability summary page attempted to associate impl blocks with the module in which they were defined, rather than the module defining the type they apply to (which is usually, but not always, the same). Unfortunately, due to the basic architecture of rustdoc, this meant that impls from re-exports were not being counted. This commit makes the stability summary work the same way that rustdoc's rendered output does: all methods are counted alongside the type they apply to, no matter where the methods are defined. In addition, for trait impl blocks only the stability of the overall block is counted; the stability of the methods within is not counted (since that stability level is part of the trait definition). Fixes #18812
2014-11-10auto merge of #18857 : brson/rust/winescapefixes, r=alexcrichtonbors-2/+2
2014-11-10mk: Fix configuration of version commit informationBrian Anderson-1/+1
Commit bec2ee77f78b4bb8a503101091272a634a273a1c started quoting paths discovered as part of the `probe` function, which includes git. The `make` `wildcard` function appears to be incompatible with quoted paths so this check in the makefile now fails. Employing `wildcard` here appears to only re-verify that git actually exists, which the configure script already did, so I've just removed it. Additionally, with the quoted paths the `subst` function should no longer be needed, so I've removed it as well. Closes #18771
2014-11-10note the intent of reforming task spawningDaniel Micay-1/+2
2014-11-10vim: move 'move' to rustStorageJosh Stone-2/+2
2014-11-10Attempt to fix the problem with failing distcheck.Vitali Haravy-1/+1
2014-11-10auto merge of #18287 : michaelsproul/rust/triemap-collection-views, r=bstriebors-102/+589
I've implemented the new collection views API for TrieMap. I more or less followed the approach set out by @Gankro in BTreeMap, by using a `SearchStack`. There's quite a bit of unsafe code, but I've wrapped it safely where I think is appropriate. I've added tests to ensure everything works, and performance seems quite good. ``` test trie::bench_map::bench_find ... bench: 67879 ns/iter (+/- 4192) test trie::bench_map::bench_find_entry ... bench: 186814 ns/iter (+/- 18748) test trie::bench_map::bench_insert_large ... bench: 716612 ns/iter (+/- 160121) test trie::bench_map::bench_insert_large_entry ... bench: 851219 ns/iter (+/- 20331) test trie::bench_map::bench_remove ... bench: 838856 ns/iter (+/- 27998) test trie::bench_map::bench_remove_entry ... bench: 981711 ns/iter (+/- 53046) ``` Using an entry is slow compared to a plain find, but is only ~15% slower for inserts and removes, which is where this API is most useful. I'm tempted to remove the standalone `remove` function in favour of an entry-based approach (to cut down on complexity). I've added some more comments to the general part of the code-base, which will hopefully help the next person looking over this. I moved the three key structures to the top of the file so that the nesting structure is clearly visible, and renamed `Child<T>` to `TrieNode<T>` and `TrieNode<T>` to `InternalNode<T>` to improve clarity. If these changes are creeping, I'm happy to revert them. Let me know if my use of `fail!` is ok, I was a little unsure of how specific to be. Some of the data-structures have various invariants that shouldn't be broken, so using `fail!` seemed appropriate. ## Still to do * Modernise iterators (make them double-ended). * Make the keys generic, or rename this data-structure (see: https://github.com/rust-lang/rust/issues/14902). * Possibly move this code out of libcollections. [Searching Github for TrieMap turns up very few real results.][triemap-search] Related issues: https://github.com/rust-lang/rust/issues/18009 and https://github.com/rust-lang/rust/issues/17320 [triemap-search]: https://github.com/search?utf8=%E2%9C%93&q=TrieMap+language%3ARust&type=Code&ref=searchresults
2014-11-10Implement collection views API for TrieMap.Michael Sproul-102/+589
2014-11-10Fix 'renamed lint' warningsMichael Gehring-3/+3
2014-11-10auto merge of #18802 : bkoropoff/rust/issue-18769, r=luqmanabors-3/+13
Drill down the loan path for `McDeclared` references as well since it might lead to an upvar. Closes #18769
2014-11-10auto merge of #18795 : haberman/rust/master, r=cmrbors-1/+2
Previously Int inherited from PartialOrd (via Primitive) but not Ord. But integers have a total order, so inheriting from Ord is appropriate. Fixes #18776.
2014-11-10Document ast::Ty_Manish Goregaokar-2/+18
2014-11-10auto merge of #18792 : sfackler/rust/struct-variants, r=alexcrichtonbors-69/+94
We need a snapshot before the parser can be adjusted.
2014-11-10Rogue 'panic' -> 'fail' in guide.Jeff Parsons-1/+1
Should refer to handling panicking tasks like any other computation that may _fail_, not any other computation that may _panic_.
2014-11-10auto merge of #18782 : netvl/rust/update-vim-syntax, r=alexcrichtonbors-6/+6
`as` (already for a long time) and `move` (which was only added recently, AFAIK) are not marked as keywords in Vim syntax file, so they are not highlighted as keywords in Rust sources. This PR fixes this.
2014-11-10auto merge of #18781 : klutzy/rust/cross, r=cmrbors-2/+2
cc #12859
2014-11-10Use FnvHashMap instead of HashMap in rustcAriel Ben-Yehuda-289/+250
2014-11-09auto merge of #18780 : bkoropoff/rust/regionck-for-loop, r=eddybbors-2/+44
Use the mem-cat of the iterator element type rather than the iterator itself when processing the for loop pattern. Closes #17068 Closes #18767
2014-11-09auto merge of #18739 : vhbit/rust/issue-18574, r=alexcrichtonbors-11/+18
Fixes #18574
2014-11-09Added `move` keyword and renamed `fail` to `panic`Vladimir Matveev-6/+6
2014-11-09auto merge of #18762 : mdinger/rust/str_coerce, r=steveklbanikbors-2/+2
I had slight confusion when using this as a reference and was told it was imprecise. Most of the rewording was suggested by @huonw. cc @steveklabnik
2014-11-09Add Encodable and Decodable for VecMapColin Sherratt-1/+35
2014-11-09auto merge of #18756 : jbcrail/rust/add-enum-set-bitxor, r=alexcrichtonbors-1/+26
I implemented BitXor, and also added tests for BitAnd and BitXor. cc #18424
2014-11-09auto merge of #18755 : japaric/rust/ord, r=alexcrichtonbors-10/+56
Closes #18738 cc #15689 r? @alexcrichton cc @cmr
2014-11-09First stage of struct variant field visibility changesSteven Fackler-69/+94
We need a snapshot before the parser can be adjusted.
2014-11-09auto merge of #18748 : carols10cents/rust/prepend-to-append, r=alexcrichtonbors-1/+1
A most trivial documentation correction. The examples in the intro are all about adding to the end of the array, not the beginning, but this one line says "prepend". This isn't a very serious problem, it just made me a bit confused when I got to it.
2014-11-09auto merge of #18557 : aturon/rust/io-removal, r=alexcrichtonbors-3676/+3929
This PR includes a sequence of commits that gradually dismantles the `librustrt` `rtio` system -- the main trait previously used to abstract over green and native io. It also largely dismantles `libnative`, moving much of its code into `libstd` and refactoring as it does so. TL;DR: * Before this PR: `rustc hello.rs && wc -c hello` produces 715,996 * After this PR: `rustc hello.rs && wc -c hello` produces 368,100 That is, this PR reduces the footprint of hello world by ~50%. This is a major step toward #17325 (i.e. toward implementing the [runtime removal RFC](https://github.com/rust-lang/rfcs/pull/230).) What remains is to pull out the scheduling, synchronization and task infrastructure, and to remove `libgreen`. These will be done soon in a follow-up PR. Part of the work here is eliminating the `rtio` abstraction, which in many cases means bringing the implementation of io closer to the actual API presented in `std::io`. Another aspect of this PR is the creation of two new, *private* modules within `std` that implement io: * The `sys` module, which represents a platform-specific implementation of a number of low-level abstractions that are used directly within `std::io` and `std::os`. These "abstractions" are left largely the same as they were in `libnative` (except for the removal of `Arc` in file descriptors), but they are expected to evolve greatly over time. Organizationally, there are `sys/unix/` and `sys/windows/` directories which both implement the entire `sys` module hierarchy; this means that nearly all of the platform-specific code is isolated and you can get a handle on each platform in isolation. * The `sys_common` module, which is rooted at `sys/common`, and provides a few pieces of private, low-level, but cross-platform functionality. In the long term, the `sys` modules will provide hooks for exposing high-level platform-specific APIs as part of `libstd`. The first such API will be access to file descriptors from `std::io` abstractions, but a bit of design work remains before that step can be taken. The `sys_common` module includes some traits (like `AsFileDesc`) which allow communication of private details between modules in disparate locations in the hierarchy; this helps overcome the relatively simple hierarchical privacy system in Rust. To emphasize: the organization in `sys` is *very preliminary* and the main goal was to migrate away from `rtio` as quickly and simply as possible. The design will certainly evolve over time, and all of the details are currently private. Along the way, this PR also entirely removes signal handling, since it was only supported on `librustuv` which was removed a while ago. Because of the removal of APIs from `libnative` and `librustrt`, and the removal of signal handling, this is a: [breaking-change] Some of these APIs will return in public from from `std` over time. r? @alexcrichton
2014-11-08Update test to cover #18769Brian Koropoff-1/+11
2014-11-08Fix upvars sometimes not being marked as used mutablyBrian Koropoff-2/+2
Drill down the loan path for McDeclared references as well since it might lead to an upvar. Closes #18769
2014-11-08Ignore sepcomp-lib-lto on android due to linker weirdnessAaron Turon-0/+1
2014-11-08Remove somewhat bogus process-spawn-errno test (non-mac, non-windows only)Aaron Turon-95/+0
2014-11-08Runtime removal: fully remove rtioAaron Turon-276/+11
This patch cleans up the remnants of the runtime IO interface. Because this eliminates APIs in `libnative` and `librustrt`, it is a: [breaking-change] This functionality is likely to be available publicly, in some form, from `std` in the future.
2014-11-08Runtime removal: refactor ttyAaron Turon-96/+112
This patch continues runtime removal by moving the tty implementations into `sys`. Because this eliminates APIs in `libnative` and `librustrt`, it is a: [breaking-change] This functionality is likely to be available publicly, in some form, from `std` in the future.
2014-11-08Runtime removal: refactor timerAaron Turon-83/+60
This patch continues runtime removal by moving out timer-related code into `sys`. Because this eliminates APIs in `libnative` and `librustrt`, it is a: [breaking-change] This functionality is likely to be available publicly, in some form, from `std` in the future.
2014-11-08Runtime removal: refactor processAaron Turon-176/+1250
This patch continues the runtime removal by moving and refactoring the process implementation into the new `sys` module. Because this eliminates APIs in `libnative` and `librustrt`, it is a: [breaking-change] This functionality is likely to be available publicly, in some form, from `std` in the future.