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#125278 - GuillaumeGomez:rollup-z2hluri, r=Gui…
…llaumeGomez Rollup of 3 pull requests Successful merges: - rust-lang#125261 (crashes: add more) - rust-lang#125270 (Followup fixes from rust-lang#123344) - rust-lang#125275 (Migrate `run-make/rustdoc-scrape-examples-test` to new `rmake.rs`) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
18 changed files
with
150 additions
and
17 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,10 @@ | ||
//@ known-bug: rust-lang/rust#124833 | ||
#![feature(generic_const_items)] | ||
|
||
trait Trait { | ||
const C<'a>: &'a str; | ||
} | ||
|
||
impl Trait for () { | ||
const C<'a>: = "C"; | ||
} |
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,11 @@ | ||
//@ known-bug: rust-lang/rust#124857 | ||
//@ compile-flags: -Znext-solver=coherence | ||
|
||
#![feature(effects)] | ||
|
||
#[const_trait] | ||
trait Foo {} | ||
|
||
impl const Foo for i32 {} | ||
|
||
impl<T> const Foo for T where T: ~const Foo {} |
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,22 @@ | ||
//@ known-bug: rust-lang/rust#124891 | ||
|
||
type Tait = impl FnOnce() -> (); | ||
|
||
fn reify_as_tait() -> Thunk<Tait> { | ||
Thunk::new(|cont| cont) | ||
} | ||
|
||
struct Thunk<F>(F); | ||
|
||
impl<F> Thunk<F> { | ||
fn new(f: F) | ||
where | ||
F: ContFn, | ||
{ | ||
todo!(); | ||
} | ||
} | ||
|
||
trait ContFn {} | ||
|
||
impl<F: FnOnce(Tait) -> ()> ContFn for F {} |
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,11 @@ | ||
//@ known-bug: rust-lang/rust#124894 | ||
//@ compile-flags: -Znext-solver=coherence | ||
|
||
#![feature(generic_const_exprs)] | ||
|
||
pub trait IsTrue<const mem: bool> {} | ||
impl<T> IsZST for T where (): IsTrue<{ std::mem::size_of::<T>() == 0 }> {} | ||
|
||
pub trait IsZST {} | ||
|
||
impl IsZST for IsZST {} |
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,7 @@ | ||
//@ known-bug: rust-lang/rust#125081 | ||
|
||
use std::cell::Cell; | ||
|
||
fn main() { | ||
let _: Cell<&str, "a"> = Cell::new('β); | ||
} |
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 @@ | ||
//@ known-bug: rust-lang/rust#125099 | ||
|
||
pub trait ContFn<T>: Fn(T) -> Self::Future { | ||
type Future; | ||
} | ||
impl<T, F> ContFn<T> for F | ||
where | ||
F: Fn(T), | ||
{ | ||
type Future = (); | ||
} | ||
|
||
pub trait SeqHandler { | ||
type Requires; | ||
fn process<F: ContFn<Self::Requires>>() -> impl Sized; | ||
} | ||
|
||
pub struct ConvertToU64; | ||
impl SeqHandler for ConvertToU64 { | ||
type Requires = u64; | ||
fn process<F: ContFn<Self::Requires>>() -> impl Sized {} | ||
} | ||
|
||
fn main() {} |
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,17 @@ | ||
//@ known-bug: rust-lang/rust#125155 | ||
|
||
enum NestedEnum { | ||
First, | ||
Second, | ||
Third | ||
} | ||
enum Enum { | ||
Variant2(Option<*mut &'a &'b ()>) | ||
} | ||
|
||
|
||
fn foo(x: Enum) -> isize { | ||
match x { | ||
Enum::Variant2(NestedEnum::Third) => 4, | ||
} | ||
} |
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,16 @@ | ||
//@ known-bug: rust-lang/rust#125185 | ||
//@ compile-flags: -Zvalidate-mir | ||
|
||
type Foo = impl Send; | ||
|
||
struct A; | ||
|
||
const VALUE: Foo = value(); | ||
|
||
fn test(foo: Foo<'a>, f: impl for<'b> FnMut()) { | ||
match VALUE { | ||
0 | 0 => {} | ||
|
||
_ => (), | ||
} | ||
} |
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,8 @@ | ||
//@ known-bug: rust-lang/rust#125185 | ||
#![feature(return_position_impl_trait_in_trait, return_type_notation)] | ||
|
||
trait IntFactory { | ||
fn stream(&self) -> impl IntFactory<stream(): IntFactory<stream(): Send> + Send>; | ||
} | ||
|
||
pub fn main() {} |
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 |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
mod scrape; | ||
|
||
fn main() { | ||
scrape::scrape(); | ||
scrape::scrape(&[]); | ||
} |
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 |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
mod scrape; | ||
|
||
fn main() { | ||
scrape::scrape(); | ||
scrape::scrape(&[]); | ||
} |
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,5 +1,5 @@ | ||
mod scrape; | ||
|
||
fn main() { | ||
scrape::scrape(); | ||
scrape::scrape(&[]); | ||
} |
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 was deleted.
Oops, something went wrong.
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,6 @@ | ||
#[path = "../rustdoc-scrape-examples-remap/scrape.rs"] | ||
mod scrape; | ||
|
||
fn main() { | ||
scrape::scrape(&["--scrape-tests"]); | ||
} |