forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
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#2568 - oli-obk:josh, r=RalfJung
Merge rustc changes back into the miri repo This uses https://github.com/josh-project/josh (RIIR ftw) The first time it looks a bit odd with the merges and so, all future syncs will work just like the instructions say. I'll add instructions for the sync from miri to rustc, too, starting to do that right now. Initial cache building now takes 5 mins 🥳
- Loading branch information
Showing
6 changed files
with
53 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
acb8934fd57b3c2740c4abac0a5728c2c9b1423b | ||
21265dd0d209e7b682f249a3a45034f02d32650b |
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,24 @@ | ||
#![feature(type_alias_impl_trait)] | ||
|
||
trait T { | ||
type Item; | ||
} | ||
|
||
type Alias<'a> = impl T<Item = &'a ()>; | ||
|
||
struct S; | ||
impl<'a> T for &'a S { | ||
type Item = &'a (); | ||
} | ||
|
||
fn filter_positive<'a>() -> Alias<'a> { | ||
&S | ||
} | ||
|
||
fn with_positive(fun: impl Fn(Alias<'_>)) { | ||
fun(filter_positive()); | ||
} | ||
|
||
fn main() { | ||
with_positive(|_| ()); | ||
} |