Jed Davis
|
6043a72774
|
Make consts of degenerate nullary enums not ICE.
This makes the const construction code match the logic in type_of.
|
2013-01-05 00:24:38 -08:00 |
|
Jed Davis
|
8f8b417811
|
Trivial cleanup: use enum_is_univariant; no functional change intended.
|
2013-01-05 00:24:33 -08:00 |
|
Patrick Walton
|
7b245d46ed
|
librustc: Stop generating first-class aggregates in visit glue, since they kick us off fast isel. Closes #4352. rs=minor-perf-improvement
|
2013-01-04 23:07:58 -08:00 |
|
Tim Chevalier
|
89acd1f57f
|
Rename option::get_default => get_or_default, get_zero => get_or_zero
|
2013-01-04 16:01:26 -08:00 |
|
gareth
|
624421aa3d
|
Simplify idents_to_str and use it in more places.
|
2012-12-29 18:25:09 +00:00 |
|
gareth
|
d68954efa0
|
Fix the build by removing trailing whitespace.
|
2012-12-29 11:44:02 +00:00 |
|
gareth
|
b6aafe928d
|
When an import fails to resolve, make the error message say
which import it actually was. This makes debugging imports
like: use aa::{x, y, z} easier (for issue #2914).
|
2012-12-29 11:15:54 +00:00 |
|
Tim Chevalier
|
a75c0b3b32
|
Merge pull request #4268 from catamorphism/issue-3477
Emit a type error for integer literals where the expected type is char
|
2012-12-28 13:05:58 -08:00 |
|
Patrick Walton
|
e26ca35b08
|
librustc: Fix the test runner, the condition system, and core test. rs=bustage
|
2012-12-27 17:53:04 -08:00 |
|
Patrick Walton
|
84ce55e542
|
librustc: Fix some unresolved imports in the test runner. rs=bustage
|
2012-12-27 15:50:03 -08:00 |
|
Tim Chevalier
|
0873553680
|
Merge pull request #4298 from JensNockert/byteswap
Add support for byteswap intrinsics
|
2012-12-27 10:47:15 -08:00 |
|
Jens Nockert
|
a51661e8c1
|
Add support for byteswap intrinsics
Adds support for the llvm.bswap.i{8,16,32} intrinsics, which swaps the
byte order from little endian to big endian, or the reverse.
|
2012-12-27 19:07:05 +01:00 |
|
Patrick Walton
|
57c599914a
|
librustc: Terminate name searches at the nearest module scope for paths that contain at least two components. r=graydon
|
2012-12-27 10:02:54 -08:00 |
|
Erick Tryzelaar
|
efb8711f90
|
Merge branch 'master' of github.com:mozilla/rust into incoming
|
2012-12-27 10:34:27 -05:00 |
|
Graydon Hoare
|
329316ce15
|
bump 0.5 => 0.6, redirect some URLs in docs.
|
2012-12-24 18:29:01 -08:00 |
|
Tim Chevalier
|
499a58708f
|
Assign correct types to struct-like enum variant constructors
Before, the type was just the enum type itself, which caused an
assertion failure in iter_variant in trans::base.
r=brson
Closes #4229
|
2012-12-24 15:59:15 -08:00 |
|
Tim Chevalier
|
65839fa622
|
Emit a type error for integer literals where the expected type is char
For example, in let x: char = 42; This was an ICE and is now a
proper type error, as per #3477
|
2012-12-22 15:58:05 -08:00 |
|
Graydon Hoare
|
dbd36111fe
|
bump 0.5 => 0.6, redirect some URLs in docs.
|
2012-12-21 15:35:49 -08:00 |
|
Jens Nockert
|
82641d4c39
|
Add support for bitcount intrinsics
Adds support for the llvm.ctpop, llvm.ctlz and llvm.cttz intrinsics.
|
2012-12-21 19:30:33 +01:00 |
|
Erick Tryzelaar
|
76a2891feb
|
Remove the cfg(stageN)-specific serialize code.
|
2012-12-20 12:52:53 -08:00 |
|
Erick Tryzelaar
|
c14105bb8a
|
Remove serialize::traits submodule.
|
2012-12-19 18:16:20 -08:00 |
|
Brian Anderson
|
dac88fa7e6
|
Remove transitional path2 attribute
|
2012-12-19 14:23:53 -08:00 |
|
Brian Anderson
|
97ddf3c7bd
|
Stop resolving static methods at the module level. Closes #4179
|
2012-12-18 18:35:18 -08:00 |
|
Graydon Hoare
|
8e28f23c60
|
core: add macro_rules! for "condition! { c: in -> out; }".
|
2012-12-18 17:22:27 -08:00 |
|
Erick Tryzelaar
|
85bb1fc2c4
|
Change iter::find's closure to take a ref
|
2012-12-17 22:01:38 -08:00 |
|
Brian Anderson
|
23564574ac
|
Change the default_methods lint mode from forbid to deny to fix tests
|
2012-12-17 20:41:12 -08:00 |
|
Erick Tryzelaar
|
8650c6f683
|
Switch from serialization to std::serialize. (snapshot)
|
2012-12-17 20:00:36 -08:00 |
|
Brian Anderson
|
33a8f855c2
|
Make the path and path2 attributes equivalent. Remove some uses
|
2012-12-17 18:06:52 -08:00 |
|
Jakub Wieczorek
|
6530fd3401
|
When matching a slice, the tail should have the same lifetime
|
2012-12-17 16:50:40 -08:00 |
|
Jakub Wieczorek
|
1fdfd3b1d6
|
Simplify the exhaustiveness check and add comments
|
2012-12-17 16:50:40 -08:00 |
|
Jakub Wieczorek
|
856dbac567
|
Use the same logic for _ and [..tail] when checking reachability
|
2012-12-17 16:50:40 -08:00 |
|
Jakub Wieczorek
|
1968cb315a
|
Add support for destructuring vectors in match expressions
|
2012-12-17 16:50:40 -08:00 |
|
Patrick Walton
|
ebd9ad4d04
|
librustc: Add a lint mode for deprecated self. r=brson
|
2012-12-14 19:46:55 -08:00 |
|
Patrick Walton
|
41c0d7083e
|
librustc: Fix type_use for generic newtype structs. Closes #4188. rs=bugfix
|
2012-12-14 19:44:07 -08:00 |
|
Patrick Walton
|
8a9ccf81b0
|
librustc: Implement a lint mode for default methods. r=brson
|
2012-12-14 19:28:43 -08:00 |
|
Patrick Walton
|
99fa9c3cab
|
Revert "librustc: Implement a lint mode for default methods"
This reverts commit 53b181dd47b9a10583bb9b300acc8b3ba9f56717.
|
2012-12-14 19:13:59 -08:00 |
|
Patrick Walton
|
53b181dd47
|
librustc: Implement a lint mode for default methods
|
2012-12-14 19:07:20 -08:00 |
|
Patrick Walton
|
bdb2d659ae
|
librustc: Ensure that no moves from the inside of @ or & boxes occur. rs=crashing-servo
|
2012-12-14 18:19:07 -08:00 |
|
Brian Anderson
|
e6d1b02359
|
Rename core::comm to core::oldcomm
|
2012-12-14 14:59:32 -08:00 |
|
Patrick Walton
|
1b9f740f2f
|
librustc: Reset the mode context to MoveValue for block lambdas. rs=bugfix
|
2012-12-13 21:44:19 -08:00 |
|
Patrick Walton
|
57e4ed479e
|
librustc: Add missing case in mem_categorization. rs=bugfix
|
2012-12-13 18:03:48 -08:00 |
|
Patrick Walton
|
036b26a197
|
librustc: Remove merge markers. rs=oops
|
2012-12-13 16:17:57 -08:00 |
|
Patrick Walton
|
732c39c183
|
librustc: Have coherence check Copy kind bounds when determining whether parameter substitutions could possibly unify. r=nmatsakis
|
2012-12-13 16:14:54 -08:00 |
|
Brian Anderson
|
ed4fac01b5
|
Rename Send trait to Owned
|
2012-12-13 15:52:50 -08:00 |
|
Brian Anderson
|
a277081ee4
|
Rename Owned trait to Durable
|
2012-12-13 15:52:50 -08:00 |
|
Patrick Walton
|
cd120736cb
|
librustc: Allow moves out of self . r=nmatsakis
|
2012-12-13 15:49:07 -08:00 |
|
Patrick Walton
|
45848b2040
|
librustc: Automatically move non-implicitly-copyable types into unique closures. r=nmatsakis
|
2012-12-13 15:33:33 -08:00 |
|
Brian Anderson
|
7ca94369da
|
Fix encoding of trait static method paths. Closes #4097. r=pcwalton
|
2012-12-13 15:02:42 -08:00 |
|
Patrick Walton
|
efb9b74718
|
librustc: Fix explicit self for objects in more cases. r=nmatsakis
|
2012-12-13 13:29:08 -08:00 |
|
Patrick Walton
|
4c2e4c37ce
|
librustc: Make use statements crate-relative by default. r=brson
|
2012-12-13 13:05:22 -08:00 |
|