| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2011-11-22 | comp: allowed the declaration of pure fn's in native mods | Stefan Plantikow | -0/+3 | |
| This is especially useful for the native calls in std::math This commit does NOT yet point to new snapshots | ||||
| 2011-11-22 | Add hacks to extract and compile tutorial code | Marijn Haverbeke | -10/+0 | |
| Not included in the build by default, since it's fragile and kludgy. Do something like this to run it: cd doc/tutorial RUSTC=../../build/stage2/bin/rustc bash test.sh Closes #1143 | ||||
| 2011-11-21 | rustc: Remove abi from ast::native_mod | Haitao Li | -22/+3 | |
| 2011-11-18 | Update stdlib, compiler, and tests to new kind system | Marijn Haverbeke | -35/+30 | |
| 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-18 | Add a pass-by-copy parameter passing convention | Marijn Haverbeke | -1/+4 | |
| This is intended to solve the problem of how to pass arguments to constructor functions -- you want to move in rvalues, but not have to explicitly copy stuff that is not an rvalue. The by-copy passing convention will ensure the callee gets its own copy of the value. For rvalues, it'll just pass off the value. For lvalues, it'll make a copy. Issue #1177 | ||||
| 2011-11-18 | Preparation for kind system overhaul | Marijn Haverbeke | -13/+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-17 | remove compile-command from local variable blocks | Niko Matsakis | -4/+0 | |
| 2011-11-16 | Replace 'mutable?' with 'const' | Brian Anderson | -2/+1 | |
| 2011-11-16 | rustc: Accept 'const' as synonym for 'mutable?' | Brian Anderson | -3/+6 | |
| 2011-11-16 | Use attributes for native module ABI and link name | Haitao Li | -46/+20 | |
| 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-16 | Use attributes for native module ABI and link name [temp] | Haitao Li | -1/+25 | |
| This patch adds support of using attributes to specify native mode ABI and link name. The old optional syntax like: native "cdecl" mod llvm = "rustllvm" { ... } is still supported. This is a transitional commit to avoid making a stage1 (backward imcompatible) snapshot. | ||||
| 2011-11-16 | rustc: Use link_name attribute for native function | Haitao Li | -3/+1 | |
| Fixes issue #906 | ||||
| 2011-11-10 | Cleanup unused imports | Haitao Li | -7/+3 | |
| 2011-11-09 | Rename "c-stack-stdcall" ABI to "stdcall" | Brian Anderson | -2/+0 | |
| 2011-11-09 | Rename "c-stack-cdecl" ABI to "cdecl" | Brian Anderson | -2/+0 | |
| 2011-11-09 | Add "cdecl" as synonym for "c-stack-cdecl" | Brian Anderson | -0/+2 | |
| 2011-11-09 | Add "stdcall" as synonym for "c-stack-stdcall" | Brian Anderson | -0/+2 | |
| 2011-11-09 | rustc: Rename native_abi_c_stack_cdecl to native_abi_cdecl | Brian Anderson | -2/+2 | |
| 2011-11-09 | rustc: Rename native_abi_c_stack_stdcall to native_abi_stdcall | Brian Anderson | -1/+1 | |
| 2011-11-09 | Remove native "x86stdcall" ABI | Brian Anderson | -2/+0 | |
| 2011-11-08 | Remove native "cdecl" ABI | Brian Anderson | -3/+2 | |
| 2011-11-07 | Remove native "llvm" ABI | Brian Anderson | -2/+0 | |
| 2011-11-07 | Remove native "rust" ABI | Brian Anderson | -2/+0 | |
| 2011-11-07 | [Parser] parser.rs: Made two error messages less ambiguous | David Rajchenbach-Teller | -2/+6 | |
| 2011-11-03 | Disallow writing to function arguments again | Marijn Haverbeke | -16/+6 | |
| Remove implicit copying hack. Closes #1118 | ||||
| 2011-11-02 | Make 'lambda(...) -> ...' parse as a type | Marijn Haverbeke | -22/+9 | |
| 2011-10-29 | rustc: Support 'companion mod's for crates and directory mods | Brian Anderson | -8/+65 | |
| Under this scheme when parsing foo.rc the parser will also look for foo.rs to fill in the crate-level module, and when evaluating a directory module directive it will look for a .rs file with the same name as the directory. | ||||
| 2011-10-29 | stdlib: Make io failures recoverable by returning a result | Brian Anderson | -2/+11 | |
| 2011-10-28 | rustc: Remove broken --depend flag | Brian Anderson | -9/+0 | |
| 2011-10-28 | Make shared kind the default only for generic functions | Marijn Haverbeke | -17/+13 | |
| You almost never want a function with pinned type params. For types, objects, resources, and tags, pinned types are actually often more sane. For most of these, shared rarely makes sense. Only tricky case is objs -- you'll have to think about the kinds you want there. Issue #1076 | ||||
| 2011-10-28 | Move to blocks, rather than fn@s, in parser.rs | Marijn Haverbeke | -16/+17 | |
| 2011-10-28 | Move to short type parameter keywords | Marijn Haverbeke | -5/+5 | |
| Issue #1076 | ||||
| 2011-10-28 | Start accepting short keywords for parameter kinds | Marijn Haverbeke | -3/+5 | |
| This is a pre-snapshot commit to be able to implement #1076 without the bootstrap compiler getting in my way. | ||||
| 2011-10-25 | Update our code to new type parameter kind syntax | Marijn Haverbeke | -7/+7 | |
| Closes #1067 | ||||
| 2011-10-25 | Remove support for @/~-style type param kind annotation | Marijn Haverbeke | -9/+2 | |
| Issue #1067 | ||||
| 2011-10-25 | Step one towards new type param kind syntax | Marijn Haverbeke | -1/+5 | |
| Issue #1067 Needs a snapshot to finalize. | ||||
| 2011-10-21 | Be more careful when parsing block calls | Marijn Haverbeke | -1/+2 | |
| Previously, the parser would try to interpret this as a block call: if true {} // No semicolon {|i, am, a, block|}; Which, though unlikely, might come up in practice. | ||||
| 2011-10-21 | Change the way block calls are parsed, mark them as block-calls. | Marijn Haverbeke | -17/+18 | |
| This makes it possible to omit the semicolon after the block, and will cause the pretty-printer to properly print such calls (if pretty-printing of blocks wasn't so broken). Block calls (with the block outside of the parentheses) can now only occur at statement level, and their value can not be used. When calling a block-style function that returns a useful value, the block must be put insde the parentheses. Issue #1054 | ||||
| 2011-10-21 | Drop support for iter, put, and for-each | Marijn Haverbeke | -36/+11 | |
| Closes #1056 | ||||
| 2011-10-21 | Support Ruby-style block argument syntax | Marijn Haverbeke | -12/+21 | |
| Issue #1054 | ||||
| 2011-10-20 | Remove temporary fn# syntax | Brian Anderson | -15/+4 | |
| 2011-10-20 | Don't allow fn@ items | Brian Anderson | -3/+0 | |
| fn@ is intended to be caputring but isn't implemented. | ||||
| 2011-10-20 | Merge ast::proto_shared and ast::proto_closure | Brian Anderson | -5/+6 | |
| Now they are both just proto_shared and proto_shared takes an argument indicating that it is sugared as 'lambda' | ||||
| 2011-10-20 | Rename ast::proto_fn to ast::proto_shared | Brian Anderson | -4/+4 | |
| 2011-10-20 | Make fn denote a bare function. Convert fn to fn@ as needed | Brian Anderson | -10/+12 | |
| 2011-10-20 | Parse obj methods as proto_bare | Brian Anderson | -10/+8 | |
| I don't know if this is the right thing to do, but it works and it lets 'fn' always mean proto_bare | ||||
| 2011-10-20 | Split parsing of fn proto between types, items and anons | Brian Anderson | -6/+30 | |
| The meaning of various fn incantations is going to get temporarily confusing | ||||
| 2011-10-19 | Fail nicer when the parser doesn't find an expected string literal | Brian Anderson | -2/+4 | |
| Closes #1028 | ||||
| 2011-10-18 | Introduce fn@ as a synonym for fn | Brian Anderson | -0/+3 | |
| 2011-10-12 | make native functions markable as unsafe and incorporate that | Niko Matsakis | -4/+7 | |
| into the type check | ||||
