about summary refs log tree commit diff
path: root/src/test/compile-fail
AgeCommit message (Collapse)AuthorLines
2011-12-18Only look for a matching method when normal field access failsMarijn Haverbeke-3/+3
We should probalby warn when defining a method foo on {foo: int} etc. This should reduce the amount of useless typevars that are allocated. Issue #1227
2011-12-16allow #[link_args] with #[nolink]. For now, fail if two modules link same ↵Graham Fawcett-0/+28
lib, and second has link_args. I think it should undefined to have multiple modules that link in the same library, but provide different link arguments. Unfortunately we don't track link_args by module -- they are just appended as discovered into the crate store -- but for now, it should be an error to provide link_args on a module that's already been included (with or without link_args).
2011-12-16implement #[nolink]; deprecate #[link_name = ""]; note in stdlib to remove ↵Graham Fawcett-0/+5
empty link_name. Can't remove them from stdlib until the snapshotted compiler supports #[nolink].
2011-12-16Make uses of self in impls compileMarijn Haverbeke-2/+2
Get rid of expr_self_call, introduces def_self. `self` is now, syntactically, simply a variable. A method implicitly brings a `self` binding into scope. Issue #1227
2011-12-14Fixed type resolution error in math testsStefan Plantikow-3/+1
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-19/+19
2011-12-07Check for literals that are out of range for their typeMarijn Haverbeke-0/+3
2011-12-05typeck: Fix for #932Stefan Plantikow-0/+4
2011-12-02parse: typeck: enabling trivial casts of tail-call return valuesStefan Plantikow-0/+19
introduces ctypes::m_* machine type aliases for int, uint, float depending on cfg(target_arch) that are used in tests
2011-12-02Be less specific in 'unresolved import' error patternsMarijn Haverbeke-6/+6
To make sure different test set-ups (check-fast) don't cause the tests to fail.
2011-12-02Make import ignore imports coming after themMarijn Haverbeke-2/+2
This broke no code at all, so I guess people were already writing imports in this style. Issue #1228
2011-11-24rustc: Add a path attribute for crate directivesHaitao Li-3/+0
The path information was an optional "filename" component of crate directive AST. It is now replaced by an attribute with metadata named "path". With this commit, a directive mod foo = "foo.rs"; should be written as: #[path = "foo.rs"] mod foo; Closes issue #906.
2011-11-23Rollback return-by-referenceMarijn Haverbeke-69/+0
It's proving too inflexible, so I'm ripping out the extra complexity in the hope that regions will, at some point, provide something similar. Closes #918
2011-11-22Properly check for copies when constructing a record using withMarijn Haverbeke-0/+13
Closes #989
2011-11-22Only warn about unreachable range patterns when appropriateMarijn Haverbeke-9/+3
Also simplifies the literal-munging, and moves it into ast_util Closes #1170
2011-11-21Add a pass that checks that blocks are only used in safe waysMarijn Haverbeke-6/+3
Closes #1188
2011-11-18Add some tests for new kind systemMarijn Haverbeke-56/+0
Issue #1177
2011-11-18Update stdlib, compiler, and tests to new kind systemMarijn Haverbeke-171/+21
This involved adding 'copy' to more generics than I hoped, but an experiment with making it implicit showed that that way lies madness -- unless enforced, you will not remember to mark functions that don't copy as not requiring copyable kind. Issue #1177
2011-11-18Preparation for kind system overhaulMarijn Haverbeke-0/+16
This goes before a snapshot, so that subsequenct patches can make the transition without breaking the build. Disables kind checking pass, makes parser accept both new and old-style kind annotation. Issue #1177
2011-11-17rustc: Add a flag '--warn-unused-imports'Haitao Li-0/+1
Followup of issue #889
2011-11-16Replace 'mutable?' with 'const'Brian Anderson-13/+13
2011-11-16Use attributes for native module ABI and link nameHaitao Li-2/+4
This patch changes how to specify ABI and link name of a native module. Before: native "cdecl" mod llvm = "rustllvm" {...} After: #[abi = "cdecl"] #[link_name = "rustllvm"] native mod llvm {...} The old optional syntax for ABI and link name is no longer supported. Fixes issue #547
2011-11-15Fix handling of loops and conditionals in alias.rsMarijn Haverbeke-0/+10
It now threads information about invalidated aliases through the AST properly. This makes it more permissive for conditionals (invalidating an alias in one branch doesn't prevent you from using it in another), and less permissive for loops (it now properly notices when a loop invalidates an alias that it might still use in another iteration). Closes #1144
2011-11-13Make various binops not typecheck for unsafe pointers. Closes #1173Brian Anderson-0/+4
2011-11-10rustc: Add support of warning on unused importsHaitao Li-0/+19
Fixes issue #889
2011-11-09Add "cdecl" as synonym for "c-stack-cdecl"Brian Anderson-2/+2
2011-11-08Remove all uses of native cdecl except for those that yieldBrian Anderson-2/+2
2011-11-07Add test for if without else cannot return resultBrian Anderson-0/+6
2011-11-07Add tests for blocks that must not have resultsBrian Anderson-0/+29
2011-11-03Update some more tests for 1a68a9882Marijn Haverbeke-42/+0
2011-11-02Make ptr::addr_of return an immutable vec, add mut_addr_ofMarijn Haverbeke-2/+2
2011-10-29stdlib: Make io failures recoverable by returning a resultBrian Anderson-0/+3
2011-10-28Move to short kind kinds words in test suiteMarijn Haverbeke-3/+3
Issue #1076
2011-10-27Add tests for the 'as' (cast) operatorMatt Brubeck-0/+16
2011-10-25Update our code to new type parameter kind syntaxMarijn Haverbeke-3/+3
Closes #1067
2011-10-25Step one towards new type param kind syntaxMarijn Haverbeke-1/+1
Issue #1067 Needs a snapshot to finalize.
2011-10-21Remove some semicolons after block callsMarijn Haverbeke-1/+1
The remaining ones can be removed after the next snapshot. (Or we can let the next pretty-print pass take care of them.)
2011-10-21Remove remaining uses of iter and for-eachMarijn Haverbeke-16/+3
Issue #1056
2011-10-20Remove temporary fn# syntaxBrian Anderson-7/+7
2011-10-20Make fn denote a bare function. Convert fn to fn@ as neededBrian Anderson-2/+2
2011-10-20Tweak typecheck to enforce covariance on higher-order function argumentsBrian Anderson-0/+14
2011-10-20Drop the 2 from the spawn*2 functionsBrian Anderson-1/+1
Issue #1022
2011-10-20Convert tests to use bare-fn spawnBrian Anderson-2/+2
Issue #1022
2011-10-19Fail nicer when the parser doesn't find an expected string literalBrian Anderson-0/+3
Closes #1028
2011-10-18Fix parse error in constrained-type-missing-check.rsMatt Brubeck-2/+2
2011-10-17Enforce variance rules for mutable typesBrian Anderson-0/+92
2011-10-17Don't allow assignment to mutable-wha?Brian Anderson-0/+64
2011-10-13Don't allow the value of generic bare functions to be takenBrian Anderson-0/+23
Issue #1038
2011-10-12reimplement some of the unsafe stuff which got lostNiko Matsakis-0/+9
- blocks inherit unsafety - remove the --check-unsafe flag - add unsafe annotations where needed to get things to compile
2011-10-12new testNiko Matsakis-0/+11