Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2f305ff
Remove an unnecessary `?`.
nnethercote Jul 16, 2024
48cdfc3
Inline `Parser::parse_item_common_`.
nnethercote Jul 16, 2024
d247489
Reorder `Parser::parse_expr_dot_or_call_with` arguments.
nnethercote Jul 16, 2024
96cc9c9
Inline and remove `Parser::parse_and_disallow_postfix_after_cast`.
nnethercote Jul 16, 2024
96b39f1
Inline and remove `Parser::parse_expr_dot_or_call_with_`.
nnethercote Jul 16, 2024
8cb6bc3
Fix a comment.
nnethercote Jul 16, 2024
9c4f3db
Remove references to `maybe_whole_expr`.
nnethercote Jul 16, 2024
538b31e
Make language around `ToOwned` for `BorrowedFd` more precise
tbu- Jun 28, 2024
2162f3f
Mention how you can go from `BorrowedFd` to `OwnedFd` and back
tbu- Jun 28, 2024
a651050
lift_to_tcx -> lift_to_interner
compiler-errors Jul 16, 2024
8d90f44
tcx -> cx in rustc_type_ir
compiler-errors Jul 16, 2024
0b5ce54
Fix relations
compiler-errors Jul 16, 2024
5483945
rewrite dump-ice-to-disk to rmake
Oneirical Jul 9, 2024
f54fa62
rewrite panic-abort-eh_frame to rmake
Oneirical Jul 9, 2024
a9e1466
Add `llvm_components_contain` to `run-make-support`
Rejyr Jul 15, 2024
a8b6e3f
Migrate `atomic-lock-free` to `rmake`
Rejyr Jul 15, 2024
e38032f
Fix associated item removal suggestion
estebank Jul 9, 2024
8eb5185
Accurate `use` rename suggestion span
estebank Jul 10, 2024
be9d961
More accurate span for type parameter suggestion
estebank Jul 10, 2024
f6c4679
More accurate span for anonymous argument suggestion
estebank Jul 10, 2024
483161d
Rollup merge of #127077 - tbu-:pr_doc_fd_to_owned, r=workingjubilee
tgross35 Jul 18, 2024
c0cd3ca
Rollup merge of #127523 - Oneirical:treasure-test, r=jieyouxu
tgross35 Jul 18, 2024
af30f40
Rollup merge of #127787 - Rejyr:migrate-atomic-lock-free-rmake, r=jie…
tgross35 Jul 18, 2024
caf888c
Rollup merge of #127806 - nnethercote:parser-improvements, r=spastorino
tgross35 Jul 18, 2024
fe9940c
Rollup merge of #127810 - compiler-errors:less-tcx, r=lcnr
tgross35 Jul 18, 2024
9b001ce
Rollup merge of #127878 - estebank:assoc-item-removal, r=fmease
tgross35 Jul 18, 2024
a5fd37e
Rollup merge of #127886 - estebank:as-rename-suggestion, r=compiler-e…
tgross35 Jul 18, 2024
1bdc0fb
Rollup merge of #127888 - estebank:type-param-sugg, r=compiler-errors
tgross35 Jul 18, 2024
6973719
Rollup merge of #127889 - estebank:anon-arg-sugg, r=compiler-errors
tgross35 Jul 18, 2024
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
Next Next commit
Remove an unnecessary ?.
  • Loading branch information
nnethercote committed Jul 16, 2024
commit 2f305ff460862e18b67db2faa11b85ab223d4e60
12 changes: 4 additions & 8 deletions compiler/rustc_parse/src/parser/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,10 @@ impl<'a> Parser<'a> {
Some(item.into_inner())
});

let item =
self.collect_tokens_trailing_token(attrs, force_collect, |this: &mut Self, attrs| {
let item =
this.parse_item_common_(attrs, mac_allowed, attrs_allowed, fn_parse_mode);
Ok((item?, TrailingToken::None))
})?;

Ok(item)
self.collect_tokens_trailing_token(attrs, force_collect, |this, attrs| {
let item = this.parse_item_common_(attrs, mac_allowed, attrs_allowed, fn_parse_mode)?;
Ok((item, TrailingToken::None))
})
}

fn parse_item_common_(
Expand Down