]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agoMove levenshtein distance fn to core::str.
Luqman Aden [Mon, 25 Feb 2013 04:44:01 +0000 (20:44 -0800)]
Move levenshtein distance fn to core::str.

11 years agolibrustc: offer suggestions for unresolved names.
Luqman Aden [Sat, 23 Feb 2013 08:22:51 +0000 (00:22 -0800)]
librustc: offer suggestions for unresolved names.

11 years agoauto merge of #5104 : alexcrichton/rust/fix-unused-import-pub, r=catamorphism
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.

11 years agoFix unused imports in the tutorials
Alex Crichton [Tue, 26 Feb 2013 06:23:36 +0000 (01:23 -0500)]
Fix unused imports in the tutorials

11 years agoFix using the #[]-style attribute for unused imports
Alex Crichton [Mon, 25 Feb 2013 17:12:22 +0000 (12:12 -0500)]
Fix using the #[]-style attribute for unused imports

11 years agoDon't warn about 'pub use' statements
Alex Crichton [Mon, 25 Feb 2013 16:37:17 +0000 (11:37 -0500)]
Don't warn about 'pub use' statements

11 years agoauto merge of #5023 : mitsuhiko/rust/make-absolute-refactor, r=catamorphism
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.

11 years agoauto merge of #5126 : nikomatsakis/rust/issue-4808-representation-of-extern-fn, r...
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

11 years agoReimplement type_needs_drop on top of TypeContents
Niko Matsakis [Tue, 26 Feb 2013 18:23:18 +0000 (13:23 -0500)]
Reimplement type_needs_drop on top of TypeContents

11 years agoauto merge of #5119 : Kimundi/rust/incoming, r=catamorphism
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

11 years agoauto merge of #5110 : pcwalton/rust/and-const, r=pcwalton
bors [Tue, 26 Feb 2013 18:06:45 +0000 (10:06 -0800)]
auto merge of #5110 : pcwalton/rust/and-const, r=pcwalton

r? @brson

11 years agodoc: Remove references to mut fields. rs=demuting
Patrick Walton [Tue, 26 Feb 2013 18:02:36 +0000 (10:02 -0800)]
doc: Remove references to mut fields. rs=demuting

11 years agobench: Fix botched option dances. rs=demuting
Patrick Walton [Tue, 26 Feb 2013 15:10:23 +0000 (07:10 -0800)]
bench: Fix botched option dances. rs=demuting

11 years agoRemoved deprecated `str()` functions in int-template.rs and uint-template.rs
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

11 years agolibrustc: Make `&const [T]` mean the same thing as `&[const T]`
Patrick Walton [Tue, 26 Feb 2013 02:15:38 +0000 (18:15 -0800)]
librustc: Make `&const [T]` mean the same thing as `&[const T]`

11 years agotest: De-[mut] (remove all mutable arrays from) the tests. rs=demuting
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

11 years agolibrustc: De-[mut] librustc (remove all mutable arrays). 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

11 years agolibsyntax: Stop parsing `~mut`
Patrick Walton [Mon, 25 Feb 2013 23:54:13 +0000 (15:54 -0800)]
libsyntax: Stop parsing `~mut`

11 years agotest: De-~mut the test suite. rs=demuting
Patrick Walton [Mon, 25 Feb 2013 22:04:32 +0000 (14:04 -0800)]
test: De-~mut the test suite. rs=demuting

11 years agolibcore: Move Cell to core and de-~mut core and std
Patrick Walton [Mon, 25 Feb 2013 21:23:16 +0000 (13:23 -0800)]
libcore: Move Cell to core and de-~mut core and std

11 years agolibrustc: Implement a lint mode for mutable structures; deny by default. r=tjc
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

11 years agolibsyntax: Remove a mutable field from the tests. rs=demuting
Patrick Walton [Tue, 26 Feb 2013 12:01:35 +0000 (04:01 -0800)]
libsyntax: Remove a mutable field from the tests. rs=demuting

11 years agoauto merge of #5111 : catamorphism/rust/authors, r=catamorphism
bors [Tue, 26 Feb 2013 08:21:38 +0000 (00:21 -0800)]
auto merge of #5111 : catamorphism/rust/authors, r=catamorphism

11 years agoauto merge of #5109 : bstrie/rust/decapclause, r=pcwalton
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.

11 years agoauto merge of #5103 : dbaupp/rust/emacs-mode-update, r=graydon
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.

11 years agoAdd Kang Seonghoon to AUTHORS
Tim Chevalier [Tue, 26 Feb 2013 02:46:36 +0000 (18:46 -0800)]
Add Kang Seonghoon to AUTHORS

11 years agoauto merge of #5089 : sanxiyn/rust/llvm-struct, r=pcwalton
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`.

11 years agoauto merge of #5084 : oncemoreification/rust/issue-4517, r=brson
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?

11 years agoStop parsing capture clauses
Ben Striegel [Tue, 26 Feb 2013 00:49:28 +0000 (19:49 -0500)]
Stop parsing capture clauses

11 years agoauto merge of #5072 : youknowone/rust/repeat_count, r=brson
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

11 years agoauto merge of #5095 : thestinger/rust/smallintmap, r=catamorphism
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.

11 years agoRevert "test: De-~mut the test suite. rs=demuting"
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.

11 years agotest: De-~mut the test suite. rs=demuting
Patrick Walton [Mon, 25 Feb 2013 22:04:32 +0000 (14:04 -0800)]
test: De-~mut the test suite. rs=demuting

11 years agotest: Residual de-muting of 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

11 years agoetc: Add a suppression for more enum instruction scheduling botches. rs=burningtree
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

11 years agoEmacs: Update emacs mode to be more similar to the vim mode.
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).

11 years agotest: xfail-pretty some benchmarks. rs=burningtree
Patrick Walton [Sun, 24 Feb 2013 18:57:16 +0000 (10:57 -0800)]
test: xfail-pretty some benchmarks. rs=burningtree

11 years agoReport error for non constant vector repeat count
Jeong YunWon [Thu, 21 Feb 2013 13:48:05 +0000 (22:48 +0900)]
Report error for non constant vector repeat count

Fix issue #3645

11 years agotest: Fix comments in pretty-printed test. rs=burningtree
Patrick Walton [Sun, 24 Feb 2013 07:33:50 +0000 (23:33 -0800)]
test: Fix comments in pretty-printed test. rs=burningtree

11 years agoFix slice printing
oncemoreification [Sun, 24 Feb 2013 05:46:36 +0000 (21:46 -0800)]
Fix slice printing

11 years agoremove oldsmallintmap
Daniel Micay [Sat, 23 Feb 2013 05:37:37 +0000 (00:37 -0500)]
remove oldsmallintmap

Closes #4738

11 years agotest: De-mut the test suite. rs=demuting
Patrick Walton [Sat, 23 Feb 2013 00:08:16 +0000 (16:08 -0800)]
test: De-mut the test suite. rs=demuting

11 years agolibrustpkg: De-mut librustdoc and librustpkg. rs=demuting
Patrick Walton [Fri, 22 Feb 2013 02:41:33 +0000 (18:41 -0800)]
librustpkg: De-mut librustdoc and librustpkg. rs=demuting

11 years agoetc: Suppress the remaining Valgrind error in rustdoc. rs=burningtree
Patrick Walton [Fri, 22 Feb 2013 02:31:16 +0000 (18:31 -0800)]
etc: Suppress the remaining Valgrind error in rustdoc. rs=burningtree

11 years agolibsyntax: Remove all mutable fields from libsyntax. rs=demuting
Patrick Walton [Fri, 22 Feb 2013 02:27:24 +0000 (18:27 -0800)]
libsyntax: Remove all mutable fields from libsyntax. rs=demuting

11 years agolibsyntax: De-mut the parser. rs=demuting
Patrick Walton [Fri, 22 Feb 2013 02:12:13 +0000 (18:12 -0800)]
libsyntax: De-mut the parser. rs=demuting

11 years agolibsyntax: De-mut the macro parser. rs=demuting
Patrick Walton [Fri, 22 Feb 2013 00:17:23 +0000 (16:17 -0800)]
libsyntax: De-mut the macro parser. rs=demuting

11 years agolibsyntax: De-mut the pipe compiler
Patrick Walton [Fri, 22 Feb 2013 00:13:07 +0000 (16:13 -0800)]
libsyntax: De-mut the pipe compiler

11 years agoauto merge of #5092 : brson/rust/legacy, r=brson
bors [Fri, 22 Feb 2013 23:09:36 +0000 (15:09 -0800)]
auto merge of #5092 : brson/rust/legacy, r=brson

11 years agoRemove legacy_modes from test cases
Brian Anderson [Fri, 22 Feb 2013 03:10:33 +0000 (19:10 -0800)]
Remove legacy_modes from test cases

11 years agoauto merge of #5078 : bblum/rust/incoming, r=brson
bors [Fri, 22 Feb 2013 21:39:34 +0000 (13:39 -0800)]
auto merge of #5078 : bblum/rust/incoming, r=brson

r? @brson

11 years agoauto merge of #5081 : brson/rust/pipes, r=pcwalton
bors [Fri, 22 Feb 2013 19:24:38 +0000 (11:24 -0800)]
auto merge of #5081 : brson/rust/pipes, r=pcwalton

r?

11 years agoauto merge of #5051 : bstrie/rust/deimpself, r=pcwalton
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.

11 years agoauto merge of #5083 : graydon/rust/gc, r=graydon
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.

11 years agoConsolidate codes dealing with LLVM struct type
Seo Sanghyeon [Fri, 22 Feb 2013 16:25:10 +0000 (01:25 +0900)]
Consolidate codes dealing with LLVM struct type

11 years agoFix vector syntax in error messages
oncemoreification [Tue, 19 Feb 2013 07:55:37 +0000 (23:55 -0800)]
Fix vector syntax in error messages

11 years agoPut unique allocs in managed heap when they might contain managed boxes.
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.

11 years agoDe-implicit-self librustc
Ben Striegel [Fri, 22 Feb 2013 06:41:37 +0000 (01:41 -0500)]
De-implicit-self librustc

11 years agoauto merge of #5077 : jbclements/rust/increase-monomorphization-depth-limit, r=catamo...
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.

11 years agoauto merge of #5076 : pcwalton/rust/demuting, r=pcwalton
bors [Fri, 22 Feb 2013 02:27:32 +0000 (18:27 -0800)]
auto merge of #5076 : pcwalton/rust/demuting, r=pcwalton

11 years agocore: Extract comm from pipes. #4742
Brian Anderson [Sat, 2 Feb 2013 11:10:12 +0000 (03:10 -0800)]
core: Extract comm from pipes. #4742

11 years agoauto merge of #5075 : luqmana/rust/derec, r=catamorphism
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.

11 years agoauto merge of #5059 : Kimundi/rust/incoming, r=catamorphism
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

11 years agoFix private::exclusive_unwrap_conflict test. Fixes #4689.
Ben Blum [Fri, 22 Feb 2013 00:42:18 +0000 (19:42 -0500)]
Fix private::exclusive_unwrap_conflict test. Fixes #4689.

11 years agolibrustc: Fix broken test.
Luqman Aden [Fri, 22 Feb 2013 00:40:52 +0000 (16:40 -0800)]
librustc: Fix broken test.

11 years agobump up limit on monomorphization
John Clements [Thu, 14 Feb 2013 23:08:25 +0000 (15:08 -0800)]
bump up limit on monomorphization

11 years agoCleanup, commenting, trivial renaming
John Clements [Mon, 11 Feb 2013 21:36:24 +0000 (13:36 -0800)]
Cleanup, commenting, trivial renaming

11 years agolibrustc: Remove all mutable fields from librustc. rs=demuting
Patrick Walton [Thu, 21 Feb 2013 23:44:03 +0000 (15:44 -0800)]
librustc: Remove all mutable fields from librustc. rs=demuting

11 years agolibrustc: De-mut trans. rs=demuting
Patrick Walton [Thu, 21 Feb 2013 23:30:24 +0000 (15:30 -0800)]
librustc: De-mut trans. rs=demuting

11 years agolibrustc: De-mut some of trans
Patrick Walton [Thu, 21 Feb 2013 19:57:20 +0000 (11:57 -0800)]
librustc: De-mut some of trans

11 years agolibrustc: De-mut resolve. rs=demuting
Patrick Walton [Thu, 21 Feb 2013 19:08:50 +0000 (11:08 -0800)]
librustc: De-mut resolve. rs=demuting

11 years agoRemove the last bits of structural records from tests/rustc/rusti/rustpkg.
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.

11 years agoauto merge of #5068 : sethpink/rust/derive-eq-tuple-struct, r=catamorphism
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.

11 years agoauto merge of #5071 : luqmana/rust/derec, r=pcwalton
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`.

11 years agoauto merge of #5069 : pcwalton/rust/plussing-2, r=pcwalton
bors [Thu, 21 Feb 2013 16:35:12 +0000 (08:35 -0800)]
auto merge of #5069 : pcwalton/rust/plussing-2, r=pcwalton

11 years agolibrustc: Separate the rest of the trait bounds with `+` and stop parsing space-separ...
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

11 years agoMoved core::extfmt to core::private::extfmt
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

11 years agoGet rid of structural records in libsyntax and the last bit in librustc.
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.

11 years agoauto merge of #5065 : catamorphism/rust/issue-3453, r=catamorphism
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.

11 years agoImplement #[deriving_eq] on tuple like structs
Seth Pink [Thu, 21 Feb 2013 04:57:27 +0000 (14:57 +1000)]
Implement #[deriving_eq] on tuple like structs

11 years agoauto merge of #5063 : pcwalton/rust/plussing, r=pcwalton
bors [Thu, 21 Feb 2013 05:22:30 +0000 (21:22 -0800)]
auto merge of #5063 : pcwalton/rust/plussing, r=pcwalton

11 years agolibrustc: Separate most trait bounds with '+'. rs=plussing
Patrick Walton [Thu, 21 Feb 2013 01:07:17 +0000 (17:07 -0800)]
librustc: Separate most trait bounds with '+'. rs=plussing

11 years agoauto merge of #5058 : Thiez/rust/incoming, r=catamorphism
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.

11 years agoauto merge of #5066 : catamorphism/rust/luqmana-derecording, r=catamorphism
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.

11 years agoMerge
Tim Chevalier [Thu, 21 Feb 2013 02:48:05 +0000 (18:48 -0800)]
Merge

11 years agoFix vdef pattern
Tim Chevalier [Thu, 21 Feb 2013 02:03:43 +0000 (18:03 -0800)]
Fix vdef pattern

11 years agoFix flipped tuple that was causing all that pain
Tim Chevalier [Thu, 21 Feb 2013 00:42:44 +0000 (16:42 -0800)]
Fix flipped tuple that was causing all that pain

11 years agoMerge
Tim Chevalier [Thu, 21 Feb 2013 00:41:21 +0000 (16:41 -0800)]
Merge

11 years agolibrustc: tidy
Luqman Aden [Tue, 19 Feb 2013 08:14:56 +0000 (00:14 -0800)]
librustc: tidy

11 years agoFix fallout in rusti & rustpkg.
Luqman Aden [Tue, 19 Feb 2013 08:01:03 +0000 (00:01 -0800)]
Fix fallout in rusti & rustpkg.

11 years agolibrustc: Get rid of structural records save for front/test.rs.
Luqman Aden [Tue, 19 Feb 2013 07:40:42 +0000 (02:40 -0500)]
librustc: Get rid of structural records save for front/test.rs.

11 years agoauto merge of #5049 : bstrie/rust/vim, r=catamorphism
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

11 years agorustc: Use position method in check::method
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.

11 years agoauto merge of #5043 : brson/rust/swap, r=brson
bors [Thu, 21 Feb 2013 00:58:34 +0000 (16:58 -0800)]
auto merge of #5043 : brson/rust/swap, r=brson

r?

11 years agoDon't perform swap when src == dst. #5041
Brian Anderson [Wed, 20 Feb 2013 00:12:12 +0000 (16:12 -0800)]
Don't perform swap when src == dst. #5041

11 years agoauto merge of #5046 : sanxiyn/rust/struct-match, r=catamorphism
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.

11 years agoetc: Suppress the enum variant instruction scheduling Valgrind issues. rs=#rust
Patrick Walton [Thu, 21 Feb 2013 00:03:47 +0000 (16:03 -0800)]
etc: Suppress the enum variant instruction scheduling Valgrind issues. rs=#rust

11 years agoChanged a test to use intrinsics.rs and changed a few lines that were too long, had...
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.

11 years agoCreated libcore/private/intrinsics.rs, which aims to contain every
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.

11 years agovim improvements
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