| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-07-29 | Replace push loops with collect() and extend() where possible | ljedrz | -8/+7 | |
| 2018-07-24 | Add span label for format str missing specifier | Esteban Küber | -8/+11 | |
| 2018-07-24 | Use suggestions for `printf` format | Esteban Küber | -1/+16 | |
| 2018-07-24 | Reword missing formatting arguments label | Esteban Küber | -1/+1 | |
| 2018-07-23 | Only point at inside of string literals if they're actually string literals | Esteban Küber | -6/+24 | |
| 2018-07-23 | Point only at invalid positional arguments | Esteban Küber | -62/+76 | |
| 2018-07-23 | Point at incorrect named arg in format string | Esteban Küber | -2/+19 | |
| 2018-07-22 | Point at internal span in format string | Esteban Küber | -12/+22 | |
| 2018-07-21 | fix logic bug | Esteban Küber | -2/+2 | |
| 2018-07-21 | Remove dependency on `libsyntax` | Esteban Küber | -1/+5 | |
| 2018-07-21 | Gate `format_args_nll` behind feature flag | Esteban Küber | -0/+15 | |
| 2018-07-21 | Suggest space separated format str literal | Esteban Küber | -1/+1 | |
| 2018-07-19 | Use correct spans for format string errors | Esteban Küber | -1/+1 | |
| When encountering format string errors in a raw string, or regular string literal with embedded newlines, account for the positional change to use correct spans. :drive by fix: 🚗 | ||||
| 2018-07-19 | rework println | Esteban Küber | -2/+20 | |
| 2018-07-19 | Improve suggestion for missing fmt str in println | Esteban Küber | -6/+22 | |
| Avoid using `concat!(fmt, "\n")` to improve the diagnostics being emitted when the first `println!()` argument isn't a formatting string literal. | ||||
| 2018-07-12 | Deny bare trait objects in src/libsyntax_ext | ljedrz | -1/+1 | |
| 2018-05-26 | Add `Ident::as_str` helper | Vadim Petrochenkov | -1/+1 | |
| 2018-05-17 | Rollup merge of #50610 - estebank:fmt-str, r=Kimundi | Mark Simulacrum | -3/+6 | |
| Improve format string errors Point at format string position inside the formatting string: ``` error: invalid format string: unmatched `}` found --> $DIR/format-string-error.rs:21:22 | LL | let _ = format!("}"); | ^ unmatched `}` in format string ``` Explain that argument names can't start with an underscore: ``` error: invalid format string: invalid argument name `_foo` --> $DIR/format-string-error.rs:15:23 | LL | let _ = format!("{_foo}", _foo = 6usize); | ^^^^ invalid argument name in format string | = note: argument names cannot start with an underscore ``` Fix #23476. The more accurate spans will only be seen when using `format!` directly, when using `println!` the diagnostics machinery makes the span be the entire statement. | ||||
| 2018-05-17 | Rename trans to codegen everywhere. | Irina Popa | -14/+14 | |
| 2018-05-10 | Improve format string errors | Esteban Küber | -3/+6 | |
| - Point at format string position inside the formatting string - Explain that argument names can't start with an underscore | ||||
| 2018-04-24 | Gensym arguments for format macro | James Sanderson | -7/+9 | |
| 2018-04-06 | Use `Span::apply_mark` where possible | Vadim Petrochenkov | -3/+3 | |
| 2018-03-18 | Initial implementation of RFC 2151, Raw Identifiers | Lymia Aluysia | -1/+1 | |
| 2018-03-05 | while let all the things | leonardo.yvens | -11/+6 | |
| 2018-01-16 | Add secondary span pointing at the statement (error span) | Esteban Küber | -2/+6 | |
| 2018-01-15 | Point at unused arguments for format string | Esteban Küber | -10/+2 | |
| Avoid overlapping spans by only pointing at the arguments that are not being used in the argument string. Enable libsyntax to have diagnostics with multiple primary spans by accepting `Into<MultiSpan>` instead of `Span`. | ||||
| 2017-11-09 | Retain information on whether a format argument has explicit position | Tommy Ip | -16/+34 | |
| 2017-11-06 | Make format! positional argument errors clear | Tommy Ip | -8/+41 | |
| 2017-09-10 | Use rvalue promotion to 'static instead of static items. | Eduard-Mihai Burtescu | -36/+3 | |
| 2017-08-30 | Make fields of `Span` private | Vadim Petrochenkov | -7/+5 | |
| 2017-08-15 | use field init shorthand EVERYWHERE | Zack M. Davis | -6/+6 | |
| Like #43008 (f668999), but _much more aggressive_. | ||||
| 2017-08-01 | Fixed extra cases found in better checking. | Isaac van Bakel | -1/+1 | |
| 2017-07-28 | format!: use a dummy span rather than callee span for the span base for ↵ | Nick Cameron | -3/+5 | |
| temporary variables | ||||
| 2017-07-18 | Change the error message for multiple unused print params | Perry Fraser | -2/+6 | |
| 2017-06-26 | Simplify `hygiene::Mark` application, and | Jeffrey Seyfried | -5/+8 | |
| remove variant `Token::SubstNt` in favor of `quoted::TokenTree::MetaVar`. | ||||
| 2017-06-23 | Removed as many "```ignore" as possible. | kennytm | -1/+2 | |
| Replaced by adding extra imports, adding hidden code (`# ...`), modifying examples to be runnable (sorry Homura), specifying non-Rust code, and converting to should_panic, no_run, or compile_fail. Remaining "```ignore"s received an explanation why they are being ignored. | ||||
| 2017-05-25 | Hygienize lifetimes. | Jeffrey Seyfried | -2/+2 | |
| 2017-03-29 | Refactor how spans are combined in the parser. | Jeffrey Seyfried | -11/+4 | |
| 2017-03-29 | Merge `ExpnId` and `SyntaxContext`. | Jeffrey Seyfried | -1/+2 | |
| 2016-11-21 | Use `Symbol` instead of `InternedString` in the AST, HIR, and various other ↵ | Jeffrey Seyfried | -4/+4 | |
| places. | ||||
| 2016-11-20 | Move `syntax::util::interner` -> `syntax::symbol`, cleanup. | Jeffrey Seyfried | -2/+3 | |
| 2016-11-12 | Rollup merge of #37695 - estebank:unescaped-curly, r=alexcrichton | Eduard-Mihai Burtescu | -2/+6 | |
| On fmt string with unescaped `{` note how to escape On cases of malformed format strings where a `{` hasn't been properly escaped, like `println!("{");`, present a NOTE explaining how to escape the `{` char. Fix #34300. | ||||
| 2016-11-11 | On fmt string with unescaped `{` note how to escape | Esteban Küber | -2/+6 | |
| On cases of malformed format strings where a `{` hasn't been properly escaped, like `println!("{");`, present a note explaining how to escape the `{` char. | ||||
| 2016-11-11 | Add foreign formatting directive detection. | Daniel Keep | -2/+74 | |
| This teaches `format_args!` how to interpret format printf- and shell-style format directives. This is used in cases where there are unused formatting arguments, and the reason for that *might* be because the programmer is trying to use the wrong kind of formatting string. This was prompted by an issue encountered by simulacrum on the #rust IRC channel. In short: although `println!` told them that they weren't using all of the conversion arguments, the problem was in using printf-syle directives rather than ones `println!` would undertand. Where possible, `format_args!` will tell the programmer what they should use instead. For example, it will suggest replacing `%05d` with `{:0>5}`, or `%2$.*3$s` with `{1:.3$}`. Even if it cannot suggest a replacement, it will explicitly note that Rust does not support that style of directive, and direct the user to the `std::fmt` documentation. | ||||
| 2016-09-28 | libsyntax: clearer names for some AST parts | Jonas Schievink | -1/+1 | |
| This applies the HIR changes from the previous commits to the AST, and is thus a syntax-[breaking-change] Renames `PatKind::Vec` to `PatKind::Slice`, since these are called slice patterns, not vec patterns. Renames `TyKind::Vec`, which represents the type `[T]`, to `TyKind::Slice`. Renames `TyKind::FixedLengthVec` to `TyKind::Array`. | ||||
| 2016-09-13 | Avoid needless reexpansions. | Jeffrey Seyfried | -11/+8 | |
| 2016-08-12 | run rustfmt on libsyntax_ext folder | Srinivas Reddy Thatiparthy | -68/+89 | |
| 2016-07-29 | syntax_ext: format: fix ICE with bad named arguments | Wang Xuerui | -1/+3 | |
| 2016-07-14 | syntax_ext: format: better code documentation | Wang Xuerui | -12/+46 | |
| 2016-07-14 | syntax_ext: format: de-duplicate argument objects | Wang Xuerui | -12/+31 | |
