Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a3aafea
Account for paths in incorrect pub qualifier help
estebank May 1, 2019
d72f4de
Constrain all regions in the concrete type for an opaque type
matthewjasper May 1, 2019
7da9eee
Remove BorrowckMode::Compare
chrisvittal Mar 25, 2019
2a0426c
Stub display impl for Origin
chrisvittal Mar 25, 2019
a0f4914
This continue is not needed
spastorino Apr 26, 2019
9f7b953
Remove root_local fn in favor of base_local
spastorino May 1, 2019
49f0141
Implement base_local iteratively
spastorino May 1, 2019
cfdd6ba
Update tests
chrisvittal May 2, 2019
17be682
Remove TypeckMir
JohnTitor May 3, 2019
1e2af7d
Reword casting message
estebank May 3, 2019
ce39461
Add rustfmt toml
matklad May 3, 2019
1937bf2
Migrate tidy to rust 2018 edition
rasendubi May 3, 2019
f734057
Fix test
JohnTitor May 3, 2019
bacf792
tidy: Extract `let mut part` out of `parts` block in `version.rs`
rasendubi May 3, 2019
db6f7a9
Update help message
chrisvittal May 3, 2019
f346309
Fix async fn lowering ICE with APIT.
davidtwco May 3, 2019
6a86be9
Rollup merge of #60429 - estebank:pub-path, r=michaelwoerister
Centril May 4, 2019
b4c620d
Rollup merge of #60449 - matthewjasper:impl-trait-outlives, r=pnkfelix
Centril May 4, 2019
0399d13
Rollup merge of #60486 - spastorino:place-related-refactors, r=oli-obk
Centril May 4, 2019
ffc33b3
Rollup merge of #60513 - chrisvittal:remove-borrowck-compare, r=matth…
Centril May 4, 2019
3cfd39b
Rollup merge of #60516 - JohnTitor:remove-typeck, r=matthewjasper
Centril May 4, 2019
099c064
Rollup merge of #60517 - estebank:wording, r=davidtwco
Centril May 4, 2019
68dcca8
Rollup merge of #60520 - matklad:rustfmt-all-the-new-things, r=Centril
Centril May 4, 2019
10f5a36
Rollup merge of #60521 - rasendubi:tidy-2018-edition, r=Centril
Centril May 4, 2019
1599877
Rollup merge of #60527 - davidtwco:issue-60518, r=cramertj
Centril May 4, 2019
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
4 changes: 3 additions & 1 deletion src/librustc/hir/map/def_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ impl<'a> DefCollector<'a> {
visit::walk_generics(this, generics);

// Walk the generated arguments for the `async fn`.
for a in arguments {
for (i, a) in arguments.iter().enumerate() {
use visit::Visitor;
if let Some(arg) = &a.arg {
this.visit_ty(&arg.ty);
} else {
this.visit_ty(&decl.inputs[i].ty);
}
}

Expand Down
12 changes: 12 additions & 0 deletions src/test/ui/async-await/issue-60518.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// compile-pass
// edition:2018

#![feature(async_await)]

// This is a regression test to ensure that simple bindings (where replacement arguments aren't
// created during async fn lowering) that have their DefId used during HIR lowering (such as impl
// trait) are visited during def collection and thus have a DefId.

async fn foo(ws: impl Iterator<Item = ()>) {}

fn main() {}