Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtree sync 2023-01-24 #5670

Merged
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
76be14b
Do not consider method call receiver as an argument in AST.
cjgillot Aug 7, 2022
edb616d
errors: move translation logic into module
davidtwco Aug 10, 2022
e97825e
Shrink `ast::Attribute`.
nnethercote Aug 11, 2022
e5b5f56
Rename some things related to literals.
nnethercote Aug 1, 2022
870ed72
Rollup merge of #100018 - nnethercote:clean-up-LitKind, r=petrochenkov
matthiaskrgr Aug 17, 2022
6884e04
Rollup merge of #100379 - davidtwco:triagebot-diag, r=Mark-Simulacrum
matthiaskrgr Aug 17, 2022
05a0dfe
Use `AttrVec` in more places.
nnethercote Aug 17, 2022
7852b88
Stabilize `#![feature(label_break_value)]`
jyn514 Jul 14, 2022
a5b6bc6
Rollup merge of #99332 - jyn514:stabilize-label-break-value, r=petroc…
JohnTitor Aug 24, 2022
ddda7bb
Sunset RLS
ehuss Aug 21, 2022
748b031
Stabilize GATs
jackh726 May 4, 2022
e40972e
rustfmt: BindingAnnotation change
camsteffen Aug 30, 2022
c9e47e7
Auto merge of #96709 - jackh726:gats-stabilization, r=compiler-errors
bors Sep 13, 2022
d71413c
Rename AssocItemKind::TyAlias to AssocItemKind::Type
compiler-errors Oct 10, 2022
7402dad
merge rustc history
RalfJung Oct 10, 2022
7cc303f
Fix unclosed HTML tag in rustfmt doc
GuillaumeGomez Oct 10, 2022
e5a0426
merge rustc history
RalfJung Oct 12, 2022
657dcf2
Implement -Ztrack-diagnostics
Oct 18, 2022
aa3ac27
merge rustc history
RalfJung Oct 21, 2022
5fee21f
Auto merge of #103217 - mejrs:track, r=eholk
bors Nov 1, 2022
660e535
Introduce `ExprKind::IncludedBytes`
clubby789 Oct 31, 2022
826fb78
Use `token::Lit` in `ast::ExprKind::Lit`.
nnethercote Oct 10, 2022
4a4addc
Box `ExprKind::{Closure,MethodCall}`, and `QSelf` in expressions, typ…
nnethercote Sep 8, 2022
1343ffd
Split `MacArgs` in two.
nnethercote Nov 18, 2022
3d44530
Fix rustfmt
estebank Nov 3, 2022
cdff11c
Rename `ast::Lit` as `ast::MetaItemLit`.
nnethercote Nov 23, 2022
c7e4abd
Rename `NestedMetaItem::[Ll]iteral` as `NestedMetaItem::[Ll]it`.
nnethercote Nov 24, 2022
749c816
Keep track of the start of the argument block of a closure
SarthakSingh31 Nov 9, 2022
46f0b38
rustc_ast_lowering: Stop lowering imports into multiple items
petrochenkov Dec 1, 2022
c91dd22
Remove `token::Lit` from `ast::MetaItemLit`.
nnethercote Nov 29, 2022
2119f7d
Rollup merge of #104199 - SarthakSingh31:issue-97417-1, r=cjgillot
matthiaskrgr Dec 3, 2022
53ca259
Auto merge of #105160 - nnethercote:rm-Lit-token_lit, r=petrochenkov
bors Dec 12, 2022
ac8eaa1
Rename `Rptr` to `Ref` in AST and HIR
Noratrieb Dec 28, 2022
d7fa2ee
Add missing extern crate rustc_driver
bjorn3 Dec 12, 2022
664c60a
Detect closures assigned to binding in block
estebank Jan 5, 2023
8c8aa38
Change `src/test` to `tests` in source files, fix tidy and tests
albertlarsan68 Jan 5, 2023
19c2286
parse const closures
fee1-dead Dec 20, 2022
e7d87ad
Merge remote-tracking branch 'upstream/master' into subtree-sync-2023…
calebcartwright Jan 24, 2023
18dd075
chore: bump toolchain
calebcartwright Jan 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Keep track of the start of the argument block of a closure
  • Loading branch information
SarthakSingh31 committed Nov 28, 2022
commit 749c816faec774e7e7cae8ebad01d7ca0464b541
1 change: 1 addition & 0 deletions src/closures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ pub(crate) fn rewrite_last_closure(
ref fn_decl,
ref body,
fn_decl_span: _,
fn_arg_span: _,
} = **closure;
let body = match body.kind {
ast::ExprKind::Block(ref block, _)
Expand Down