-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #371 from Nadrieril/update-hax
- Loading branch information
Showing
8 changed files
with
95 additions
and
35 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,23 @@ | ||
# Final LLBC before serialization: | ||
|
||
fn test_crate::main() | ||
{ | ||
let @0: (); // return | ||
let @1: *const u8; // anonymous local | ||
let @2: usize; // anonymous local | ||
let x@3: &'_ (u8); // local | ||
let @4: u8; // anonymous local | ||
let @5: &'_ (u8); // anonymous local | ||
|
||
@4 := const ([0]) | ||
@5 := &@4 | ||
x@3 := move (@5) | ||
@1 := &raw const *(x@3) | ||
@2 := cast<*const u8, usize>(copy (@1)) | ||
drop @2 | ||
@0 := () | ||
return | ||
} | ||
|
||
|
||
|
1 change: 0 additions & 1 deletion
1
...n/tests/ui/unsupported/ptr_to_promoted.rs → charon/tests/ui/ptr_to_promoted.rs
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,4 +1,3 @@ | ||
//@ known-failure | ||
//@ charon-args=--mir_optimized | ||
|
||
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,61 @@ | ||
disabled backtrace | ||
warning[E9999]: Hax frontend found a projected type with escaping bound vars. Please report https://github.com/hacspec/hax/issues/495 | ||
|
||
Context: | ||
- alias_ty: AliasTy { | ||
args: [ | ||
F/#0, | ||
(&'^0.Named(test_crate::foo::'a, "'a") (),), | ||
], | ||
def_id: core::ops::function::FnOnce::Output, | ||
.. | ||
} | ||
- alias_kind: Projection | ||
- trait_ref: <F as std::ops::FnOnce<(&'a (),)>> | ||
- trait_ref_and_generics: ( | ||
<F as std::ops::FnOnce<(&'a (),)>>, | ||
[], | ||
) | ||
- rebased_generics: [ | ||
F/#0, | ||
(&'^0.Named(test_crate::foo::'a, "'a") (),), | ||
(&'^0.Named(test_crate::foo::'a, "'a") (),), | ||
] | ||
- norm_rebased_generics: Ok( | ||
<F as std::ops::FnOnce<(&'a (),)>>, | ||
) | ||
- norm_generics: Ok( | ||
<F as std::ops::FnOnce<(&'a (),)>>, | ||
) | ||
- early_binder_generics: Ok( | ||
<F as std::ops::FnOnce<(&'a (),)>>, | ||
) | ||
- early_binder_rebased_generics: Ok( | ||
<F as std::ops::FnOnce<(&'a (),)>>, | ||
) | ||
| | ||
= note: ⚠️ This is a bug in Hax's frontend. | ||
Please report this error to https://github.com/hacspec/hax/issues with some context (e.g. the current crate)! | ||
|
||
thread 'rustc' panicked at src/bin/charon-driver/translate/translate_types.rs:78:26: | ||
called `Option::unwrap()` on a `None` value | ||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace | ||
error: Thread panicked when extracting item `test_crate::foo`. | ||
--> tests/ui/quantified-clause.rs:3:1 | ||
| | ||
3 | / fn foo<F>(_f: F) | ||
4 | | where | ||
5 | | F: for<'a> FnMut(&'a ()), | ||
| |_____________________________^ | ||
|
||
error: Ignoring the following item due to an error: test_crate::foo | ||
--> tests/ui/quantified-clause.rs:3:1 | ||
| | ||
3 | / fn foo<F>(_f: F) | ||
4 | | where | ||
5 | | F: for<'a> FnMut(&'a ()), | ||
| |_____________________________^ | ||
|
||
error: aborting due to 2 previous errors; 1 warning emitted | ||
|
||
Error: Charon driver exited with code 101 |
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-failure | ||
|
||
fn foo<F>(_f: F) | ||
where | ||
F: for<'a> FnMut(&'a ()), | ||
{ | ||
} |
This file was deleted.
Oops, something went wrong.