This repository was archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Add some ICEs #823
Merged
Merged
Add some ICEs #823
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
108cdd9
Add 85350
fanninpm b917936
Add 85447
fanninpm da517c3
Add 86053
fanninpm 8fb498e
Add 86082
fanninpm f73783c
Add 86085
fanninpm 19d7748
Add 86086
fanninpm e26b762
Add 86132
fanninpm 500d9ad
Add 86188
fanninpm fe4e8b8
Add 86193
fanninpm 435e089
Add 86201
fanninpm 2c27028
Format 85447
fanninpm de266c0
Format 85350
fanninpm 59274cb
Simplify 86053
fanninpm d40a4d1
Format 86085
fanninpm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,3 @@ | ||
impl FnMut(&Context) for 'tcx { | ||
fn print () -> Self :: Output{ } | ||
} |
This file contains hidden or 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,20 @@ | ||
#![crate_type="lib"] | ||
use std::{collections::HashMap, hash::Hash}; | ||
|
||
struct C; | ||
|
||
trait Ctx { | ||
type BindGroupId; | ||
} | ||
|
||
impl Ctx for C { | ||
type BindGroupId = u32; | ||
} | ||
|
||
pub struct BindGroup { | ||
_id: <C as Ctx>::BindGroupId, | ||
} | ||
|
||
pub fn insert(map: &mut HashMap<*const BindGroup, u32>, bind_group: *const BindGroup) { | ||
map.insert(bind_group, 1); | ||
} |
This file contains hidden or 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,5 @@ | ||
trait H<T> {} | ||
|
||
unsafe extern "C" fn ordering4<'a, F: H<&'static &'a ()>>(_: (), ...) {} | ||
|
||
fn main() {} |
This file contains hidden or 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,3 @@ | ||
fn main() { | ||
option_env!("\0") | ||
} |
This file contains hidden or 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,3 @@ | ||
fn main ( ) { | ||
format ! ( concat ! ( r#"lJ�.�"# , "r} {}" ) ) ; | ||
} |
This file contains hidden or 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,2 @@ | ||
trait Tr : Sized { async extern r###"��áÖ@"### fn union < > ( # [ ']' '[' 'default' 'async' '&raw' ] & '?ဪൈ self , ... , ... , ... , ... , ... , ... , ... , ... , ... , ) -> && '_ mut ( ) ; | ||
} |
This file contains hidden or 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,5 @@ | ||
#![crate_type = "staticlib"] | ||
use std::mem; | ||
trait Trait {} | ||
const TRAIT_OBJ_UNALIGNED_VTABLE: &Trait = | ||
unsafe { mem::transmute((&92u8, &[0b_______001_11i128; 128])) }; |
This file contains hidden or 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,5 @@ | ||
fn main() { | ||
[(); return || { | ||
let tx; | ||
}] | ||
} |
This file contains hidden or 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,9 @@ | ||
#![crate_type = "lib"] | ||
#[repr(transparent)] | ||
struct W<T>(T); | ||
|
||
// The drop fn is checked before size/align are, so get ourselves a "sufficiently valid" drop fn | ||
fn drop_me(_: *mut usize) {} | ||
|
||
const INVALID_VTABLE_SIZE: W<&dyn Send> = | ||
unsafe { std::mem::transmute((&92u8, &(drop_me as fn(*mut usize), usize::MAX, 1usize))) }; |
This file contains hidden or 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,12 @@ | ||
#![feature(unboxed_closures)] | ||
#![feature(min_type_alias_impl_trait)] | ||
#![feature(impl_trait_in_bindings)] | ||
|
||
type FunType = impl Fn<()>; | ||
static STATIC_FN: FunType = some_fn; | ||
|
||
fn some_fn() {} | ||
|
||
fn main() { | ||
let _: <FunType as FnOnce<()>>::Output = STATIC_FN(); | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: This and some other issues by fuzzing are possibly duplicates of the existing one but I'm going to include for now. We can drop them anytime.