about summary refs log tree commit diff
path: root/src/comp/front
AgeCommit message (Collapse)AuthorLines
2012-03-02Move src/comp to src/rustcGraydon Hoare-953/+0
2012-02-17Refactor view_path to parse (but not yet process) export globs, unify code ↵Graydon Hoare-1/+2
paths.
2012-02-15make mut a keyword synonymous with mutableNiko Matsakis-7/+7
first step towards issue #1273
2012-02-09Remove some pointless importsMarijn Haverbeke-4/+0
2012-02-06Handle built-in typenames in the resolve pass, rather than in parserMarijn Haverbeke-2/+3
Closes #1728 Comments out a section of debuginfo.rs. This code was already broken (only being called when --xg was passed, and only working on trivial programs).
2012-02-05Fix macro backtraces.Kevin Atkinson-1/+1
In addition add information about the macro doing the expansion, and move the printing of the expansion backtrace from codemap::span_to_str to the diagnostic code. The backtrace is now more verbose and includes information on the macro doing the expansion, in addition to the expansion site.
2012-02-05infer modes rather than overwriting with expected tyNiko Matsakis-1/+1
2012-01-31Change option::t to optionTim Chevalier-10/+10
Now that core exports "option" as a synonym for option::t, search-and- replace option::t with option. The only place that still refers to option::t are the modules in libcore that use option, because fixing this requires a new snapshot (forthcoming).
2012-01-30Change all ternary ops to if/then/elsePaul Woolcock-1/+1
All the files below had at least one instance of the ternary operator present in the source. All have been changed to the equivalent if/then/else expression.
2012-01-26rustc: Switch the --no-core switch to a #[no_core] attributeBrian Anderson-2/+12
2012-01-26rustc: Move core injection to its own moduleBrian Anderson-0/+35
2012-01-23Allow ast_fold_precursor to change the span.Kevin Atkinson-2/+2
This involved changing the prototype for the callbacks to thread the span though. A wrapper function, fold::wrap, can be used to wrap the old style callbacks.
2012-01-19Use fn~ to simplify the core::test interfaceBrian Anderson-10/+1
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-5/+5
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-17rustc: Allow std to be built as a test runnerBrian Anderson-3/+16
2012-01-16rustc: Move some attribute accessors from rustdoc to rustcBrian Anderson-0/+50
2012-01-13deprecate fn exprs and the fn() type, preferring fn@ and native fnNiko Matsakis-21/+17
2012-01-12Make driver::session::session no longer an objectMarijn Haverbeke-3/+4
Rather, it is now a struct where properties like opts are accessed directly, and the error-reporting methods are part of a static impl (with the same name as the type).
2012-01-09Change all uses of 'when' in alt-patterns to 'if'Austin Seipp-1/+1
Issue #1396
2012-01-05rustc: Allow the test runner to run unexported testsBrian Anderson-1/+4
2012-01-05rustc: Configure out #[test] functions when not testingBrian Anderson-20/+52
2012-01-05require a non-semi expr acting as a stmt to have unit return typeNiko Matsakis-1/+1
2012-01-05Switch to new param kind bound syntaxMarijn Haverbeke-2/+2
And remove support for the old syntax
2011-12-29split proto from fn_decl, as not all fn_decls know the proto.Niko Matsakis-6/+4
this will address the (crashing) new test added.
2011-12-22Merge all 3 log syntaxes, tidy up residual misuses.Graydon Hoare-4/+4
2011-12-22Merge branch 'master' of github.com:graydon/rustGraydon Hoare-25/+13
2011-12-22Register snapshots and switch logging over to use of log_full or #error / ↵Graydon Hoare-9/+9
#debug.
2011-12-22Unify some data structures in syntax::ast that were doing the same thingMarijn Haverbeke-25/+13
As a preparation to removing some duplication in typeck.
2011-12-19resolve capture clausesNiko Matsakis-6/+3
2011-12-16reorder args to the various vec, option fns so blk comes lastNiko Matsakis-16/+16
2011-12-14change syntax from lambda[send] to sendfnNiko Matsakis-1/+0
2011-12-14push changes through to get things compiling, if not running.Niko Matsakis-1/+10
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-3/+4
2011-12-06Fix next-node-id "hackasaurus" in comp/front/test.rs.Graydon Hoare-37/+25
2011-11-30Box ast::path valuesMarijn Haverbeke-14/+14
It seems inefficient to copy them around. Let's measure whether that's actually > the case
2011-11-23Allow import directives in any blockMarijn Haverbeke-1/+3
Closes #49
2011-11-21rustc: Remove abi from ast::native_modHaitao Li-3/+23
2011-11-18Update stdlib, compiler, and tests to new kind systemMarijn Haverbeke-2/+4
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-17remove compile-command from local variable blocksNiko Matsakis-3/+0
2011-11-16Use attributes for native module ABI and link nameHaitao Li-2/+1
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-16rustc: Use link_name attribute for native functionHaitao Li-0/+10
Fixes issue #906
2011-11-10Cleanup unused importsHaitao Li-3/+2
2011-11-01Add should_fail annotation for unit testsMatt Brubeck-3/+19
This allows test cases to assert that a function is expected to fail. Tests annotated with "should_fail" will succeed only if the function fails.
2011-10-29Add the ability to ignore tests by compiler configBrian Anderson-21/+34
[test] [ignore(cfg(target_os = "win32"))]
2011-10-25Update our code to new type parameter kind syntaxMarijn Haverbeke-2/+2
Closes #1067
2011-10-21Change the way block calls are parsed, mark them as block-calls.Marijn Haverbeke-3/+3
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-20Remove unused empty_fn_ty from rustc::front::testBrian Anderson-9/+0
2011-10-20Merge ast::proto_shared and ast::proto_closureBrian Anderson-2/+2
Now they are both just proto_shared and proto_shared takes an argument indicating that it is sugared as 'lambda'
2011-10-20Rename ast::proto_fn to ast::proto_sharedBrian Anderson-2/+2
2011-10-20Make fn denote a bare function. Convert fn to fn@ as neededBrian Anderson-2/+2