rust/src/libsyntax
Mazdak Farrokhzad 45b09453db
Rollup merge of #60676 - davidtwco:issue-60674, r=cramertj
Fix async desugaring providing wrong input to procedural macros.

Fixes #60674.

This PR fixes a minor oversight introduced by #60535 where unused `mut` binding modes were removed from the arguments to an `async fn` (as they were added to the statement that we insert into the closure body). However, this meant that the input to procedural macros was incorrect. This removes that and instead fixes the `unused_mut` error that it avoided.

r? @cramertj
cc @taiki-e
2019-05-09 23:56:18 +02:00
..
attr Add rustc_allow_const_fn_ptr 2019-04-23 15:55:31 -07:00
diagnostics remove lookup_char_pos_adj 2019-04-05 23:16:09 +03:00
ext fix incorrect assert 2019-05-08 13:34:23 -05:00
parse Rollup merge of #60676 - davidtwco:issue-60674, r=cramertj 2019-05-09 23:56:18 +02:00
print Implement built-in await syntax 2019-05-07 14:45:53 -07:00
util Rollup merge of #60188 - estebank:recover-block, r=varkor 2019-05-09 23:56:09 +02:00
ast.rs Implement built-in await syntax 2019-05-07 14:45:53 -07:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Preallocate BUILTIN_ATTRIBUTES symbols and use a hash map instead of looping 2019-04-15 15:20:05 +02:00
config.rs Separate variant id and variant constructor id. 2019-03-24 12:10:16 +03:00
early_buffered_lints.rs make duplicate matcher bindings a hard error 2019-04-10 21:29:17 -05:00
entry.rs libsyntax => 2018 2019-02-07 02:33:01 +09:00
error_codes.rs Added the E0704 error with a link to the Rust reference. 2019-05-01 12:01:52 +02:00
feature_gate.rs Auto merge of #60586 - cramertj:await, r=oli-obk 2019-05-07 22:33:12 +00:00
json.rs rustc: rename -Z emit-directives to -Z emit-artifact-notifications and simplify the output. 2019-05-07 04:49:54 +03:00
lib.rs Auto merge of #60025 - JohnTitor:rename-files, r=petrochenkov 2019-04-18 14:52:45 +00:00
mut_visit.rs Implement built-in await syntax 2019-05-07 14:45:53 -07:00
ptr.rs Fix fallout from #57667 2019-03-09 18:23:17 +09:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
show_span.rs Rename rustc_errors dependency in rust 2018 crates 2019-02-13 00:28:52 +09:00
source_map.rs Do not modify mutability of simple bindings. 2019-05-09 19:10:27 +01:00
std_inject.rs Use Rc<[Symbol]> instead of Vec<Symbol> to reduce # of allocs 2019-02-11 15:08:17 +01:00
test.rs Fix comments around test harness generation 2019-04-17 12:02:04 +03:00
test_snippet.rs Remove double trailing newlines 2019-04-22 16:57:01 +01:00
tokenstream.rs Add guard for missing comma in macro call suggestion 2019-04-24 16:45:29 -07:00
visit.rs Implement built-in await syntax 2019-05-07 14:45:53 -07:00

The syntax crate contains those things concerned purely with syntax that is, the AST ("abstract syntax tree"), parser, pretty-printer, lexer, macro expander, and utilities for traversing ASTs.

For more information about how these things work in rustc, see the rustc guide: