summary refs log tree commit diff
path: root/src/test/compile-fail
AgeCommit message (Collapse)AuthorLines
2012-01-19Additional ; to , changes, disable "tag" and ";" in parser. Close #1430. ↵Graydon Hoare-1/+1
Close #1428.
2012-01-19rustc: Make the pretty printer output commas after enum variants. Update all ↵Patrick Walton-30/+30
tests accordingly.
2012-01-19Remove incorrect comments from a few test cases.Kevin Atkinson-2/+0
2012-01-19test: "tag" -> "enum" in compile-failPatrick Walton-22/+22
2012-01-19test: Fix error patterns in name-clash-nullaryPatrick Walton-2/+2
2012-01-19Rename fn*() to fn() as originally planned.Niko Matsakis-12/+11
2012-01-19rustc: Add a usage pass to collect one-off analysesHaitao Li-1/+2
This patch starts from move the analysis which checkes of probably incorrectly usage of `int|uint` in native fn. Issue #1543
2012-01-19Remove support for the '.' after a nullary tag in a patternTim Chevalier-1/+1
(Commit also includes lots of changes to remove '.'s that a git merge messed up, or else it was monkeys.)
2012-01-18test: Don't test that tags with zero variants are supportedPatrick Walton-1/+1
2012-01-19rustc: Warn when int or uint is used in a native type declHaitao Li-0/+9
Issue #1403
2012-01-16Store type names in crate metadataMarijn Haverbeke-1/+1
Improves type error messages referring to external types. Issue #1507
2012-01-16When pretty-printing fn types, leave off arg modes when they are the defaultMarijn Haverbeke-3/+3
This reduces ++/&& spam in the output to a bare minimum. Issue #1507
2012-01-16Don't evaluate discriminator value constants when parsing.Kevin Atkinson-0/+8
Remove disr_val from ast::variant_ and always use ty::variant_info when the value is needed. Move what was done during parsing into other passes, primary typeck.rs. This move also correctly type checks the disr. value expression; thus, fixing rustc --pretty=typed when disr. values are used.
2012-01-15rustc: Parse fn inner attributes. Closes #1506Brian Anderson-0/+8
2012-01-13distinguish "any closure" and "stack closure" (block)Niko Matsakis-12/+12
2012-01-13make "native fn" the type for bare functions, remove fn exprsNiko Matsakis-9/+9
2012-01-13deprecate fn exprs and the fn() type, preferring fn@ and native fnNiko Matsakis-1/+1
2012-01-13Remove tests for objs, adjust tests that use objsMarijn Haverbeke-104/+3
2012-01-12Cleanups to previous commits for issue #1393.Kevin Atkinson-1/+1
2012-01-11test: Add a test that empty records don't parseBrian Anderson-0/+7
Closes #1200
2012-01-11rustc: Don't allow empty link_name when nolink attribute is presentBrian Anderson-0/+7
Closes #1326
2012-01-10Add support for casting enum-like tags to scalar values.Kevin Atkinson-0/+12
2012-01-10Support explicit discriminant numbers on tag variants.Kevin Atkinson-0/+22
Addresses issue #1393. For now disallow disr. values unless all variants use nullary contractors (i.e. "enum-like"). Disr. values are now encoded in the crate metadata, but only when it will differ from the inferred value based on the order.
2012-01-10rename sendfn to fn~, lambda to fn@Niko Matsakis-4/+2
2012-01-09Remove proto_sugar and 'lambda' as keyword, commit to fn@.Graydon Hoare-13/+13
2012-01-09Fix error message case in two cfail testMarijn Haverbeke-2/+2
I had made the error consistent with other errors, but forgot to also change the tests.
2012-01-09Fix #1474: check that block args resolved to bare fns do not make use of upvarsNiko Matsakis-0/+7
2012-01-06update to use new spawn syntaxNiko Matsakis-3/+1
2012-01-06Disallow variable names that shadow tags in scopeTim Chevalier-0/+14
Now, if you have a tag named "foo", a variable declaration like "let foo..." is illegal. This change makes it possible to eliminate the '.' after a nullary tag pattern in an alt (but I'll be doing that in a future commit) -- as now it's always obvious whether a name refers to a tag or a new declared variable. resolve implements this change -- all the other changes are just to get rid of existing code that declares variables that shadow tag names.
2012-01-05rustc: Configure out #[test] functions when not testingBrian Anderson-0/+7
2012-01-05correct test to reference right valueNiko Matsakis-1/+1
2012-01-05require a non-semi expr acting as a stmt to have unit return typeNiko Matsakis-0/+13
2012-01-05Switch to new param kind bound syntaxMarijn Haverbeke-2/+2
And remove support for the old syntax
2012-01-04extend tester so that error msgs can be attached to linesNiko Matsakis-2/+1
2012-01-03Allow tail expressions even in no_value blocks. Type checkerNiko Matsakis-7/+7
will guarantee they have unit type.
2012-01-02Fix expected error messages for better printing of ty_ptrMarijn Haverbeke-2/+2
2011-12-28On second thought, re-land pull request #1385 with backquotes; easier to ↵Graydon Hoare-15/+15
grep, can change in the future.
2011-12-25Use singlequotes in the typechecker too, to distinguish code and EnglishLenny222-17/+17
2011-12-22Register new snapshots, purge log_err and log_full in favour of log(...).Graydon Hoare-82/+82
2011-12-22Merge all 3 log syntaxes, tidy up residual misuses.Graydon Hoare-4/+4
2011-12-22Register snapshots and switch logging over to use of log_full or #error / ↵Graydon Hoare-103/+142
#debug.
2011-12-22Remove trivial cast checkerMarijn Haverbeke-17/+0
I consider the added complexity not justified at this point, and it interacts badly with the patches for issue #828. Feel free to discuss.
2011-12-21add tests I forgot to addNiko Matsakis-0/+12
2011-12-21valid cap clause for kind-ness tooNiko Matsakis-0/+10
2011-12-20test: Remove 'error:' from error patternHaitao Li-5/+5
May include ansi escape code for color rendering on certain terminal.
2011-12-19implement capture clauses (move, in particular) and integrateNiko Matsakis-0/+30
them into type state and so forth
2011-12-19resolve capture clausesNiko Matsakis-0/+12
2011-12-19when collecting free vars, track the span where it is used tooNiko Matsakis-0/+6
2011-12-19impl the proper partial order between fn typesNiko Matsakis-0/+10
2011-12-19Use quotes around tokens in parser error messages to make them more readableMarijn Haverbeke-2/+2
Closes #1328