bors
995425badb
auto merge of #5558 : nikomatsakis/rust/issue-4920-autoref-index-operator, r=nikomatsakis
...
Per discussion on IRC.
r? @pcwalton
2013-03-27 13:27:58 -07:00
Niko Matsakis
2a74fda316
Fix pretty-printer test failure by carrying the bound lifetime names through
...
the types. Initially I thought it would be necessary to thread this data
through not only the AST but the types themselves, but then I remembered that
the pretty printer only cares about the AST. Regardless, I have elected to
leave the changes to the types intact since they will eventually be needed. I
left a few FIXMEs where it didn't seem worth finishing up since the code wasn't
crucial yet.
2013-03-27 11:35:04 -07:00
Graydon Hoare
83aa70d7e3
another pub fn for check-fast
2013-03-27 11:30:38 -07:00
Tim Chevalier
fad05591e5
testsuite: more pub fn main
2013-03-27 10:09:03 -07:00
Tim Chevalier
e23fad0e6a
Oh, cool, I xfailed the wrong test, neat
2013-03-27 10:09:02 -07:00
Tim Chevalier
e01cf3caf5
testsuite: Add various test cases
...
Some are xfailed, some not, some existing ones get un-xfailed.
2013-03-27 10:09:02 -07:00
Niko Matsakis
069529bc5c
Autoref the argument to the index operator ( #4920 )
2013-03-27 13:04:03 -04:00
Patrick Walton
b93393e907
test: xfail-pretty one of the run-pass tests. rs=burningtree
2013-03-27 07:35:49 -07:00
Patrick Walton
b07b36bbf3
test: Fix tests
2013-03-26 22:45:22 -07:00
Patrick Walton
0a4d0f37ca
librustc: Enforce that extern mod
directives come first, then use
directives, then items.
...
Resolve them in this order as well.
2013-03-26 21:30:17 -07:00
Patrick Walton
8b56a8380b
librustc: Modify all code to use new lifetime binder syntax
2013-03-26 21:30:17 -07:00
Patrick Walton
3b2fcf9f59
librustc: Fix bug with newtype structs containing dtors
2013-03-26 21:29:35 -07:00
Patrick Walton
142dbd65da
librustc: Remove all uses of the old [T * N]
fixed-length vector syntax
2013-03-26 21:29:34 -07:00
Patrick Walton
0d52b22e7b
libcore: Change [const T]
to const [T]
everywhere
2013-03-26 21:29:33 -07:00
Daniel Micay
34c5a09ce3
option: rm functions that duplicate methods
2013-03-26 22:44:40 -04:00
Alex Crichton
b53057f49d
test: Remove uses of oldmap::HashMap
2013-03-26 19:21:04 -04:00
bors
3d588c5286
auto merge of #5555 : Kimundi/rust/str-dealloc-3, r=catamorphism
...
- Most functions that used to return `~[~str]` for a list of substrings got turned into iterators over `&str` slices
- Some cleanup of apis, docs and code layout
2013-03-26 15:07:07 -07:00
Niko Matsakis
3ca7c225e5
Stop writing directly to the final type/method/vtable sidetables from astconv
...
and from typeck, which is verboten. We are supposed to write inference results
into the FnCtxt and then these get copied over in writeback. Add assertions
that no inference by-products are added to this table.
Fixes #3888
Fixes #4036
Fixes #4492
2013-03-26 15:39:12 -04:00
Marvin Löbel
06c371605b
Fixed all use sites and tests
2013-03-26 14:59:17 +01:00
bors
7481524978
auto merge of #5528 : thestinger/rust/find_mut, r=brson
...
This currently requires workarounds for the borrow checker not being flow-sensitive for `LinearMap` and `TrieMap`, but it can already be expressed for `TreeMap` and `SmallIntMap` without that.
2013-03-25 22:24:57 -07:00
Luqman Aden
e7f42f140b
Expand on cleanups in trans for expr_repeat and add to tests.
2013-03-25 15:46:10 -07:00
Daniel Micay
38f39ac540
expose find_mut in the Map trait
2013-03-24 21:40:16 -04:00
Patrick Walton
66770d20b3
test: Add lifetime binders and new-style lifetime parameters to the test suite
2013-03-22 22:24:36 -07:00
Patrick Walton
85c9fc6f8f
librustc: Remove the const
declaration form everywhere
2013-03-22 22:24:35 -07:00
bors
e9b077c0e9
auto merge of #5488 : pcwalton/rust/depure, r=pcwalton
2013-03-22 13:00:56 -07:00
Patrick Walton
3eda11a4f7
test: Remove pure
from the test suite
2013-03-22 12:57:28 -07:00
bors
b6f9aa1fd7
auto merge of #5483 : pcwalton/rust/static-syntax, r=graydon
...
r? @nikomatsakis
2013-03-22 11:21:48 -07:00
Patrick Walton
4634f7edae
librustc: Remove all uses of static
from functions. rs=destatic
2013-03-22 10:27:39 -07:00
Andrew Paseltiner
ec960963c1
test: replace uses of old deriving attribute with new one
2013-03-22 06:30:53 -04:00
bors
d52408d46a
auto merge of #5480 : pcwalton/rust/at-const, r=pcwalton
...
r? @catamorphism
2013-03-21 20:39:51 -07:00
Patrick Walton
94327d00c6
librustc: Replace the &static
bound with 'static
2013-03-21 17:31:35 -07:00
Patrick Walton
d4fee24c7c
librustc: Forbid destructors from being attached to any structs that might contain non-Owned fields. r=nmatsakis
2013-03-21 17:31:34 -07:00
bors
ec8345b18a
auto merge of #5407 : jbclements/rust/add-assert-eq-macro, r=jbclements
...
Adds an assert_eq! macro that asserts that its two arguments are equal. Error messages can therefore be somewhat more informative than a simple assert, because the error message includes "expected" and "given" values.
2013-03-21 15:24:54 -07:00
bors
56d288d0dc
auto merge of #5464 : luqmana/rust/const-pat, r=pcwalton
...
r? @pcwalton
2013-03-21 08:49:13 -07:00
Patrick Walton
1fa2b9980f
test: XFAIL test issue-4120 due to Valgrind complaints.
2013-03-21 03:55:25 -07:00
Luqman Aden
3f2d576a38
Test for cross-crate const in match pattern.
2013-03-21 00:38:31 -07:00
Tim Chevalier
373504a7ac
testsuite: Add test for #4210
2013-03-20 13:37:57 -07:00
John Clements
ab8e46b066
add assert_eq! macro
...
the assert_eq! macro compares its arguments and fails if they're not
equal. It's more informative than fail_unless!, because it explicitly
writes the given and expected arguments on failure.
2013-03-20 13:27:45 -07:00
bors
f3c879fdd8
auto merge of #5442 : pcwalton/rust/extern-block-restriction, r=pcwalton
...
r? @graydon
2013-03-19 21:57:49 -07:00
bors
4cb9ca9296
auto merge of #5410 : luqmana/rust/cfg-and, r=graydon
...
This adopts the syntax from #2119 . No more annoying workarounds involving wrapping in mods!
2013-03-19 18:39:50 -07:00
Patrick Walton
e6f53c091e
libsyntax: Forbid use
(and most other things) within extern { ... }
blocks
2013-03-19 18:00:18 -07:00
Luqman Aden
811d88024f
Mark cfg test xfail-fast since check-fast doesn't understand compile-flags.
2013-03-19 16:50:07 -07:00
Luqman Aden
6450ee91be
Fix pretty printing for cfg test.
2013-03-19 16:26:23 -07:00
Patrick Walton
b0bea10898
libsyntax: Accept the new [T, ..N]
style for vec.
2013-03-19 15:40:04 -07:00
Patrick Walton
049e1f9a1f
libsyntax: Accept static
instead of const
for globals
2013-03-19 14:46:27 -07:00
Luqman Aden
b9fc773649
Update run-pass/cfg-on-items.rs
...
Make comment describe actual behaviour.
2013-03-19 14:25:48 -07:00
Luqman Aden
1e16edd995
Tests for cfg attribute.
2013-03-19 13:00:51 -07:00
bors
e1888948c6
auto merge of #5426 : nikomatsakis/rust/issue-4846-lifetimes-in-expl-self, r=pcwalton
...
(this will be needed for snapshotting at some point)
r? @pcwalton
2013-03-19 12:43:14 -07:00
bors
a14ec73cd2
auto merge of #5356 : jld/rust/enum-less-magic, r=graydon
...
Fixes #1645 .
2013-03-19 11:43:10 -07:00
Luqman Aden
d7d17dc14e
Add tests for const exprs in fixed vec length type and vec repeat.
2013-03-18 17:31:42 -07:00