about summary refs log tree commit diff
path: root/src/libsyntax/ext/expand.rs
AgeCommit message (Collapse)AuthorLines
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-1/+1
2013-03-22libsyntax: Introduce the new `assert!` macro; make `assert` no longer a keywordPatrick Walton-0/+13
2013-03-20change some uses of fail_unless to assert_eqJohn Clements-3/+2
2013-03-20add assert_eq! macroJohn Clements-0/+10
the assert_eq! macro compares its arguments and fails if they're not equal. It's more informative than fail_unless!, because it explicitly writes the given and expected arguments on failure.
2013-03-19Allow custom messages on assert statementsAlex Crichton-0/+5
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-20/+20
2013-03-11Remove the log keyword (by renaming it to __log)Brian Anderson-8/+8
We can't quite remove logging from the language, but this hides the keyword.
2013-03-11core: Remove logging constantsBrian Anderson-8/+8
2013-03-08auto merge of #5278 : brson/rust/logplusplus, r=brsonbors-8/+32
r? `log` can polymorphically log anything, but debug!, etc. requires a format string. With this patch you can equivalently write `debug!(foo)` or `debug!("%?", foo)`. I'm doing this because I was trying to remove `log` (replacing it with nothing, at least temporarily), but there are a number of logging statements that just want to print an arbitrary value and don't care about the format string. I'm not entirely convinced this is a good change, since it overloads the implementation of these macros and makes their usage slightly more nuanced.
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-1/+1
2013-03-07Make debug!, etc. macros not require a format stringBrian Anderson-8/+32
The one thing `log` can still do is polymorphically log anything, but debug!, etc. require a format string. With this patch you can equivalently write `debug!(foo)` or `debug!("%?", foo)`
2013-03-06Add manual &self/ and &static/ and /&self declarations thatNiko Matsakis-4/+5
are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations.
2013-03-05auto merge of #5231 : jbclements/rust/better-macro-error-message, r=graydonbors-5/+13
Macro invocations with path separators (e.g. foo::bar!()) now produce a sensible error message, rather than an assertion failure. Also added compile-fail test case. Fixes #5218 ?
2013-03-04simplified msg (TMI on old one)John Clements-2/+2
2013-03-04better error message for macros with MOD_SEPsJohn Clements-5/+13
2013-03-04Remove unused imports throughout src/Alex Crichton-1/+0
2013-03-02libsyntax: Remove `fn@`, `fn~`, and `fn&` from libsyntax. rs=defunPatrick Walton-16/+28
2013-03-01Merge remote-tracking branch 'remotes/origin/incoming' into incomingErick Tryzelaar-2/+11
2013-02-28Fix implicit leaks of imports throughout librariesAlex Crichton-2/+11
Also touch up use of 'pub' and move some tests around so the tested functions don't have to be 'pub'
2013-02-28Merge remote-tracking branch 'remotes/origin/incoming' into incomingErick Tryzelaar-7/+11
2013-02-27Merge remote-tracking branch 'remotes/origin/incoming' into incomingErick Tryzelaar-49/+269
2013-02-26libsyntax: remove vecs_implicitly_copyable from the syntax extensionsErick Tryzelaar-12/+15
2013-02-26typo-fixing and name-changesJohn Clements-3/+1
2013-02-26Macros now leave scopeJohn Clements-49/+264
Macro scope is now delimited by function, block, and module boundaries, except for modules that are marked with #[macro_escape], which allows macros to escape.
2013-02-25libsyntax: progress on making syntax::visit vecs_implicitly_copyable-freeErick Tryzelaar-62/+69
2013-02-21Get rid of structural records in libsyntax and the last bit in librustc.Luqman Aden-15/+33
2013-02-19convert SyntaxExtensions's key to a @~strErick Tryzelaar-5/+5
2013-02-19convert syntax::attr to use @~strsErick Tryzelaar-2/+2
2013-02-19Alias HashMap<~str, SyntaxExtension> to SyntaxExtensionsErick Tryzelaar-5/+5
2013-02-19libsyntax and librustc: minor cleanupErick Tryzelaar-5/+3
2013-02-14remove die definition and use in doc testsNick Desaulniers-9/+0
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-3/+3
2013-02-05oldmap: use &K instead of K in find and getPatrick Walton-4/+4
This reverts commit a4250a96fdf61142a9c8dbb6d37ae8435c99e396. This is not the cause of the nonexhaustive-match failure.
2013-02-05Revert "oldmap: use &K instead of K in find and get"Graydon Hoare-4/+4
This reverts commit 8e643525d4e5bca993dada43615916c382a0645b.
2013-02-03oldmap: use &K instead of K in find and getDaniel Micay-4/+4
2013-02-03rename map -> oldmap and mark it as deprecatedDaniel Micay-1/+1
LinearMap is quite a bit faster, and is fully owned/sendable without requiring copies. The older std::map also doesn't use explicit self and relies on mutable fields.
2013-02-01Merge remote-tracking branch 'nickdesaulniers/issue4524' into nocomm1Brian Anderson-0/+9
2013-02-01Remove fail keyword from lexer & parser and clean up remaining calls toNick Desaulniers-0/+9
fail Fix merge conflicts - Issue 4524
2013-01-31test cases, cleanupJohn Clements-2/+2
2013-01-29libsyntax: De-export libsyntax. rs=deexportingPatrick Walton-27/+23
2013-01-23libsyntax: Implement `assert` as a macro (called `fail_unless!` on a ↵Patrick Walton-0/+8
transitionary basis to avoid conflicting with the keyword right now). r=brson
2013-01-23Long linesTim Chevalier-1/+2
2013-01-23renaming to adhere to conventionsJohn Clements-24/+21
2013-01-20Convert many libsyntax records into structsErick Tryzelaar-2/+6
Specifically: ast_map::ctx ast_util::id_range diagnostic::{handler_t,codemap_t} auto_encode::field ext::base::{macro_def,syntax_expander_tt,syntax_expander_tt_item} ext::pipes::proto::next_state
2013-01-20convert the remaining ast record types into structsErick Tryzelaar-1/+1
These are: region,arg,fn_decl,method,_mod,foreign_mod, variant_arg,enum_def_,variant_,trait_ref.
2013-01-11libsyntax: Fix name generation in condition! macroAndrew Paseltiner-1/+1
2013-01-09A collection of refactorings that I found it hard/tiresome to divide:Niko Matsakis-7/+7
- 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
2013-01-09syntax: convert ast::spanned into a structErick Tryzelaar-2/+5
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+2
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-2/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.