Skip to content

Cast any pointer to trait pointer#93

Closed
markrtuttle wants to merge 4 commits intomain-151-2021-04-16from
cast-any-pointer-to-trait-pointer-mrtuttle
Closed

Cast any pointer to trait pointer#93
markrtuttle wants to merge 4 commits intomain-151-2021-04-16from
cast-any-pointer-to-trait-pointer-mrtuttle

Conversation

@markrtuttle
Copy link
Contributor

Resolved issues:

resolves #83

Description of changes:

This pull request allows any pointer to be cast to a trait pointer, no longer restricting the cast to casting adt pointers to trait pointers. In particular, restores the test in the regression test rust-tests/cbmc-reg/Closure/main.rs that was temporarily removed by #88.

Call-outs:

Testing:

How is this change tested?

Is this a refactor change?

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@markrtuttle markrtuttle force-pushed the cast-any-pointer-to-trait-pointer-mrtuttle branch from 2d99c8b to 71caaf3 Compare April 21, 2021 18:40
@markrtuttle markrtuttle force-pushed the cast-any-pointer-to-trait-pointer-mrtuttle branch from 02b257d to 6af7a0a Compare April 22, 2021 00:00
@markrtuttle markrtuttle deleted the cast-any-pointer-to-trait-pointer-mrtuttle branch April 24, 2021 01:43
celinval pushed a commit to celinval/kani-dev that referenced this pull request Oct 6, 2021
* Cleanup fix for global initialization
* Remove linker script hack
* Use v0 symbol mangling
* Fix warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Casting unit to a trait object

1 participant