]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agoMerge remote-tracking branch 'brson/codemap'
Brian Anderson [Sat, 17 Nov 2012 02:54:48 +0000 (18:54 -0800)]
Merge remote-tracking branch 'brson/codemap'

Conflicts:
src/libsyntax/ext/source_util.rs

11 years agoRemove unused MultiByteChar.sum field from codemap
Brian Anderson [Fri, 16 Nov 2012 23:52:33 +0000 (15:52 -0800)]
Remove unused MultiByteChar.sum field from codemap

11 years agoAdd some docs to codemap
Brian Anderson [Fri, 16 Nov 2012 23:14:11 +0000 (15:14 -0800)]
Add some docs to codemap

11 years agoForbid duplicate supertraits
Tim Chevalier [Fri, 16 Nov 2012 23:12:14 +0000 (15:12 -0800)]
Forbid duplicate supertraits

I actually already pushed most of this by accident before I meant to, but
r=nmatsakis anyway.

Closes #3953

11 years agoRemove incorrect comment from codemap
Brian Anderson [Fri, 16 Nov 2012 22:55:52 +0000 (14:55 -0800)]
Remove incorrect comment from codemap

11 years agosyntax: rename quote! to quote_tokens!, add quote_{expr,type,item,pat,stmt}!
Graydon Hoare [Fri, 16 Nov 2012 22:50:35 +0000 (14:50 -0800)]
syntax: rename quote! to quote_tokens!, add quote_{expr,type,item,pat,stmt}!

r=brson, Close #3976.

11 years agoRemove unused types from codemap
Brian Anderson [Fri, 16 Nov 2012 22:35:43 +0000 (14:35 -0800)]
Remove unused types from codemap

11 years agoStop tracking CodeMap offsets in the parse session. Big simplification
Brian Anderson [Fri, 16 Nov 2012 22:22:09 +0000 (14:22 -0800)]
Stop tracking CodeMap offsets in the parse session. Big simplification

11 years agoStop storing char positions in CodeMap
Brian Anderson [Fri, 16 Nov 2012 22:10:17 +0000 (14:10 -0800)]
Stop storing char positions in CodeMap

11 years agoChange spans to use byte offsets instead of char offsets
Brian Anderson [Fri, 16 Nov 2012 03:37:29 +0000 (19:37 -0800)]
Change spans to use byte offsets instead of char offsets

11 years agolibrustc: Fastisel dislikes memmove, switch to memcpy. Perf win, r=catamorphism.
Graydon Hoare [Fri, 16 Nov 2012 19:26:26 +0000 (11:26 -0800)]
librustc: Fastisel dislikes memmove, switch to memcpy. Perf win, r=catamorphism.

Fastisel actually has a special case for memcpy, the intrinsic, by name.
It has no such special case for memmove, so bails.

Close #3987.

11 years agore-xfail two tests
Brian Anderson [Fri, 16 Nov 2012 19:19:45 +0000 (11:19 -0800)]
re-xfail two tests

11 years agoUpdate and un-xfail tests
Tim Chevalier [Fri, 16 Nov 2012 03:50:53 +0000 (19:50 -0800)]
Update and un-xfail tests

11 years agoTypo
Tim Chevalier [Fri, 16 Nov 2012 03:24:33 +0000 (19:24 -0800)]
Typo

11 years agoUpdate test and un-xfail it
Tim Chevalier [Fri, 16 Nov 2012 03:01:44 +0000 (19:01 -0800)]
Update test and un-xfail it

11 years agoUpdate error message and un-xfail test
Tim Chevalier [Fri, 16 Nov 2012 02:59:46 +0000 (18:59 -0800)]
Update error message and un-xfail test

11 years agoUn-xfail working tests
Tim Chevalier [Fri, 16 Nov 2012 02:54:40 +0000 (18:54 -0800)]
Un-xfail working tests

11 years agoFix 'make all' to build all the way through stage2. Closes #3978
Brian Anderson [Fri, 16 Nov 2012 02:13:37 +0000 (18:13 -0800)]
Fix 'make all' to build all the way through stage2. Closes #3978

11 years agoUpdate error message and un-xfail test
Tim Chevalier [Fri, 16 Nov 2012 02:34:27 +0000 (18:34 -0800)]
Update error message and un-xfail test

11 years agoAdd comments explaining why these tests are xfailed
Tim Chevalier [Fri, 16 Nov 2012 02:11:08 +0000 (18:11 -0800)]
Add comments explaining why these tests are xfailed

11 years agoUn-xfail working test
Tim Chevalier [Fri, 16 Nov 2012 02:02:11 +0000 (18:02 -0800)]
Un-xfail working test

11 years agoCheck for duplicate supertraits and forbid them
Tim Chevalier [Fri, 16 Nov 2012 00:36:16 +0000 (16:36 -0800)]
Check for duplicate supertraits and forbid them

As per #3953

11 years agoMake staticness mismatch a fatal error
Tim Chevalier [Fri, 16 Nov 2012 02:04:25 +0000 (18:04 -0800)]
Make staticness mismatch a fatal error

Exit with a fatal error, instead of recording a non-fatal error,
when we encounter an impl method that's static when its corresponding
trait method isn't (or vice versa). This is because code later on in
the typechecker will expect the staticness of the two methods to be
consistent and ICE otherwise.

r=nmatsakis

Closes #3969

11 years agoAdd xfailed test for #3979
Tim Chevalier [Fri, 16 Nov 2012 02:03:12 +0000 (18:03 -0800)]
Add xfailed test for #3979

11 years agoRemove CodeMap.lookup_byte_pos
Brian Anderson [Fri, 16 Nov 2012 01:32:14 +0000 (17:32 -0800)]
Remove CodeMap.lookup_byte_pos

11 years agolibrustc: Fix cross-crate reexports. rs=blocking-servo
Patrick Walton [Fri, 16 Nov 2012 00:59:43 +0000 (16:59 -0800)]
librustc: Fix cross-crate reexports. rs=blocking-servo

11 years agoUpdate error message and un-xfail test
Tim Chevalier [Fri, 16 Nov 2012 01:14:28 +0000 (17:14 -0800)]
Update error message and un-xfail test

11 years agoAdd comments explaining why these tests fail
Tim Chevalier [Thu, 15 Nov 2012 22:52:38 +0000 (14:52 -0800)]
Add comments explaining why these tests fail

11 years agoUn-xfail working tests
Tim Chevalier [Thu, 15 Nov 2012 22:39:41 +0000 (14:39 -0800)]
Un-xfail working tests

11 years agoRemove test that tested behavior of unchecked blocks
Tim Chevalier [Thu, 15 Nov 2012 22:39:09 +0000 (14:39 -0800)]
Remove test that tested behavior of unchecked blocks

We don't have unchecked blocks anymore.

11 years agoUpdate error messages and un-xfail
Tim Chevalier [Thu, 15 Nov 2012 22:36:38 +0000 (14:36 -0800)]
Update error messages and un-xfail

11 years agoAdd another test for #3177
Tim Chevalier [Thu, 15 Nov 2012 22:25:51 +0000 (14:25 -0800)]
Add another test for #3177

11 years agoRemove typestate test
Tim Chevalier [Thu, 15 Nov 2012 22:25:25 +0000 (14:25 -0800)]
Remove typestate test

11 years agoUn-ignore test_from_str and test_parse_buf
Tim Chevalier [Fri, 16 Nov 2012 00:45:22 +0000 (16:45 -0800)]
Un-ignore test_from_str and test_parse_buf

Closes #2609

11 years agort: Don't print backtraces unless the ::rt::backtrace log level is greater than log_err
Brian Anderson [Thu, 15 Nov 2012 23:12:39 +0000 (15:12 -0800)]
rt: Don't print backtraces unless the ::rt::backtrace log level is greater than log_err

11 years agoConvert CodeMap and FileMap to use &self instead of @self
Brian Anderson [Thu, 15 Nov 2012 23:00:49 +0000 (15:00 -0800)]
Convert CodeMap and FileMap to use &self instead of @self

11 years agorustc: make llloadenv bb optional, kill 1.5% of emitted llvm insns.
Graydon Hoare [Thu, 15 Nov 2012 22:51:45 +0000 (14:51 -0800)]
rustc: make llloadenv bb optional, kill 1.5% of emitted llvm insns.

11 years agoAdd some comments to codemap and lexer
Brian Anderson [Thu, 15 Nov 2012 22:34:23 +0000 (14:34 -0800)]
Add some comments to codemap and lexer

11 years agoRefactor the lexer to use FilePos types
Brian Anderson [Thu, 15 Nov 2012 06:27:53 +0000 (22:27 -0800)]
Refactor the lexer to use FilePos types

11 years agoRename thread_pool to task_pool
Tim Chevalier [Thu, 15 Nov 2012 20:32:00 +0000 (12:32 -0800)]
Rename thread_pool to task_pool

Minor change, no review.

Closes #3972

11 years agoAdd tests for #2190 (xfailed)
Tim Chevalier [Thu, 15 Nov 2012 20:30:04 +0000 (12:30 -0800)]
Add tests for #2190 (xfailed)

11 years agort: bump log levels up by one, fix tautological-compare error (and permit turning...
Graydon Hoare [Thu, 15 Nov 2012 20:03:45 +0000 (12:03 -0800)]
rt: bump log levels up by one, fix tautological-compare error (and permit turning off logging entirely).

11 years agolibrustc: Implement (and require) explicit self for derivable traits. r=nmatsakis
Patrick Walton [Thu, 15 Nov 2012 00:32:37 +0000 (16:32 -0800)]
librustc: Implement (and require) explicit self for derivable traits. r=nmatsakis

11 years agolibrustc: Pass through extra parameters in automatically-derived methods. r=brson
Patrick Walton [Wed, 14 Nov 2012 21:07:32 +0000 (13:07 -0800)]
librustc: Pass through extra parameters in automatically-derived methods. r=brson

11 years agoCreate CodeMap.add_filemap
Brian Anderson [Thu, 15 Nov 2012 01:43:41 +0000 (17:43 -0800)]
Create CodeMap.add_filemap

11 years agoFactor out some position management code in the lexer
Brian Anderson [Thu, 15 Nov 2012 01:03:07 +0000 (17:03 -0800)]
Factor out some position management code in the lexer

11 years agoInherit mutability through fixed-length vectors.
Niko Matsakis [Thu, 15 Nov 2012 03:28:43 +0000 (19:28 -0800)]
Inherit mutability through fixed-length vectors.

Fixes #3226.  No review (one line bug fix).

11 years agoConvert the test suite to use the Drop trait
Ben Striegel [Wed, 14 Nov 2012 06:22:37 +0000 (01:22 -0500)]
Convert the test suite to use the Drop trait

11 years agollvm: fork to disable LiveIRVariabes in GCStrategy.
Graydon Hoare [Thu, 15 Nov 2012 02:07:14 +0000 (18:07 -0800)]
llvm: fork to disable LiveIRVariabes in GCStrategy.

11 years agolibrustc: discard side tables after translation, before llvm passes.
Graydon Hoare [Thu, 15 Nov 2012 02:05:07 +0000 (18:05 -0800)]
librustc: discard side tables after translation, before llvm passes.

11 years agoTrack character and byte positions together in the parser
Brian Anderson [Thu, 15 Nov 2012 00:34:18 +0000 (16:34 -0800)]
Track character and byte positions together in the parser

11 years agostd: Don't use Drop trait in thread_pool
Brian Anderson [Wed, 14 Nov 2012 23:53:24 +0000 (15:53 -0800)]
std: Don't use Drop trait in thread_pool

11 years agoConvert libstd to use the Drop trait
Ben Striegel [Wed, 14 Nov 2012 02:38:18 +0000 (21:38 -0500)]
Convert libstd to use the Drop trait

11 years agoAdd types for character position and byte position in the codemap
Brian Anderson [Tue, 13 Nov 2012 03:32:48 +0000 (19:32 -0800)]
Add types for character position and byte position in the codemap

11 years agoCamel case all the codemap types except span
Brian Anderson [Tue, 13 Nov 2012 02:59:37 +0000 (18:59 -0800)]
Camel case all the codemap types except span

11 years agoconfigure: force clang when on freebsd.
Graydon Hoare [Wed, 14 Nov 2012 22:27:45 +0000 (14:27 -0800)]
configure: force clang when on freebsd.

11 years agoRevert "Convert libstd to use the Drop trait"
Brian Anderson [Wed, 14 Nov 2012 22:51:16 +0000 (14:51 -0800)]
Revert "Convert libstd to use the Drop trait"

This reverts commit 28c7a251514919a2d7bdf6c67b8edf5eed9043db.

11 years agorustc: Only strip out the main function when generating test executable, not lib
Brian Anderson [Wed, 7 Nov 2012 20:19:50 +0000 (12:19 -0800)]
rustc: Only strip out the main function when generating test executable, not lib

11 years agorustc: Generate test code when in the 'test' config
Brian Anderson [Wed, 7 Nov 2012 07:26:44 +0000 (23:26 -0800)]
rustc: Generate test code when in the 'test' config

11 years agoConvert libstd to use the Drop trait
Ben Striegel [Wed, 14 Nov 2012 02:38:18 +0000 (21:38 -0500)]
Convert libstd to use the Drop trait

11 years agoMove two fn assignability tests from compile-fail to run-pass
Brian Anderson [Wed, 14 Nov 2012 20:40:23 +0000 (12:40 -0800)]
Move two fn assignability tests from compile-fail to run-pass

11 years agoLong lines
Brian Anderson [Wed, 14 Nov 2012 19:49:59 +0000 (11:49 -0800)]
Long lines

11 years agoRemove obsolete const pattern test
Brian Anderson [Wed, 14 Nov 2012 19:43:28 +0000 (11:43 -0800)]
Remove obsolete const pattern test

11 years agolibrustc: Require the #[derivable] attribute, remove the significance of "impl Foo...
Patrick Walton [Wed, 14 Nov 2012 03:08:01 +0000 (19:08 -0800)]
librustc: Require the #[derivable] attribute, remove the significance of "impl Foo : Bar;", and allow only a subset of methods in a trait to be derived. r=brson

11 years agorustc: Implement let assignability. r=nmatsakis
Patrick Walton [Tue, 13 Nov 2012 22:07:26 +0000 (14:07 -0800)]
rustc: Implement let assignability. r=nmatsakis

11 years agorustc: Allow constants to be used in patterns. r=nmatsakis
Patrick Walton [Tue, 13 Nov 2012 06:10:15 +0000 (22:10 -0800)]
rustc: Allow constants to be used in patterns. r=nmatsakis

11 years agoTools should not be build prereqs of tests. Closes #3946
Brian Anderson [Tue, 13 Nov 2012 21:32:49 +0000 (13:32 -0800)]
Tools should not be build prereqs of tests. Closes #3946

11 years agolibrustc: Stop reexporting all of core in every crate. rs=really-bad-bug
Patrick Walton [Tue, 13 Nov 2012 23:43:54 +0000 (15:43 -0800)]
librustc: Stop reexporting all of core in every crate. rs=really-bad-bug

11 years agowhitespace police 2
Graydon Hoare [Tue, 13 Nov 2012 19:30:37 +0000 (11:30 -0800)]
whitespace police 2

11 years agowhitespace police
Graydon Hoare [Tue, 13 Nov 2012 19:16:19 +0000 (11:16 -0800)]
whitespace police

11 years agorustc: fix pp build breakage.
Graydon Hoare [Tue, 13 Nov 2012 18:53:45 +0000 (10:53 -0800)]
rustc: fix pp build breakage.

11 years agoAdd Chris Pressey to AUTHORS.txt
Brian Anderson [Tue, 13 Nov 2012 18:47:23 +0000 (10:47 -0800)]
Add Chris Pressey to AUTHORS.txt

11 years agolibrustc: Implement deriving with a unit return type. r=tjc
Patrick Walton [Tue, 13 Nov 2012 01:38:41 +0000 (17:38 -0800)]
librustc: Implement deriving with a unit return type. r=tjc

11 years agorustc: add new token-tree based quasiquoter.
Graydon Hoare [Fri, 9 Nov 2012 01:00:55 +0000 (17:00 -0800)]
rustc: add new token-tree based quasiquoter.

11 years agorustc: Remove the case of foo![...] as invocation syntax. foo!(...) and foo!{......
Graydon Hoare [Wed, 7 Nov 2012 23:30:28 +0000 (15:30 -0800)]
rustc: Remove the case of foo![...] as invocation syntax. foo!(...) and foo!{...} only.

11 years agoRevert "`m1!{...}` is now forbidden. Use `m1!(...)` instead."
Graydon Hoare [Wed, 7 Nov 2012 23:16:58 +0000 (15:16 -0800)]
Revert "`m1!{...}` is now forbidden. Use `m1!(...)` instead."

This reverts commit 89bbaff84fed6e6796c82f5a9fd200e693d47beb.

11 years agocleanup: convert some remaining #foo invocations to foo! form.
Graydon Hoare [Wed, 7 Nov 2012 21:41:02 +0000 (13:41 -0800)]
cleanup: convert some remaining #foo invocations to foo! form.

11 years agorustc: Make static methods not leak out of traits. r=brson
Patrick Walton [Mon, 12 Nov 2012 20:15:08 +0000 (12:15 -0800)]
rustc: Make static methods not leak out of traits. r=brson

11 years agoRemove unused get_snippet function from codemap
Brian Anderson [Tue, 13 Nov 2012 02:36:03 +0000 (18:36 -0800)]
Remove unused get_snippet function from codemap

11 years agoMake it clearer which codemap functions use chars vs. bytes
Brian Anderson [Tue, 13 Nov 2012 02:35:17 +0000 (18:35 -0800)]
Make it clearer which codemap functions use chars vs. bytes

11 years agoObjectify the codemap
Brian Anderson [Tue, 13 Nov 2012 02:24:56 +0000 (18:24 -0800)]
Objectify the codemap

11 years agoMerge remote-tracking branch 'catseye/tutorial-grammar-fixes'
Brian Anderson [Tue, 13 Nov 2012 02:09:20 +0000 (18:09 -0800)]
Merge remote-tracking branch 'catseye/tutorial-grammar-fixes'

11 years agoMerge pull request #3954 from burg/result-chain
Brian Anderson [Tue, 13 Nov 2012 02:05:29 +0000 (18:05 -0800)]
Merge pull request #3954 from burg/result-chain

Fix Result::chain, Result::chain_err to not require Copy bounds.

11 years agoFix Result::chain, Result::chain_err to not require Copy bounds.
Brian J. Burg [Tue, 13 Nov 2012 01:53:08 +0000 (17:53 -0800)]
Fix Result::chain, Result::chain_err to not require Copy bounds.

11 years agoConvert codemap from legacy_exports
Brian Anderson [Tue, 13 Nov 2012 01:26:02 +0000 (17:26 -0800)]
Convert codemap from legacy_exports

11 years agoRemove expn_info box typedef from codemap
Brian Anderson [Tue, 13 Nov 2012 01:19:56 +0000 (17:19 -0800)]
Remove expn_info box typedef from codemap

11 years agoReorder codemap decls
Brian Anderson [Tue, 13 Nov 2012 01:14:15 +0000 (17:14 -0800)]
Reorder codemap decls

11 years agoRemove CodeMap box typedef from codemap
Brian Anderson [Tue, 13 Nov 2012 00:56:39 +0000 (16:56 -0800)]
Remove CodeMap box typedef from codemap

11 years agoReformatting in codemap
Brian Anderson [Tue, 13 Nov 2012 00:47:17 +0000 (16:47 -0800)]
Reformatting in codemap

11 years agoMove codemap doc comments to the proper place
Brian Anderson [Tue, 13 Nov 2012 00:45:24 +0000 (16:45 -0800)]
Move codemap doc comments to the proper place

11 years agoMove filemap ctors to static methods
Brian Anderson [Tue, 13 Nov 2012 00:44:53 +0000 (16:44 -0800)]
Move filemap ctors to static methods

11 years agoRemove filemap box typedef from codemap
Brian Anderson [Tue, 13 Nov 2012 00:41:20 +0000 (16:41 -0800)]
Remove filemap box typedef from codemap

11 years agoConvert most codemap types from records to structs
Brian Anderson [Mon, 12 Nov 2012 23:12:20 +0000 (15:12 -0800)]
Convert most codemap types from records to structs

11 years agorustc: Implement floating point literal inference. r=nmatsakis
Patrick Walton [Thu, 8 Nov 2012 02:40:34 +0000 (18:40 -0800)]
rustc: Implement floating point literal inference. r=nmatsakis

11 years agoMinor grammatical edits; use preferred nomenclature consistently.
Cat's Eye Technologies [Sun, 11 Nov 2012 16:19:40 +0000 (16:19 +0000)]
Minor grammatical edits; use preferred nomenclature consistently.

11 years agoAdd a test for multiple main functions
Brian Anderson [Wed, 7 Nov 2012 20:30:51 +0000 (12:30 -0800)]
Add a test for multiple main functions

11 years agoxfail-fast run-pass/pub-use-xcrate
Brian Anderson [Fri, 9 Nov 2012 03:02:25 +0000 (19:02 -0800)]
xfail-fast run-pass/pub-use-xcrate

11 years agostd: Eliminate copy warning
Brian Anderson [Fri, 9 Nov 2012 01:14:02 +0000 (17:14 -0800)]
std: Eliminate copy warning

11 years agoWhitespace
Brian Anderson [Fri, 9 Nov 2012 01:11:44 +0000 (17:11 -0800)]
Whitespace

11 years agorustc: Fix cross-crate reexports. #3908. r=pcwalton
Brian Anderson [Fri, 9 Nov 2012 00:52:21 +0000 (16:52 -0800)]
rustc: Fix cross-crate reexports. #3908. r=pcwalton