]>
git.lizzy.rs Git - rust.git/log
Luqman Aden [Mon, 25 Feb 2013 04:44:01 +0000 (20:44 -0800)]
Move levenshtein distance fn to core::str.
Luqman Aden [Sat, 23 Feb 2013 08:22:51 +0000 (00:22 -0800)]
librustc: offer suggestions for unresolved names.
bors [Tue, 26 Feb 2013 23:45:43 +0000 (15:45 -0800)]
auto merge of #5104 : alexcrichton/rust/fix-unused-import-pub, r=catamorphism
The first commit fixes warnings about `pub use` imports because it can't be known whether those are actually used or not.
The second commit fixes using `#[level(unused_imports)]` style control over the emission of warnings. Before it looked like it only worked as a command-line flag.
Alex Crichton [Tue, 26 Feb 2013 06:23:36 +0000 (01:23 -0500)]
Fix unused imports in the tutorials
Alex Crichton [Mon, 25 Feb 2013 17:12:22 +0000 (12:12 -0500)]
Fix using the #[]-style attribute for unused imports
Alex Crichton [Mon, 25 Feb 2013 16:37:17 +0000 (11:37 -0500)]
Don't warn about 'pub use' statements
bors [Tue, 26 Feb 2013 22:03:52 +0000 (14:03 -0800)]
auto merge of #5023 : mitsuhiko/rust/make-absolute-refactor, r=catamorphism
This pull request moves the logic from os::make_absolute() into the path module and fixes path joining for Windows. It does this by adding an ``unsafe_join()`` function that implements the operating system's path joining semantics.
Additionally it also adds an ``is_restricted()`` method to the trait which will return true if the path points to a windows device file.
bors [Tue, 26 Feb 2013 21:15:51 +0000 (13:15 -0800)]
auto merge of #5126 : nikomatsakis/rust/issue-4808-representation-of-extern-fn, r=graydon
r? @graydon
Niko Matsakis [Tue, 26 Feb 2013 18:23:18 +0000 (13:23 -0500)]
Reimplement type_needs_drop on top of TypeContents
bors [Tue, 26 Feb 2013 18:54:39 +0000 (10:54 -0800)]
auto merge of #5119 : Kimundi/rust/incoming, r=catamorphism
Removed deprecated `str()` functions in int-template.rs and uint-template.rs
bors [Tue, 26 Feb 2013 18:06:45 +0000 (10:06 -0800)]
auto merge of #5110 : pcwalton/rust/and-const, r=pcwalton
r? @brson
Patrick Walton [Tue, 26 Feb 2013 18:02:36 +0000 (10:02 -0800)]
doc: Remove references to mut fields. rs=demuting
Patrick Walton [Tue, 26 Feb 2013 15:10:23 +0000 (07:10 -0800)]
bench: Fix botched option dances. rs=demuting
Marvin Löbel [Tue, 26 Feb 2013 15:36:59 +0000 (16:36 +0100)]
Removed deprecated `str()` functions in int-template.rs and uint-template.rs
Patrick Walton [Tue, 26 Feb 2013 02:15:38 +0000 (18:15 -0800)]
librustc: Make `&const [T]` mean the same thing as `&[const T]`
Patrick Walton [Tue, 26 Feb 2013 01:28:40 +0000 (17:28 -0800)]
test: De-[mut] (remove all mutable arrays from) the tests. rs=demuting
Patrick Walton [Tue, 26 Feb 2013 01:03:31 +0000 (17:03 -0800)]
librustc: De-[mut] librustc (remove all mutable arrays). rs=demuting
Patrick Walton [Mon, 25 Feb 2013 23:54:13 +0000 (15:54 -0800)]
libsyntax: Stop parsing `~mut`
Patrick Walton [Mon, 25 Feb 2013 22:04:32 +0000 (14:04 -0800)]
test: De-~mut the test suite. rs=demuting
Patrick Walton [Mon, 25 Feb 2013 21:23:16 +0000 (13:23 -0800)]
libcore: Move Cell to core and de-~mut core and std
Patrick Walton [Mon, 25 Feb 2013 19:34:16 +0000 (11:34 -0800)]
librustc: Implement a lint mode for mutable structures; deny by default. r=tjc
Patrick Walton [Tue, 26 Feb 2013 12:01:35 +0000 (04:01 -0800)]
libsyntax: Remove a mutable field from the tests. rs=demuting
bors [Tue, 26 Feb 2013 08:21:38 +0000 (00:21 -0800)]
auto merge of #5111 : catamorphism/rust/authors, r=catamorphism
bors [Tue, 26 Feb 2013 07:30:38 +0000 (23:30 -0800)]
auto merge of #5109 : bstrie/rust/decapclause, r=pcwalton
I also deleted a test that would be entirely useless without capture clauses.
bors [Tue, 26 Feb 2013 04:24:40 +0000 (20:24 -0800)]
auto merge of #5103 : dbaupp/rust/emacs-mode-update, r=graydon
Copy the keyword list from rust.vim, and add `self` so that it is highlighted
(being liberal with the correct categories).
I'm not quite willing to dive in to clean up the emacs code yet, but at least this gets a (more) modern syntax highlighting list.
Tim Chevalier [Tue, 26 Feb 2013 02:46:36 +0000 (18:46 -0800)]
Add Kang Seonghoon to AUTHORS
bors [Tue, 26 Feb 2013 02:36:39 +0000 (18:36 -0800)]
auto merge of #5089 : sanxiyn/rust/llvm-struct, r=pcwalton
Note on `struct_elt`: the comment is wrong, it actually dereferences the nth element of LLVM struct type if it is a pointer. That's why `T_ptr` is removed in `callee.rs`.
bors [Tue, 26 Feb 2013 01:36:40 +0000 (17:36 -0800)]
auto merge of #5084 : oncemoreification/rust/issue-4517, r=brson
Patch for #4517
This works for fixed vectors, but I am unclear how slices should be printed, simply '&[...]' or...
e.i. How should regions be printed?
Ben Striegel [Tue, 26 Feb 2013 00:49:28 +0000 (19:49 -0500)]
Stop parsing capture clauses
bors [Tue, 26 Feb 2013 00:18:46 +0000 (16:18 -0800)]
auto merge of #5072 : youknowone/rust/repeat_count, r=brson
Fix issue #3645
bors [Mon, 25 Feb 2013 23:18:45 +0000 (15:18 -0800)]
auto merge of #5095 : thestinger/rust/smallintmap, r=catamorphism
Closes #4738.
The `std::smallintmap` module doesn't use an implicit @ box so I just added that explicitly for now to make porting simple.
Patrick Walton [Mon, 25 Feb 2013 23:16:36 +0000 (15:16 -0800)]
Revert "test: De-~mut the test suite. rs=demuting"
This reverts commit
f63efdc2100ff28e2a42600641835e7bd8bde591 .
Patrick Walton [Mon, 25 Feb 2013 22:04:32 +0000 (14:04 -0800)]
test: De-~mut the test suite. rs=demuting
Patrick Walton [Mon, 25 Feb 2013 23:14:33 +0000 (15:14 -0800)]
test: Residual de-muting of the test suite. rs=demuting
Patrick Walton [Mon, 25 Feb 2013 18:42:51 +0000 (10:42 -0800)]
etc: Add a suppression for more enum instruction scheduling botches. rs=burningtree
Huon Wilson [Mon, 25 Feb 2013 12:35:48 +0000 (23:35 +1100)]
Emacs: Update emacs mode to be more similar to the vim mode.
Copy the keyword list, and add `self` so that it is somewhat highlighted
(being liberal with the correct categories).
Patrick Walton [Sun, 24 Feb 2013 18:57:16 +0000 (10:57 -0800)]
test: xfail-pretty some benchmarks. rs=burningtree
Jeong YunWon [Thu, 21 Feb 2013 13:48:05 +0000 (22:48 +0900)]
Report error for non constant vector repeat count
Fix issue #3645
Patrick Walton [Sun, 24 Feb 2013 07:33:50 +0000 (23:33 -0800)]
test: Fix comments in pretty-printed test. rs=burningtree
oncemoreification [Sun, 24 Feb 2013 05:46:36 +0000 (21:46 -0800)]
Fix slice printing
Daniel Micay [Sat, 23 Feb 2013 05:37:37 +0000 (00:37 -0500)]
remove oldsmallintmap
Closes #4738
Patrick Walton [Sat, 23 Feb 2013 00:08:16 +0000 (16:08 -0800)]
test: De-mut the test suite. rs=demuting
Patrick Walton [Fri, 22 Feb 2013 02:41:33 +0000 (18:41 -0800)]
librustpkg: De-mut librustdoc and librustpkg. rs=demuting
Patrick Walton [Fri, 22 Feb 2013 02:31:16 +0000 (18:31 -0800)]
etc: Suppress the remaining Valgrind error in rustdoc. rs=burningtree
Patrick Walton [Fri, 22 Feb 2013 02:27:24 +0000 (18:27 -0800)]
libsyntax: Remove all mutable fields from libsyntax. rs=demuting
Patrick Walton [Fri, 22 Feb 2013 02:12:13 +0000 (18:12 -0800)]
libsyntax: De-mut the parser. rs=demuting
Patrick Walton [Fri, 22 Feb 2013 00:17:23 +0000 (16:17 -0800)]
libsyntax: De-mut the macro parser. rs=demuting
Patrick Walton [Fri, 22 Feb 2013 00:13:07 +0000 (16:13 -0800)]
libsyntax: De-mut the pipe compiler
bors [Fri, 22 Feb 2013 23:09:36 +0000 (15:09 -0800)]
auto merge of #5092 : brson/rust/legacy, r=brson
Brian Anderson [Fri, 22 Feb 2013 03:10:33 +0000 (19:10 -0800)]
Remove legacy_modes from test cases
bors [Fri, 22 Feb 2013 21:39:34 +0000 (13:39 -0800)]
auto merge of #5078 : bblum/rust/incoming, r=brson
r? @brson
bors [Fri, 22 Feb 2013 19:24:38 +0000 (11:24 -0800)]
auto merge of #5081 : brson/rust/pipes, r=pcwalton
r?
bors [Fri, 22 Feb 2013 18:24:43 +0000 (10:24 -0800)]
auto merge of #5051 : bstrie/rust/deimpself, r=pcwalton
With the exception of three places where explicit self ran into borrowing errors. Will try those again once borrowing is refined.
bors [Fri, 22 Feb 2013 16:39:41 +0000 (08:39 -0800)]
auto merge of #5083 : graydon/rust/gc, r=graydon
r? @pcwalton
Local testing shows it's correctly putting things like ~(@10) in the managed heap. Not entirely sure how to turn such tests (which just log annihilation stats) into a regression test; we don't have much in the way of feedback from the annihilator. Open to suggestions. I will want to be keeping more detailed runtime stats on the gc as I proceed.
Seo Sanghyeon [Fri, 22 Feb 2013 16:25:10 +0000 (01:25 +0900)]
Consolidate codes dealing with LLVM struct type
oncemoreification [Tue, 19 Feb 2013 07:55:37 +0000 (23:55 -0800)]
Fix vector syntax in error messages
Graydon Hoare [Wed, 20 Feb 2013 23:02:21 +0000 (15:02 -0800)]
Put unique allocs in managed heap when they might contain managed boxes.
Ben Striegel [Fri, 22 Feb 2013 06:41:37 +0000 (01:41 -0500)]
De-implicit-self librustc
bors [Fri, 22 Feb 2013 03:36:35 +0000 (19:36 -0800)]
auto merge of #5077 : jbclements/rust/increase-monomorphization-depth-limit, r=catamorphism
It appears that using deriving_eq/auto_encode on ASTs bumps up against the "gee this looks like infinite unfolding" limit of 10 in monomorphization. Increasing it to 30 seems to solve this problem for me....
Also, commenting and a few renames.
bors [Fri, 22 Feb 2013 02:27:32 +0000 (18:27 -0800)]
auto merge of #5076 : pcwalton/rust/demuting, r=pcwalton
Brian Anderson [Sat, 2 Feb 2013 11:10:12 +0000 (03:10 -0800)]
core: Extract comm from pipes. #4742
bors [Fri, 22 Feb 2013 01:30:32 +0000 (17:30 -0800)]
auto merge of #5075 : luqmana/rust/derec, r=catamorphism
Now only `lib core/pipes.rs` has `#[allow(structural_records)]`. That can be removed after a snapshot.
bors [Fri, 22 Feb 2013 00:42:35 +0000 (16:42 -0800)]
auto merge of #5059 : Kimundi/rust/incoming, r=catamorphism
compiles-as-is, but needs a snapshot to remove the `stage0`ed extfmt export in core.
Closes #4750
Ben Blum [Fri, 22 Feb 2013 00:42:18 +0000 (19:42 -0500)]
Fix private::exclusive_unwrap_conflict test. Fixes #4689.
Luqman Aden [Fri, 22 Feb 2013 00:40:52 +0000 (16:40 -0800)]
librustc: Fix broken test.
John Clements [Thu, 14 Feb 2013 23:08:25 +0000 (15:08 -0800)]
bump up limit on monomorphization
John Clements [Mon, 11 Feb 2013 21:36:24 +0000 (13:36 -0800)]
Cleanup, commenting, trivial renaming
Patrick Walton [Thu, 21 Feb 2013 23:44:03 +0000 (15:44 -0800)]
librustc: Remove all mutable fields from librustc. rs=demuting
Patrick Walton [Thu, 21 Feb 2013 23:30:24 +0000 (15:30 -0800)]
librustc: De-mut trans. rs=demuting
Patrick Walton [Thu, 21 Feb 2013 19:57:20 +0000 (11:57 -0800)]
librustc: De-mut some of trans
Patrick Walton [Thu, 21 Feb 2013 19:08:50 +0000 (11:08 -0800)]
librustc: De-mut resolve. rs=demuting
Luqman Aden [Thu, 21 Feb 2013 23:19:40 +0000 (15:19 -0800)]
Remove the last bits of structural records from tests/rustc/rusti/rustpkg.
bors [Thu, 21 Feb 2013 20:30:34 +0000 (12:30 -0800)]
auto merge of #5068 : sethpink/rust/derive-eq-tuple-struct, r=catamorphism
Previously an unimplemented error was thrown when using #[deriving_eq] on tuple-like struct definitions.
bors [Thu, 21 Feb 2013 17:20:43 +0000 (09:20 -0800)]
auto merge of #5071 : luqmana/rust/derec, r=pcwalton
Rid libsyntax of records and get rid of the last piece in `librustc/front/test.rs`.
bors [Thu, 21 Feb 2013 16:35:12 +0000 (08:35 -0800)]
auto merge of #5069 : pcwalton/rust/plussing-2, r=pcwalton
Patrick Walton [Thu, 21 Feb 2013 02:04:57 +0000 (18:04 -0800)]
librustc: Separate the rest of the trait bounds with `+` and stop parsing space-separated ones. rs=plussing
Marvin Löbel [Wed, 20 Feb 2013 20:08:25 +0000 (21:08 +0100)]
Moved core::extfmt to core::private::extfmt
Needs a snapshot to remove stage0 extfmt export in core
Luqman Aden [Thu, 21 Feb 2013 08:16:31 +0000 (00:16 -0800)]
Get rid of structural records in libsyntax and the last bit in librustc.
bors [Thu, 21 Feb 2013 06:36:31 +0000 (22:36 -0800)]
auto merge of #5065 : catamorphism/rust/issue-3453, r=catamorphism
...because it appears to work now. Removes a FIXME.
Seth Pink [Thu, 21 Feb 2013 04:57:27 +0000 (14:57 +1000)]
Implement #[deriving_eq] on tuple like structs
bors [Thu, 21 Feb 2013 05:22:30 +0000 (21:22 -0800)]
auto merge of #5063 : pcwalton/rust/plussing, r=pcwalton
Patrick Walton [Thu, 21 Feb 2013 01:07:17 +0000 (17:07 -0800)]
librustc: Separate most trait bounds with '+'. rs=plussing
bors [Thu, 21 Feb 2013 04:26:32 +0000 (20:26 -0800)]
auto merge of #5058 : Thiez/rust/incoming, r=catamorphism
I've moved all intrinsics in a single file (libcore/private/intrinsics.rs) and changed a few files to make use of this file (e.g. vec.rs: move_val_init).
Two intrinsics have been commented out:
visit_tydesc: it uses TyDesc and TyVisitor, this would create a dependency on librustc which seems undesirable.
frame_address: I really had no idea what it should look like without the legacy modes (would it even work? In several places in libcore the (legacy-modes) intrinsics were wrapped
with a normal fn) and what it was supposed to do.
Some documentation is still required, but many names are fairly self-explanatory.
bors [Thu, 21 Feb 2013 03:16:33 +0000 (19:16 -0800)]
auto merge of #5066 : catamorphism/rust/luqmana-derecording, r=catamorphism
Most work done by @luqmana and @pcwalton - I just rebased.
Tim Chevalier [Thu, 21 Feb 2013 02:48:05 +0000 (18:48 -0800)]
Merge
Tim Chevalier [Thu, 21 Feb 2013 02:03:43 +0000 (18:03 -0800)]
Fix vdef pattern
Tim Chevalier [Thu, 21 Feb 2013 00:42:44 +0000 (16:42 -0800)]
Fix flipped tuple that was causing all that pain
Tim Chevalier [Thu, 21 Feb 2013 00:41:21 +0000 (16:41 -0800)]
Merge
Luqman Aden [Tue, 19 Feb 2013 08:14:56 +0000 (00:14 -0800)]
librustc: tidy
Luqman Aden [Tue, 19 Feb 2013 08:01:03 +0000 (00:01 -0800)]
Fix fallout in rusti & rustpkg.
Luqman Aden [Tue, 19 Feb 2013 07:40:42 +0000 (02:40 -0500)]
librustc: Get rid of structural records save for front/test.rs.
bors [Thu, 21 Feb 2013 02:14:34 +0000 (18:14 -0800)]
auto merge of #5049 : bstrie/rust/vim, r=catamorphism
1. Highlight new lifetime syntax
2. Visually distinguish `unsafe` keyword
3. Add a new file that highlights column 78, to warn when lines get too long
Tim Chevalier [Thu, 21 Feb 2013 01:46:01 +0000 (17:46 -0800)]
rustc: Use position method in check::method
...because it appears to work now. Removes a FIXME.
bors [Thu, 21 Feb 2013 00:58:34 +0000 (16:58 -0800)]
auto merge of #5043 : brson/rust/swap, r=brson
r?
Brian Anderson [Wed, 20 Feb 2013 00:12:12 +0000 (16:12 -0800)]
Don't perform swap when src == dst. #5041
bors [Thu, 21 Feb 2013 00:08:36 +0000 (16:08 -0800)]
auto merge of #5046 : sanxiyn/rust/struct-match, r=catamorphism
Previously check always succeeded because struct type was derived from the matched expression, not the matched pattern.
Fix #4849.
Patrick Walton [Thu, 21 Feb 2013 00:03:47 +0000 (16:03 -0800)]
etc: Suppress the enum variant instruction scheduling Valgrind issues. rs=#rust
Matthijs 'Thiez' Hofstra [Wed, 20 Feb 2013 19:41:24 +0000 (20:41 +0100)]
Changed a test to use intrinsics.rs and changed a few lines that were too long, had bad whitespace, etc.
Matthijs 'Thiez' Hofstra [Wed, 20 Feb 2013 16:57:15 +0000 (17:57 +0100)]
Created libcore/private/intrinsics.rs, which aims to contain every
rustc intrinsic. Several files in libcore have been changed to use
these intrinsics.
As of yet, none of the intrinsics are documented.
Ben Striegel [Wed, 20 Feb 2013 04:07:09 +0000 (23:07 -0500)]
vim improvements
1. Highlight new lifetime syntax
2. Visually distinguish `unsafe` keyword
3. Add a new file that highlights column 78, to warn when lines get too long