| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-07-29 | Auto merge of #52767 - ljedrz:avoid_format, r=petrochenkov | bors | -1/+1 | |
| Prefer to_string() to format!() Simple benchmarks suggest in some cases it can be faster by even 37%: ``` test converting_f64_long ... bench: 339 ns/iter (+/- 199) test converting_f64_short ... bench: 136 ns/iter (+/- 34) test converting_i32_long ... bench: 87 ns/iter (+/- 16) test converting_i32_short ... bench: 87 ns/iter (+/- 49) test converting_str ... bench: 54 ns/iter (+/- 15) test formatting_f64_long ... bench: 349 ns/iter (+/- 176) test formatting_f64_short ... bench: 145 ns/iter (+/- 14) test formatting_i32_long ... bench: 98 ns/iter (+/- 14) test formatting_i32_short ... bench: 93 ns/iter (+/- 15) test formatting_str ... bench: 86 ns/iter (+/- 23) ``` | ||||
| 2018-07-29 | Auto merge of #52764 - sinkuu:cleanup, r=nikomatsakis | bors | -6/+4 | |
| Misc cleanups | ||||
| 2018-07-27 | Use slices where a vector is not necessary | ljedrz | -1/+1 | |
| 2018-07-27 | Use str::repeat | Shotaro Yamada | -6/+4 | |
| 2018-07-27 | Prefer to_string() to format!() | ljedrz | -1/+1 | |
| 2018-07-18 | Implement existential types | Oliver Schneider | -5/+19 | |
| 2018-07-14 | Remove most of `PartialEq` impls from AST and HIR structures | Vadim Petrochenkov | -1/+3 | |
| 2018-07-10 | Deny bare trait objects in in src/libsyntax | ljedrz | -10/+10 | |
| 2018-06-27 | Generate the `NodeId` for `existential type` in the AST | Oliver Schneider | -1/+1 | |
| 2018-06-26 | inclusive range syntax lint (`...` → `..=`) | Zack M. Davis | -2/+2 | |
| Our implementation ends up changing the `PatKind::Range` variant in the AST to take a `Spanned<RangeEnd>` instead of just a `RangeEnd`, because the alternative would be to try to infer the span of the range operator from the spans of the start and end subexpressions, which is both hideous and nontrivial to get right (whereas getting the change to the AST right was a simple game of type tennis). This is concerning #51043. | ||||
| 2018-06-23 | hygiene: Rename `MarkKind` to `Transparency` | Vadim Petrochenkov | -2/+2 | |
| Move `is_builtin` for `Mark` to a separate flag | ||||
| 2018-06-22 | Update libsyntax test | Taylor Cramer | -4/+14 | |
| 2018-06-21 | async await desugaring and tests | Taylor Cramer | -6/+18 | |
| 2018-06-21 | Parse async fn header. | Without Boats | -27/+20 | |
| This is gated on edition 2018 & the `async_await` feature gate. The parser will accept `async fn` and `async unsafe fn` as fn items. Along the same lines as `const fn`, only `async unsafe fn` is permitted, not `unsafe async fn`.The parser will not accept `async` functions as trait methods. To do a little code clean up, four fields of the function type struct have been merged into the new `FnHeader` struct: constness, asyncness, unsafety, and ABI. Also, a small bug in HIR printing is fixed: it previously printed `const unsafe fn` as `unsafe const fn`, which is grammatically incorrect. | ||||
| 2018-06-20 | Make GenericBound explicit | varkor | -5/+5 | |
| 2018-06-20 | Rename ParamBound(s) to GenericBound(s) | varkor | -5/+5 | |
| 2018-06-20 | Rename TraitTyParamBound to ParamBound::Trait | varkor | -4/+4 | |
| 2018-06-20 | Remove name from GenericParamKind::Lifetime | varkor | -22/+15 | |
| 2018-06-20 | Use ParamBounds in WhereRegionPredicate | varkor | -17/+15 | |
| 2018-06-20 | Lift bounds into GenericParam | varkor | -9/+14 | |
| 2018-06-20 | Rename structures in ast | varkor | -10/+10 | |
| 2018-06-20 | Remove methods from ast::GenericParam and ast::Generics | varkor | -1/+1 | |
| 2018-06-20 | Refactor ast::GenericParam as a struct | varkor | -19/+17 | |
| 2018-06-20 | Rename ast::GenericParam and ast::GenericArg | varkor | -10/+10 | |
| It's so confusing to have everything having the same name, at least while refactoring. | ||||
| 2018-06-20 | Make method and variable names more consistent | varkor | -6/+8 | |
| 2018-06-20 | Rename "parameter" to "arg" | varkor | -14/+14 | |
| 2018-06-20 | Rename PathParameter(s) to GenericArg(s) | varkor | -7/+7 | |
| 2018-06-20 | Rename *Parameter to *Param | varkor | -4/+4 | |
| 2018-06-20 | Consolidate PathParameters and AngleBracketedParameterData | varkor | -19/+10 | |
| 2018-06-14 | create multiple HIR items for a use statement | QuietMisdreavus | -1/+1 | |
| 2018-05-26 | Auto merge of #51072 - petrochenkov:ifield, r=eddyb | bors | -2/+2 | |
| Use `Ident`s for fields in HIR Continuation of https://github.com/rust-lang/rust/pull/49718, part of https://github.com/rust-lang/rust/issues/49300 | ||||
| 2018-05-26 | Add `Ident::as_str` helper | Vadim Petrochenkov | -2/+2 | |
| 2018-05-24 | restore emplacement syntax (obsolete) | Niko Matsakis | -0/+7 | |
| 2018-05-22 | rustc: Correctly pretty-print macro delimiters | Alex Crichton | -54/+50 | |
| This commit updates the `Mac_` AST structure to keep track of the delimiters that it originally had for its invocation. This allows us to faithfully pretty-print macro invocations not using parentheses (e.g. `vec![...]`). This in turn helps procedural macros due to #43081. Closes #50840 | ||||
| 2018-05-19 | rustc: introduce {ast,hir}::AnonConst to consolidate so-called "embedded ↵ | Eduard-Mihai Burtescu | -6/+6 | |
| constants". | ||||
| 2018-05-17 | Turn some functions from `token.rs` into methods on `Ident` | Vadim Petrochenkov | -1/+1 | |
| 2018-05-16 | Auto merge of #50045 - est31:label_break_value, r=eddyb | bors | -3/+12 | |
| Implement label break value (RFC 2046) Implement label-break-value (#48594). | ||||
| 2018-05-16 | label-break-value: Parsing and AST/HIR changes | est31 | -3/+12 | |
| 2018-05-15 | Represent lifetimes as two joint tokens in proc macros | Vadim Petrochenkov | -0/+1 | |
| 2018-05-13 | Macros: Add a 'literal' fragment specifier | Dan Aloni | -0/+1 | |
| Implements RFC 1576. See: https://github.com/rust-lang/rfcs/blob/master/text/1576-macros-literal-matcher.md Changes are mostly in libsyntax, docs, and tests. Feature gate is enabled for 1.27.0. Many thanks to Vadim Petrochenkov for following through code reviews and suggestions. Example: ````rust macro_rules! test_literal { ($l:literal) => { println!("literal: {}", $l); }; ($e:expr) => { println!("expr: {}", $e); }; } fn main() { let a = 1; test_literal!(a); test_literal!(2); test_literal!(-3); } ``` Output: ``` expr: 1 literal: 2 literal: -3 ``` | ||||
| 2018-05-06 | Fix assertion message generation | Shotaro Yamada | -1/+1 | |
| 2018-05-03 | Auto merge of #50030 - flip1995:rfc2103, r=petrochenkov | bors | -16/+21 | |
| Implement tool_attributes feature (RFC 2103) cc #44690 This is currently just a rebased and compiling (hopefully) version of #47773. Let's see if travis likes this. I will add the implementation for `tool_lints` this week. | ||||
| 2018-05-03 | Remove parse::escape_default(). | Nicholas Nethercote | -1/+1 | |
| str::escape_default() can be used instead. | ||||
| 2018-05-02 | make it compile again | flip1995 | -8/+8 | |
| 2018-05-02 | Remove Option from the return type of Attribute::name() | Seiichi Uchida | -0/+1 | |
| 2018-05-02 | Allow Path for name of MetaItem | Seiichi Uchida | -16/+20 | |
| 2018-04-26 | rustc_target: move in syntax::abi and flip dependency. | Irina Popa | -1/+1 | |
| 2018-04-18 | Auto merge of #49993 - nnethercote:shrink-Token, r=alexcrichton | bors | -3/+3 | |
| Change the hashcounts in raw `Lit` variants from usize to u16. This reduces the size of `Token` from 32 bytes to 24 bytes on 64-bit platforms. | ||||
| 2018-04-12 | AST/HIR: Merge field access expressions for named and numeric fields | Vadim Petrochenkov | -7/+1 | |
| 2018-04-12 | Change the hashcounts in raw `Lit` variants from usize to u16. | Nicholas Nethercote | -3/+3 | |
| This reduces the size of `Token` from 32 bytes to 24 bytes on 64-bit platforms. | ||||
