about summary refs log tree commit diff
path: root/src/test/compile-fail/missing-do.rs
AgeCommit message (Collapse)AuthorLines
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-1/+1
I believe this patch incorporates all expected syntax changes from extern function reform (#3678). You can now write things like: extern "<abi>" fn foo(s: S) -> T { ... } extern "<abi>" mod { ... } extern "<abi>" fn(S) -> T The ABI for foreign functions is taken from this syntax (rather than from an annotation). We support the full ABI specification I described on the mailing list. The correct ABI is chosen based on the target architecture. Calls by pointer to C functions are not yet supported, and the Rust type of crust fns is still *u8.
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-1/+1
2013-01-24syntax/rustc: Improve error message for misuse of `for` loopTim Chevalier-1/+1
Print out a clearer error message when a `for` gets used with the wrong type of iterator. Also fix spans on `for` loop bodies, and suppress some more derived errors. r=brson Closes #3651
2013-01-09A collection of refactorings that I found it hard/tiresome to divide:Niko Matsakis-1/+1
- Make `extern fn()` assignable to any closure type, rather than a subtype. - Remove unused int_ty_set and float_ty_set - Refactor variable unification and make it more DRY - Do fn sub/lub/glb on the level of fn_sig - Rename infer::to_str::ToStr to infer::to_str::InferStr - Capitalize names of various types - Correct hashing of FnMeta - Convert various records-of-fns into structs-of-fns. This is both eliminating use of deprecated features and more forwards compatible with fn reform. r=pcwalton
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-11-06Cleanup how we handle proto in types, remove unsound subtypingNiko Matsakis-1/+1
Fixes #1896 which was never truly fixed, just masked. The given tests would have failed had they used `~fn()` and not `@fn()`. They now result in compilation errors. Fixes #2978. Necessary first step for #2202, #2263.
2012-08-13test: Modify error messages in some compile-fail tests in an attempt to ↵Patrick Walton-1/+1
unbreak the tree
2012-08-03rustc: Merge fn& and fn in favor of fn&.Patrick Walton-1/+1
This is a step on the way to moving the function "proto" sigil out front.
2012-07-14Treat bare vector and string literals as fixed length vecs. Closes #2922.Michael Sullivan-1/+1
2012-07-13Change the pretty printer to print vstores for strs in prefix notation.Michael Sullivan-1/+1
2012-07-12Make str be treated as str/~.Michael Sullivan-1/+1
2012-07-02Update compile-fail/missing-do for new error-comment syntaxBrian Anderson-3/+3
2012-07-02Added testcase for the missing do compile noteArmin Ronacher-0/+9