rust/src/libsyntax_ext
bors df90a54662 Auto merge of #43533 - nrc:macro-save, r=jseyfried,
Three small fixes for save-analysis

First commit does some naive deduplication of macro uses. We end up with lots of duplication here because of the weird way we get this data (we extract a use for every span generated by a macro use).

Second commit is basically a typo fix.

Third commit is a bit interesting, it partially reverts a change from #40939 where temporary variables in format! (and thus println!) got a span with the primary pointing at the value stored into the temporary (e.g., `x` in `println!("...", x)`). If `format!` had a definition it should point at the temporary in the macro def, but since it is built-in, that is not possible (for now), so `DUMMY_SP` is the best we can do (using the span in the callee really breaks save-analysis because it thinks `x` is a definition as well as a reference).

There aren't a test for this stuff because: the deduplication is filtered by any of the users of save-analysis, so it is purely an efficiency change. I couldn't actually find an example for the second commit that we have any machinery to test, and the third commit is tested by the RLS, so there will be a test once I update the RLS version and and uncomment the previously failing tests).

r? @jseyfried
2017-08-01 03:52:14 +00:00
..
deriving Rollup merge of #43501 - topecongiro:span-to-whereclause, r=nrc 2017-07-29 18:03:52 -06:00
asm.rs
Cargo.toml
cfg.rs
compile_error.rs Stabilize the compile_error_macro feature 2017-07-25 07:09:31 -07:00
concat_idents.rs Simplify hygiene::Mark application, and 2017-06-26 02:05:45 +00:00
concat.rs
env.rs Hygienize lifetimes. 2017-05-25 05:52:09 +00:00
format_foreign.rs
format.rs format!: use a dummy span rather than callee span for the span base for temporary variables 2017-07-28 16:42:39 +12:00
global_asm.rs syntax: Add tokens: Option<TokenStream> to Item 2017-07-28 07:58:20 -07:00
lib.rs Rollup merge of #42620 - wesleywiser:compile_error, r=brson 2017-06-21 10:40:15 -04:00
log_syntax.rs
proc_macro_impl.rs Simplify hygiene::Mark application, and 2017-06-26 02:05:45 +00:00
proc_macro_registrar.rs Hygienize librustc_resolve. 2017-05-25 05:51:50 +00:00
trace_macros.rs