forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#98959 - cjgillot:late-bound-order, r=michaelw…
…oerister Return a FxIndexSet in is_late_bound query. This return value is iterated upon by borrowck, hence the need to preserve a deterministic iteration order. Fixes rust-lang#98890 Affects rust-lang#96655 I don't know if this supersedes rust-lang#98924 or fixes an unrelated bug. r? `@michaelwoerister` This may deserve a backport.
- Loading branch information
Showing
4 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// revisions: rpass1 rpass2 | ||
// edition:2021 | ||
|
||
// See https://github.com/rust-lang/rust/issues/98890 | ||
|
||
#![allow(unused)] | ||
|
||
struct Foo; | ||
|
||
impl Foo { | ||
async fn f(&self, _: &&()) -> &() { | ||
&() | ||
} | ||
} | ||
|
||
#[cfg(rpass2)] | ||
enum Bar {} | ||
|
||
fn main() {} |