rust/src/libsyntax_ext
Mazdak Farrokhzad 12c1e9a193
Rollup merge of #66134 - estebank:unknown-formatting-trait, r=nikomatsakis
Point at formatting descriptor string when it is invalid

When a formatting string contains an invalid descriptor, point at it
instead of the argument:

```
error: unknown format trait `foo`
  --> $DIR/ifmt-bad-arg.rs:86:17
   |
LL |     println!("{:foo}", 1);
   |                 ^^^
   |
   = note: the only appropriate formatting traits are:
           - ``, which uses the `Display` trait
           - `?`, which uses the `Debug` trait
           - `e`, which uses the `LowerExp` trait
           - `E`, which uses the `UpperExp` trait
           - `o`, which uses the `Octal` trait
           - `p`, which uses the `Pointer` trait
           - `b`, which uses the `Binary` trait
           - `x`, which uses the `LowerHex` trait
           - `X`, which uses the `UpperHex` trait
```
2019-11-09 07:18:32 +01:00
..
deriving ast::MethodSig -> ast::FnSig 2019-11-08 09:32:20 +01:00
format_foreign Separate libsyntax_ext module 2019-06-16 14:17:01 +03:00
asm.rs syntax::parser::token -> syntax::token 2019-11-07 13:50:12 +01:00
assert.rs syntax::parser::token -> syntax::token 2019-11-07 13:50:12 +01:00
Cargo.toml bump smallvec to 1.0 2019-11-04 15:59:09 +01:00
cfg.rs syntax::parser::token -> syntax::token 2019-11-07 13:50:12 +01:00
cmdline_attrs.rs syntax::parser::token -> syntax::token 2019-11-07 13:50:12 +01:00
compile_error.rs move syntax::ext to new crate syntax_expand 2019-10-16 10:59:53 +02:00
concat.rs syntax: use distinct FloatTy from rustc_target. 2019-11-07 05:25:31 +01:00
concat_idents.rs syntax::parser::token -> syntax::token 2019-11-07 13:50:12 +01:00
env.rs Simplify various Symbol use points. 2019-11-02 09:01:02 +11:00
error_codes.rs Replace diagnostic plugins with macro_rules 2019-09-05 12:35:15 -04:00
format.rs Rollup merge of #66134 - estebank:unknown-formatting-trait, r=nikomatsakis 2019-11-09 07:18:32 +01:00
format_foreign.rs Separate libsyntax_ext module 2019-06-16 14:17:01 +03:00
global_allocator.rs ast::ItemKind::Fn: use ast::FnSig 2019-11-08 09:32:20 +01:00
global_asm.rs syntax::parser::token -> syntax::token 2019-11-07 13:50:12 +01:00
lib.rs move syntax::ext to new crate syntax_expand 2019-10-16 10:59:53 +02:00
log_syntax.rs move syntax::ext to new crate syntax_expand 2019-10-16 10:59:53 +02:00
plugin_macro_defs.rs syntax::parser::token -> syntax::token 2019-11-07 13:50:12 +01:00
proc_macro_harness.rs Make doc comments cheaper with AttrKind. 2019-11-06 23:05:07 +11:00
source_util.rs syntax::parser::token -> syntax::token 2019-11-07 13:50:12 +01:00
standard_library_imports.rs rustc, rustc_passes: don't depend on syntax_expand. 2019-10-27 17:05:57 +01:00
test.rs ast::ItemKind::Fn: use ast::FnSig 2019-11-08 09:32:20 +01:00
test_harness.rs ast::ItemKind::Fn: use ast::FnSig 2019-11-08 09:32:20 +01:00
trace_macros.rs move syntax::ext to new crate syntax_expand 2019-10-16 10:59:53 +02:00
util.rs move syntax::ext to new crate syntax_expand 2019-10-16 10:59:53 +02:00