timClicks opened PR #1392 from mark-symbols-unsafe
to master
:
This commit marks provides the
SimpleJitBuilder.symbol()
andSimpleJitBuilder.symbols()
methods as unsafe, as markers to those embedding the crate. It also includes a null pointer assert! to abort illegal use of the methods.As a driveby, the commit rewrites
symbols()
in terms ofsymbol()
, removing some code duplication.
- [ ] This has been discussed in issue #798
[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so and/or ping
bnjbvr
. The list of suggested reviewers on the right can help you.<!-- Please ensure all communication adheres to the code of conduct. -->
timClicks edited PR #1392 from mark-symbols-unsafe
to master
:
This commit marks provides the
SimpleJitBuilder.symbol()
andSimpleJitBuilder.symbols()
methods as unsafe, as markers to those embedding the crate. It also includes a null pointer assert! to abort illegal use of the methods.As a driveby, the commit rewrites
symbols()
in terms ofsymbol()
, removing some code duplication.
- [x] This has been discussed in issue #798
[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so and/or ping
bnjbvr
. The list of suggested reviewers on the right can help you.<!-- Please ensure all communication adheres to the code of conduct. -->
timClicks edited PR #1392 from mark-symbols-unsafe
to master
:
This commit marks provides the
SimpleJitBuilder.symbol()
andSimpleJitBuilder.symbols()
methods as unsafe, as markers to those embedding the crate. It also includes a null pointer assert! to abort illegal use of the methods.As a driveby, the commit rewrites
symbols()
in terms ofsymbol()
, removing some code duplication.
- [x] This has been discussed in issue #798
[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[x] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so and/or ping
bnjbvr
. The list of suggested reviewers on the right can help you.<!-- Please ensure all communication adheres to the code of conduct. -->
timClicks edited PR #1392 from mark-symbols-unsafe
to master
:
This commit marks provides the
SimpleJitBuilder.symbol()
andSimpleJitBuilder.symbols()
methods as unsafe, as markers to those embedding the crate. It also includes a null pointer assert! to abort illegal use of the methods.As a driveby, the commit rewrites
symbols()
in terms ofsymbol()
, removing some code duplication.
- [x] This has been discussed in issue #798
[x] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[x] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so and/or ping
bnjbvr
. The list of suggested reviewers on the right can help you.<!-- Please ensure all communication adheres to the code of conduct. -->
timClicks updated PR #1392 from mark-symbols-unsafe
to master
:
This commit marks provides the
SimpleJitBuilder.symbol()
andSimpleJitBuilder.symbols()
methods as unsafe, as markers to those embedding the crate. It also includes a null pointer assert! to abort illegal use of the methods.As a driveby, the commit rewrites
symbols()
in terms ofsymbol()
, removing some code duplication.
- [x] This has been discussed in issue #798
[x] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[x] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so and/or ping
bnjbvr
. The list of suggested reviewers on the right can help you.<!-- Please ensure all communication adheres to the code of conduct. -->
bnjbvr requested bnjbvr for a review on PR #1392.
bnjbvr submitted PR Review.
bnjbvr created PR Review Comment:
nit: can you tweak this doc line to tell something like "Panics whenever any symbol pointer is NULL."?
bnjbvr submitted PR Review.
bjorn3 submitted PR Review.
bjorn3 created PR Review Comment:
Please add an expected panic message: https://doc.rust-lang.org/reference/attributes/testing.html?highlight=should_panic#the-should_panic-attribute
bjorn3 submitted PR Review.
timClicks submitted PR Review.
timClicks created PR Review Comment:
Will do :)
timClicks submitted PR Review.
timClicks created PR Review Comment:
Okay, sure thing.
timClicks updated PR #1392 from mark-symbols-unsafe
to master
:
This commit marks provides the
SimpleJitBuilder.symbol()
andSimpleJitBuilder.symbols()
methods as unsafe, as markers to those embedding the crate. It also includes a null pointer assert! to abort illegal use of the methods.As a driveby, the commit rewrites
symbols()
in terms ofsymbol()
, removing some code duplication.
- [x] This has been discussed in issue #798
[x] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[x] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so and/or ping
bnjbvr
. The list of suggested reviewers on the right can help you.<!-- Please ensure all communication adheres to the code of conduct. -->
tschneidereit closed without merge PR #1392.
Last updated: Nov 22 2024 at 16:03 UTC