summary refs log tree commit diff
path: root/src/libsyntax/ext/quote.rs
AgeCommit message (Collapse)AuthorLines
2013-06-25great renaming propagation: syntaxCorey Richardson-5/+2
2013-06-23vec: remove BaseIter implementationDaniel Micay-1/+1
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-16remove unused importsHuon Wilson-2/+0
2013-06-13Revert "std: convert {vec,str}::to_owned to methods."Brian Anderson-1/+4
This fixes the strange random crashes in compile-fail tests. This reverts commit 96cd61ad034cc9e88ab6a7845c3480dbc1ea62f3. Conflicts: src/librustc/driver/driver.rs src/libstd/str.rs src/libsyntax/ext/quote.rs
2013-06-13Use @str instead of @~str in libsyntax and librustc. Fixes #5048.Huon Wilson-58/+56
This almost removes the StringRef wrapper, since all strings are Equiv-alent now. Removes a lot of `/* bad */ copy *`'s, and converts several things to be &'static str (the lint table and the intrinsics table). There are many instances of .to_managed(), unfortunately.
2013-06-12std: unify the str -> [u8] functions as 3 methods: .as_bytes() and ↵Huon Wilson-2/+0
.as_bytes_with_null[_consume](). The first acts on &str and is not nul-terminated, the last two act on strings that are always null terminated (&'static str, ~str and @str).
2013-06-12std: convert {vec,str}::to_owned to methods.Huon Wilson-4/+2
2013-06-10std: remove str::{connect,concat}*.Huon Wilson-2/+2
2013-06-06Clean up a handful of build warnings.Michael Sullivan-2/+2
2013-06-05remove unused cx'sJohn Clements-90/+90
2013-06-05token_to_ident takes argument by referenceJohn Clements-1/+1
2013-06-05interner just uses uints, not idents with syntax contextJohn Clements-3/+3
2013-06-05just use TLS internerJohn Clements-8/+8
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+2
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+4
to libextra
2013-05-22syntax/ext: convert all AstBuilder methods to a uniform syntax.Huon Wilson-120/+106
2013-05-22syntax/ext: migrate build.rs functions to AstBuilder methods.Huon Wilson-60/+60
2013-05-22syntax/ext: modernise ext_ctxt to be CamelCase and use new.Huon Wilson-62/+62
2013-05-20Remove all unnecessary allocations (as flagged by lint)Alex Crichton-3/+3
2013-05-17Re-implement lint with less emphasis on item idsAlex Crichton-5/+5
This way it's much easier to add lints throughout compilation correctly, and functions on impls can alter the way lints are emitted.
2013-05-14syntax: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-4/+4
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-2/+2
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-11auto merge of #6389 : sonwow/rust/issue-3356, r=bstriebors-2/+2
Fix for #3356
2013-05-10renamed str::from_slice to str::to_ownedYoungsoo Son-1/+1
2013-05-10renamed vec::from_slice to vec::to_ownedYoungsoo Son-1/+1
2013-05-10auto merge of #6356 : dotdash/rust/strinterner, r=pcwaltonbors-18/+18
&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str.
2013-05-09Use a specialized string interner to reduce the need for owned stringsBjörn Steinbrink-18/+18
&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str.
2013-05-09Fix typosSean Moon-1/+1
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-1/+0
2013-04-27only use #[no_core] in libcoreDaniel Micay-3/+0
2013-04-19syntax: de-mode and prepare for de-modeing rustcAlex Crichton-3/+3
2013-03-27syntax: pass some values around by referenceErick Tryzelaar-4/+4
2013-03-27syntax: Add new values that can be used with the quasiquoterErick Tryzelaar-2/+157
2013-03-26Rip out old code that still structured method calls as aNiko Matsakis-37/+31
expr_call(expr_field(...)) rather than an expr_method_call. There is probably more such code in trans that should be removed.
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-0/+6
notation. rs=delifetiming
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-36/+36
2013-03-04Remove unused imports throughout src/Alex Crichton-3/+0
2013-03-03libsyntax: add &self to extensionsErick Tryzelaar-8/+8
2013-03-01Merge remote-tracking branch 'remotes/origin/incoming' into incomingErick Tryzelaar-3/+5
2013-02-28Fix implicit leaks of imports throughout librariesAlex Crichton-3/+5
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-25/+25
2013-02-27Introduce lifetime declarations into the lists of type parameters.Niko Matsakis-25/+25
Major changes are: - replace ~[ty_param] with Generics structure, which includes both OptVec<TyParam> and OptVec<Lifetime>; - the use of syntax::opt_vec to avoid allocation for empty lists; cc #4846
2013-02-26libsyntax: remove vecs_implicitly_copyable from the syntax extensionsErick Tryzelaar-4/+4
2013-02-25libsyntax: convert visit to pass ty_params by referenceErick Tryzelaar-9/+13
2013-02-22libsyntax: De-mut the parser. rs=demutingPatrick Walton-1/+1
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-16/+16
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-4/+4
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-4/+4
2013-01-29libstd: Remove "dual impls" from the language and enforce coherence rules. ↵Patrick Walton-1/+1
r=brson "Dual impls" are impls that are both type implementations and trait implementations. They can lead to ambiguity and so this patch removes them from the language. This also enforces coherence rules. Without this patch, records can implement traits not defined in the current crate. This patch fixes this, and updates all of rustc to adhere to the new enforcement. Most of this patch is fixing rustc to obey the coherence rules, which involves converting a bunch of records to structs.
2013-01-23renaming to adhere to conventionsJohn Clements-12/+12