summary refs log tree commit diff
path: root/src/librustc
AgeCommit message (Collapse)AuthorLines
2014-03-31Bump version to 0.10Alex Crichton-2/+2
2014-03-31vec: convert `append` and `append_one` to methodsDaniel Micay-126/+61
These were only free functions on `~[T]` because taking self by-value used to be broken.
2014-03-30Removed deprecated functions `map` and `flat_map` for vectors and slices.Marvin Löbel-115/+140
2014-03-29auto merge of #13200 : sfackler/rust/test-attr, r=cmrbors-3/+3
2014-03-29Use new inner attribute syntax in test frameworkSteven Fackler-3/+3
2014-03-29auto merge of #13183 : erickt/rust/remove-list, r=alexcrichtonbors-2/+1
`collections::list::List` was decided in a [team meeting](https://github.com/mozilla/rust/wiki/Meeting-weekly-2014-03-25) that it was unnecessary, so this PR removes it. Additionally, it removes an old and redundant purity test and fixes some warnings.
2014-03-29auto merge of #13143 : gentlefolk/rust/issue-9227, r=michaelwoeristerbors-7/+87
Only supports crate level statics. No debug info is generated for function level statics. Closes #9227. As discussed at the end of the comments for #9227, I took an initial stab at adding support for function level statics and decided it would be enough work to warrant being split into a separate issue. See #13144 for the new issue describing the need to add support for function level static variables.
2014-03-29auto merge of #13188 : FlaPer87/rust/master, r=alexcrichtonbors-212/+137
2014-03-28auto merge of #13170 : eddyb/rust/syntax-cleanup, r=alexcrichtonbors-40/+43
Removes all Cell's/RefCell's from lexer::Reader implementations and a couple @.
2014-03-28auto merge of #13157 : pnkfelix/rust/fsk-iss13140, r=nikomatsakisbors-3/+7
r? @nikomatsakis Fix #13140 Includes two fixes, and a semi-thorough regression test. (There is another set of tests that I linked from #5121, but those are sort of all over the place, while the ones I've included here are more directly focused on the issues at hand.)
2014-03-29Register new snapshotFlavio Percoco-212/+137
2014-03-28Convert most code to new inner attribute syntax.Brian Anderson-53/+53
Closes #2569
2014-03-28De-@ IdentInterner.Eduard Burtescu-40/+43
2014-03-28collections: remove ListErick Tryzelaar-2/+1
It was decided in a meeting that this module wasn't needed, and more thought should be put into a persistent collections library.
2014-03-28Rename Pod into CopyFlavio Percoco-15/+15
Summary: So far, we've used the term POD "Plain Old Data" to refer to types that can be safely copied. However, this term is not consistent with the other built-in bounds that use verbs instead. This patch renames the Pod kind into Copy. RFC: 0003-opt-in-builtin-traits Test Plan: make check Reviewers: cmr Differential Revision: http://phabricator.octayn.net/D3
2014-03-28auto merge of #13107 : seanmonstar/rust/encoder-errors, r=ericktbors-236/+330
All of Decoder and Encoder's methods now return a Result. Encodable.encode() and Decodable.decode() return a Result as well. fixes #12292
2014-03-27auto merge of #13108 : pongad/rust/lintraw, r=huonwbors-0/+42
Fixes #13032
2014-03-27Initial support for emitting DWARF for static vars.gentlefolk-7/+87
Only supports crate level statics. No debug info is generated for function level statics. Closes #9227.
2014-03-27serialize: use ResultSean McArthur-236/+330
All of Decoder and Encoder's methods now return a Result. Encodable.encode() and Decodable.decode() return a Result as well. fixes #12292
2014-03-27auto merge of #13050 : alexcrichton/rust/no-send-default, r=huonwbors-9/+6
See #10296 for the rationale, and commits for the implementation.
2014-03-27auto merge of #13151 : brson/rust/dist, r=alexcrichton,brsonbors-18/+47
A variety of stuff here, mostly aimed at making `make install` work correctly with `--libdir` and `--mandir`. `make install` again goes through `install.sh`.
2014-03-27Fix fallout of removing default boundsAlex Crichton-3/+3
This is all purely fallout of getting the previous commit to compile.
2014-03-27rustc: Stop adding the Send bound implicitlyAlex Crichton-6/+3
This commit removes implicitly adding the Send bound to ~Trait objects and procedure types. It will now be manually required to specify that a procedure or trait must be send-able. Closes #10296
2014-03-27auto merge of #13001 : cmr/rust/unnamed-lifetime-nocapture, r=nikomatsakisbors-3/+49
Closes #6751
2014-03-27Address reviewCorey Richardson-9/+9
2014-03-27rustc: mark references w/anonymous lifetime nocaptureCorey Richardson-3/+49
Closes #6751
2014-03-27_match.rs: prune sub-match tree too aggressivelyEdward Wang-41/+81
The `_match.rs` takes advantage of passes prior to `trans` and aggressively prunes the sub-match tree based on exact equality. When it comes to literal or range, the strategy may lead to wrong result if there's guard function or multiple patterns inside tuple. Closes #12582. Closes #13027.
2014-03-27Added lint for #[deriving] structs and enums with unsafe pointers. #13032.Michael Darakananda-0/+42
2014-03-26rustc: Fix tests for sysroot changesBrian Anderson-2/+2
2014-03-26rustc: Fix detection of lib64 directoryBrian Anderson-1/+1
Instead of just looking for its presence we need to see if it actually contains rust stuffs.
2014-03-26auto merge of #13145 : alexcrichton/rust/flip-some-defaults, r=brsonbors-16/+12
This change prepares `rustc` to accept private fields by default. These changes will have to go through a snapshot before the rest of the changes can happen.
2014-03-26auto merge of #13071 : ktt3ja/rust/deterministic-lifetime-suggestion, r=cmrbors-3/+29
Close #13057
2014-03-26syntax: Permit visibility on tuple fieldsAlex Crichton-12/+12
This change is in preparation for #8122. Nothing is currently done with these visibility qualifiers, they are just parsed and accepted by the compiler. RFC: 0004-private-fields
2014-03-26rustc: Relax restriction on privacy for fieldsAlex Crichton-4/+0
This is a necessary change in preparation for switching the defaults as part of #8122. RFC: 0004-private-fields
2014-03-26Fix Repr impl for method::Candidate to include the method_ty.Felix S. Klock II-1/+2
2014-03-26Fix #13140: Early/Late Bound related ICEs.Felix S. Klock II-2/+5
The problem was that we need to apply the substitution, so that the formal lifetime parameters get replaced with (unifiable) free-lifetimes that can actually be fed into the constraint solver. Also, refactor code os that substitution for `check_item` and `check_method`, moving both down the control flow into `check_bare_fn`. ---- Finally, there was another (similar) spot where we needed to substitute early-bound lifetimes when invoking an object method of a trait.
2014-03-26auto merge of #13117 : alexcrichton/rust/no-crate-map, r=brsonbors-115/+2
This can be done now that logging has been moved out and libnative is the default (not libgreen)
2014-03-25install: Support --libdir and --mandir correctlyBrian Anderson-17/+40
This adds a hack to rustc to make it find the library directory regardless of whether it is named lib/lib64/lib32.
2014-03-25mk: Rename CFG_COMPILER to CFG_COMPILER_HOST_TRIPLEBrian Anderson-1/+1
Much clearer
2014-03-25rustc: Stop relying on CFG_LIBDIR_RELATIVEBrian Anderson-1/+7
This is not sufficient for finding the library directory for binary installs, but it does make the build more complex by requiring env vars be set to build rustc.
2014-03-25configure: Make rustlibdir non-configurableBrian Anderson-1/+1
Trying to reduce the complexity of installation
2014-03-25Changed `iter::Extendable` and `iter::FromIterator` to take a `Iterator` by ↵Marvin Löbel-8/+8
value
2014-03-25auto merge of #13122 : sstewartgallus/rust/cleanup-10734-workarounds, ↵bors-1/+1
r=alexcrichton Cleanup old issue references. One of these workarounds no longer need to be used anymore and the others are out of date.
2014-03-25auto merge of #13083 : FlaPer87/rust/issue-13005-borrow-unsafe-static, ↵bors-74/+93
r=nikomatsakis It was possible to borrow unsafe static items in static initializers. This patch implements a small `Visitor` that walks static initializer's expressions and checks borrows aliasability. Fixes #13005 cc @nikomatsakis r?
2014-03-24Cleanup fixed issue #10734 workaroundSteven Stewart-Gallus-1/+1
2014-03-24Prefer lifetime suggestion over generic errorKiet Tran-3/+29
2014-03-24rustc: Remove all crate map supportAlex Crichton-115/+2
The crate map is no longer necessary now that logging and event loop factories have been moved out. Closes #11617 Closes #11731
2014-03-24rustc: Completely forbid borrows of unsafe staticsFlavio Percoco-74/+93
Summary: It was possible to borrow unsafe static items in static initializers. This patch implements a small `Visitor` that walks static initializer's expressions and checks borrows aliasability. Fixes #13005 Test Plan: make check Differential Revision: http://phabricator.octayn.net/D2
2014-03-23auto merge of #13074 : pczarn/rust/build-rlib, r=alexcrichtonbors-5/+7
Fixes #12992 I tried to increase the number of deflate's probes. Reduction of 0.5% or 2% is not enough.
2014-03-23auto merge of #13099 : FlaPer87/rust/master, r=huonwbors-1/+0