instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rust-ndarray__ndarray-linalg__389 | rust-ndarray/ndarray-linalg | 389 | defect | fb1b6d6779ad644b9f4c7c5a0b145d0c7237991f | a6205ea3acc3a2108aa9ef482adac2337a948670 | Upgrade ndarray and other deps | This is a superset of https://github.com/rust-ndarray/ndarray-linalg/pull/386 to provide the missing build environment updates based on the transitive dependency MSRV requirements.
I do not know how to just add the last commit just to the already existing PR without being a maintainer, therefore i just opened this p... | diff --git a/.github/workflows/intel-mkl.yml b/.github/workflows/intel-mkl.yml
index fcb8c845..4a461441 100644
--- a/.github/workflows/intel-mkl.yml
+++ b/.github/workflows/intel-mkl.yml
@@ -35,7 +35,7 @@ jobs:
linux-container:
runs-on: ubuntu-22.04
container:
- image: ghcr.io/rust-math/rust-mkl:1.63.... | 2 | 2 | 1 | [{"id": "G0", "claim": "There is no tag named 1.67.0-2020.1 for the rust-mkl container, so the bumped image in .github/workflows/intel-mkl.yml will not work.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR should be rustfmt-formatted (re-apply... | null |
rust-ndarray__ndarray-linalg__85 | rust-ndarray/ndarray-linalg | 85 | defect | d5898c486cbdbdf30954f8793cbef84f01094100 | 31c7d4fdf0ab43d27d80f94b4fcc1e77dbfb6c6d | Add determinant methods in solve module | This implementation is based on the [NumPy implementation](https://github.com/numpy/numpy/blob/v1.13.1/numpy/linalg/umath_linalg.c.src#L976-L1131). It uses the decomposition `A = P * L * U => det(A) = det(P) * det(L) * det(U)`, where `det(P)` is ±1 based on the number of pivots, `det(L)` is 1, and `det(U)` is the produ... | diff --git a/src/lapack_traits/solve.rs b/src/lapack_traits/solve.rs
index 2ee09d63..5910694b 100644
--- a/src/lapack_traits/solve.rs
+++ b/src/lapack_traits/solve.rs
@@ -10,6 +10,14 @@ use super::{Pivot, Transpose, into_result};
/// Wraps `*getrf`, `*getri`, and `*getrs`
pub trait Solve_: Sized {
+ /// Computes... | 2 | 2 | 1 | [{"id": "G0", "claim": "The documentation for `Solve_::lu()` gives the wrong indices: it says `U[(return_code, return_code)]` is zero, but with fortran indexing it should be `U[(return_code-1, return_code-1)]`.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",... | null |
rust-ndarray__ndarray-linalg__90 | rust-ndarray/ndarray-linalg | 90 | defect | 4635131121752a9718c0343438dc593667767453 | 17f66b74ac72dde3cbb042fd194df1cc71bdcda7 | Add .rcond() and .rcond_into() | This commit exposes the LAPACK `*gecon` routines through `.rcond()` and `.rcond_into()` methods. It also changes the character representations of `NormType` to capital letters to be compatible with `*gecon`. | diff --git a/src/lapack_traits/opnorm.rs b/src/lapack_traits/opnorm.rs
index 81163cff..387ce9cd 100644
--- a/src/lapack_traits/opnorm.rs
+++ b/src/lapack_traits/opnorm.rs
@@ -8,9 +8,9 @@ use types::*;
#[repr(u8)]
pub enum NormType {
- One = b'o',
- Infinity = b'i',
- Frobenius = b'f',
+ One = b'O',
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Use the `opnorm_one()` helper instead of `opnorm(NormType::One)` in the rcond code and tests, so that `lapack_traits::opnorm::NormType` does not need to be imported where the norm type is fixed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
rust-ndarray__ndarray__1040 | rust-ndarray/ndarray | 1,040 | defect | 307234e71dac87d72d7c1d955ed9f68e5e902623 | ee5c9d0d3ffd58a797f0a0ff38e1641d422ce5af | add mapv_into_any(), resolves #1031 | First attempt at pull request for #1031.
Since Rust does not yet have [specialization](https://github.com/rust-lang/rfcs/pull/1210), mapping between generic numerical types in ndarray is challenging when the types *might* be different. For example, we might want to perform on operation on an array of real numbers t... | diff --git a/src/impl_methods.rs b/src/impl_methods.rs
index 51c1403a5..348b50d0e 100644
--- a/src/impl_methods.rs
+++ b/src/impl_methods.rs
@@ -2473,6 +2473,45 @@ where
self
}
+ /// Consume the array, call `f` by **v**alue on each element, and return an
+ /// owned array with the new values. Work... | 1 | 1 | 0 | [{"id": "G0", "claim": "The manual unsafe core::ptr::read transmutes in mapv_into_any should be replaced with the existing unlimited_transmute() helper defined in the same file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rust-ndarray__ndarray__1305 | rust-ndarray/ndarray | 1,305 | defect | 9447328e38161c8b3a10a84f19c97ac088d3c9fe | d3460e81927a155046f370b148e1b97ff07031d6 | Change `NdProducer::Dim` of `axis_windows()` to `Ix1` | See #1304
This breaks the public API because the method `axis_windows()` now returns a new `AxisWindows` struct. And the dimension of the `NdProducer::Dim` will always be `Ix1`.
If the old behavior is needed the method `windows()` can be used.
I was thinking about adding a method `AxisWindows::into_windows(se... | diff --git a/src/impl_methods.rs b/src/impl_methods.rs
index c1e28d900..6a86b33a9 100644
--- a/src/impl_methods.rs
+++ b/src/impl_methods.rs
@@ -34,7 +34,7 @@ use crate::zip::{IntoNdProducer, Zip};
use crate::iter::{
AxisChunksIter, AxisChunksIterMut, AxisIter, AxisIterMut, ExactChunks, ExactChunksMut,
- Ind... | 3 | 2 | 1 | [{"id": "G0", "claim": "The NdProducer impl for AxisWindows should be written with the impl_ndproducer! macro instead of by hand, as is done for Windows.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "AxisWindows::new duplicates the slicing logic ... | null |
rust-ndarray__ndarray__1362 | rust-ndarray/ndarray | 1,362 | defect | 5981cceebb4f2b1cb5acd784e8e329c8f7942eae | c4b0e7a1077fa3788517e18698daddf6b73a8f46 | Fix contig check for single element arrays | When an array has 0 or 1 elements, strides don't matter anymore. The general case of this function handled this correctly, but the special case for ndim == 1 did not.
Fixes #1359 | diff --git a/src/arraytraits.rs b/src/arraytraits.rs
index 9aa45bde3..cbd76e548 100644
--- a/src/arraytraits.rs
+++ b/src/arraytraits.rs
@@ -8,7 +8,6 @@
use alloc::boxed::Box;
use alloc::vec::Vec;
-use std::iter::IntoIterator;
use std::mem;
use std::ops::{Index, IndexMut};
use std::{hash, mem::size_of};
@@ -115,... | 3 | 1 | 0 | [{"id": "G0", "claim": "Questions why the pull request dropped the early return style in the ndim == 1 branch of the contiguity check, asking for the reason.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `#[allow(dead_code)]` attribute on t... | null |
rust-ndarray__ndarray__1379 | rust-ndarray/ndarray | 1,379 | defect | 77332b1ea25ce97e8e56d090de2e284d6345e72c | a2b6b30d75f4517806edb99d7a922e57e8e65792 | Add .into_raw_vec_with_offset() and deprecate .into_raw_vec() | Without the offset from start of allocation to the logically first element of the array,
correctly reinterpreting the results of .into_raw_vec() as an n-D array is tricky.
Provide a smoother transition by deprecating the old method and
introducing a new one.
Return Option<usize>, this makes the empty vector cas... | diff --git a/examples/sort-axis.rs b/examples/sort-axis.rs
index 17ce52e3a..4da3a64d5 100644
--- a/examples/sort-axis.rs
+++ b/examples/sort-axis.rs
@@ -157,7 +157,7 @@ where D: Dimension
});
debug_assert_eq!(result.len(), moved_elements);
// forget the old elements but not th... | 3 | 3 | 1 | [{"id": "G0", "claim": "Distinguishing the empty case in offset_from_alloc_to_logical_ptr buys nothing while every call site defaults it to zero, so the offset of into_raw_vec_and_offset should instead be surfaced at the public API as Option<usize> (or *mut A) rather than a bare usize.", "category": "design", "verdict"... | null |
rust-ndarray__ndarray__1437 | rust-ndarray/ndarray | 1,437 | defect | c7ebd35b79e82074977da2c67c2a25cba8ae6bcc | daf98efe0b93b29bbc47045f0d62674d8e72ea8b | Add `diff` method as an equivalent to `numpy.diff` | I've added a `diff` method to the `ArrayBase` struct, as the issue #787 requests.
I didn't include the numpy args `prepend` and `append`, as I think it's fine to let the user do the padding by them self. | diff --git a/src/numeric/impl_numeric.rs b/src/numeric/impl_numeric.rs
index 7306fc727..574ac7f59 100644
--- a/src/numeric/impl_numeric.rs
+++ b/src/numeric/impl_numeric.rs
@@ -10,10 +10,11 @@
use num_traits::Float;
use num_traits::One;
use num_traits::{FromPrimitive, Zero};
-use std::ops::{Add, Div, Mul};
+use std:... | 2 | 2 | 0 | [{"id": "G0", "claim": "The diff method could avoid an allocation by copying into the existing output with Zip::from(&mut out).and(&tail) instead of allocating a new array each iteration.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The #[cfg(feat... | null |
rust-ndarray__ndarray__1460 | rust-ndarray/ndarray | 1,460 | defect | 4e61c87a7dcefac784deae749e0dd982800a9379 | 03fdd5f77d7d73507594dd3820b154e3a3951bd8 | add axis_windows_with_stride() method | This adds a variation of `axis_windows()` that accepts a stride parameter. It is analogous to the `windows_with_stride()` variant of `windows()`. This was already 95% implemented thanks to the work of @jonasBoss in commit 2aec819.
Ref issue #1304. | diff --git a/src/impl_methods.rs b/src/impl_methods.rs
index 4a00ea000..6b02d7fbf 100644
--- a/src/impl_methods.rs
+++ b/src/impl_methods.rs
@@ -1493,6 +1493,17 @@ where
/// ```
pub fn axis_windows(&self, axis: Axis, window_size: usize) -> AxisWindows<'_, A, D>
where S: Data
+ {
+ self.axis_win... | 2 | 1 | 0 | [{"id": "G0", "claim": "The AxisWindows constructor should keep the name `new` rather than being renamed to `new_with_stride`, or the rename should be justified.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR's code should be formatted with... | null |
rust-ndarray__ndarray__1483 | rust-ndarray/ndarray | 1,483 | defect | 41bace11a7ad456911ce62bb7b012d6332ec0af1 | e34747c8098b36f32dfaf714fde698e4e670de09 | Add dot product support for ArrayD | # Add dot product support for ArrayD
Hello, awesome ndarray community!
- This is my very first PR and implements the `Dot` trait for `ArrayD` (dynamic-dimensional arrays), addressing issue #1439.
- for now, the tests are in same location `ndarray/src/linalg/impl_linalg.rs`
- thanks to detailed description for th... | diff --git a/src/linalg/impl_linalg.rs b/src/linalg/impl_linalg.rs
index 7472d8292..d6e7799ca 100644
--- a/src/linalg/impl_linalg.rs
+++ b/src/linalg/impl_linalg.rs
@@ -353,7 +353,7 @@ where
///
/// If their shapes disagree, `rhs` is broadcast to the shape of `self`.
///
- /// **Panics** if broadcasti... | 5 | 3 | 1 | [{"id": "G0", "claim": "The explicit vector-length check in the new vector-vector arm of the IxDyn `dot` duplicates the length check the underlying `dot` implementation already performs, so the reviewer asks the author to check the actual `dot` implementation and remove the redundant check here if it is already covered... | null |
rust-ndarray__ndarray__1576 | rust-ndarray/ndarray | 1,576 | defect | f6a32056ca206100078ef89a5ba95371dfa870b0 | 15874ddc50a61ce6bf0eb6b909ab294caa8d4aec | docs/tests: fix rustdoc links and appease clippy strict lints | Tighten linting; fix rustdoc warnings across feature gates
I continued using stricter linting and found several odd cases in tests and
examples, along with rustdoc warnings triggered by feature-gated items.
This commit cleans up those warnings by:
- adjusting tests to avoid clippy false positives under -D warni... | diff --git a/Cargo.toml b/Cargo.toml
index bee7dcad1..5207ba4c2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,10 +4,7 @@ name = "ndarray"
version = "0.17.2"
edition = "2021"
rust-version = "1.64"
-authors = [
- "Ulrik Sverdrup \"bluss\"",
- "Jim Turner"
-]
+authors = ["Ulrik Sverdrup \"bluss\"", "Jim Turner"]
li... | 5 | 3 | 0 | [{"id": "G0", "claim": "Changing the public example function `from_indices` from `Result<Self, ()>` to `Option<Self>` is an API change that may surprise callers and should be reverted here and made in a separate PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "... | null |
rust-ndarray__ndarray__1580 | rust-ndarray/ndarray | 1,580 | defect | f6f06ce2f9cbf7ad945634e5703c6542d18159b7 | 7ae478c52ab63ade71ffdcb7fcc0ca21d3e85f88 | Change `linspace` to take a range argument. | Add a `linspace_exclusive` function which creates a `Linspace` iterator which is exclusive at its upper bound. This is essentially the same as `linspace(endpoint=False)` in numpy.
Addresses #1169 | diff --git a/benches/construct.rs b/benches/construct.rs
index 71a4fb905..958eaa3b6 100644
--- a/benches/construct.rs
+++ b/benches/construct.rs
@@ -21,7 +21,7 @@ fn zeros_f64(bench: &mut Bencher)
#[bench]
fn map_regular(bench: &mut test::Bencher)
{
- let a = Array::linspace(0., 127., 128)
+ let a = Array::lin... | 3 | 3 | 3 | [{"id": "G0", "claim": "Alter the PR so that `linspace` and its cousins take a Range argument (a breaking API change) instead of adding separately named functions like `linspace_exclusive`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "With a generic `R... | null |
rust-ndarray__ndarray__355 | rust-ndarray/ndarray | 355 | defect | 24f8d590996e6bc56bc9056821a66f5c8dc6c850 | 19e9e98c649897587f82898eb919b511e878e0bf | Add is_empty() to ArrayBase | Closes #353 | diff --git a/src/impl_methods.rs b/src/impl_methods.rs
index bc7482608..a593b33c6 100644
--- a/src/impl_methods.rs
+++ b/src/impl_methods.rs
@@ -59,6 +59,11 @@ impl<A, S, D> ArrayBase<S, D> where S: Data<Elem=A>, D: Dimension
self.dim.size()
}
+ /// Return whether the array has any elements
+ pub ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new is_empty method should be moved down one step so that len and len_of stay next to each other in the docs.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
rust-ndarray__ndarray__456 | rust-ndarray/ndarray | 456 | defect | 6d2eb5eb4324841f2181a6368d4a5989c52fd598 | 862a76de8da717c07e51155c12eb03cf53a0d47b | Update ndarray-rand to rand 0.5.0 | This PR tries to replicate the old behavior as closely as possible.
This PR removes support for `Sample` and `IndependentSample`, which are deprecated in `rand 0.5.0`, and replaces them with the new `Distribution` trait.
Fixes #455. | diff --git a/ndarray-rand/Cargo.toml b/ndarray-rand/Cargo.toml
index b73804567..096c4c283 100644
--- a/ndarray-rand/Cargo.toml
+++ b/ndarray-rand/Cargo.toml
@@ -12,7 +12,7 @@ description = "Constructors for randomized arrays. `rand` integration for `ndarr
keywords = ["multidimensional", "matrix", "rand", "ndarray"]
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The panic on failing to create a SmallRng from thread_rng should be written with `expect(\"create SmallRng from thread_rng failed\")` instead of `unwrap_or_else(|err| panic!(...))`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rust-ndarray__ndarray__550 | rust-ndarray/ndarray | 550 | defect | d1c01fc44095ca0f6fb15abc8e85622d56788bfe | c095159206991be845d6f0d70c85c7d0acd8566c | Fix .axis_chunks_iter/_mut() for zero stride and zero sized types | Two special cases were identified, first by @jturner314, that break the
logic that picks out the last and uneven chunk in axis_chunks_iter/_mut;
we can't rely on a specific pointer value to recognize this chunk, as
the cases in the new test show.
Instead use the indices and length stored in the iterator.
Also ... | diff --git a/src/iterators/mod.rs b/src/iterators/mod.rs
index 0fbc64395..1d21a310c 100644
--- a/src/iterators/mod.rs
+++ b/src/iterators/mod.rs
@@ -1040,7 +1040,7 @@ impl<'a, A, D: Dimension> NdProducer for AxisIterMut<'a, A, D>
/// See [`.axis_chunks_iter()`](../struct.ArrayBase.html#method.axis_chunks_iter) for mor... | 4 | 4 | 0 | [{"id": "G0", "claim": "`last_index` should not be named `last_index` since it is only the last index in the non-evenly-divisible case, and the division could be inlined since the variable is not used elsewhere.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": ... | null |
rust-ndarray__ndarray__626 | rust-ndarray/ndarray | 626 | defect | 2924f2ee3beaa4e7e7938c0f81824b4c783a576f | d319e2f0c11b69023f04590e0fbfa505da024caa | Change syntax of azip! to be similar to for loops | The `azip!` macro is a common source of confusion for both new and experienced users. I think this is largely due to its unique and somewhat non-intuitive dereferencing behavior. (For example, it's inconsistent that the pattern corresponding to `b` is `&b`, but the pattern corresponding to `mut a` is `mut a`. You can s... | diff --git a/benches/bench1.rs b/benches/bench1.rs
index 13bbcb29a..bb96f5887 100644
--- a/benches/bench1.rs
+++ b/benches/bench1.rs
@@ -319,7 +319,7 @@ fn add_2d_zip_alloc(bench: &mut test::Bencher)
bench.iter(|| {
unsafe {
let mut c = Array::uninitialized(a.dim());
- azip!(a, b, ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The equivalent-Zip doc example in zipmacro.rs would be easier to read in the long form with the line breaks in the closure, so the PR should pick whichever version of the example makes for better doc reading.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intr... | null |
rust-ndarray__ndarray__673 | rust-ndarray/ndarray | 673 | defect | be3b74f41f644c57105df3db613a88485711fd33 | a59d48cec38d917f037509845a9916989b519d88 | ENH Add Array2::from_diag | Adds a `Array2::from_diag` method to create 2D arrays from a diagonal.
Closes #672 | diff --git a/src/impl_constructors.rs b/src/impl_constructors.rs
index 2355a1249..062170470 100644
--- a/src/impl_constructors.rs
+++ b/src/impl_constructors.rs
@@ -171,6 +171,20 @@ where
}
eye
}
+
+ /// Create a 2D matrix from its diagonal
+ pub fn from_diag(diag: &ArrayBase<S, Ix1>) -> Se... | 4 | 4 | 3 | [{"id": "G0", "claim": "The from_diag implementation should use diag_mut().assign() (or at least iter_mut()) instead of indexing with eye[[idx, idx]].", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should include a test for a zero-length diag arra... | null |
rust-ndarray__ndarray__724 | rust-ndarray/ndarray | 724 | defect | 5ab292d671a1f22773a172cae215fb48234d6c00 | 2517b7082be57bd796b7ead2d1ea4bd8579b3144 | Add lane sampling to ndarray-rand | While working on https://github.com/rust-ndarray/ndarray-examples/pull/2 I realised that a sampling method could actually fit quite nicely in `ndarray-rand`.
I'd like to relax the `Copy` bound on `A`, I need to look deeper into `select`'s implementation. | diff --git a/ndarray-rand/Cargo.toml b/ndarray-rand/Cargo.toml
index 08495560d..3da1c25ba 100644
--- a/ndarray-rand/Cargo.toml
+++ b/ndarray-rand/Cargo.toml
@@ -23,6 +23,7 @@ features = ["small_rng"]
[dev-dependencies]
rand_isaac = "0.2.0"
+quickcheck = { version = "0.8", default-features = false }
[package.meta... | 7 | 5 | 2 | [{"id": "G0", "claim": "sample_axis_using should select the sampled lanes along the axis passed to the method, not hardcoded Axis(0), otherwise sampling along any axis other than the first returns the wrong lanes.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1"... | null |
rust-ndarray__ndarray__861 | rust-ndarray/ndarray | 861 | defect | 3a2040d916dd892a76cf7f219c1510cf8e48f34a | 668bae754e9d33ada26f16ae69724ff401206803 | Place NdFloat and num-traits/std behind a new "std" feature | This PR adds a new default feature "std" and when present this activates the "std" feature in num-traits and includes the `NdFloat` trait defined in ndarray. This is part of the tasks required in order to provide a `no_std + alloc` version of ndarray for issue #708
This is (an unavoidable) breaking change for any u... | diff --git a/Cargo.toml b/Cargo.toml
index 4dcc8831d..b312fd4a6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -29,7 +29,7 @@ test = true
[dependencies]
num-integer = "0.1.39"
-num-traits = "0.2"
+num-traits = { version = "0.2", default-features = false }
num-complex = { version = "0.3", default-features = false }
... | 3 | 2 | 2 | [{"id": "G0", "claim": "The new `std` feature the PR gates code behind is not added to Cargo.toml; make sure to add it there too.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The documented availability of the float trait (std feature, or with the... | null |
rust-ndarray__ndarray__885 | rust-ndarray/ndarray | 885 | defect | 4d9641db085e64729d52050ea0c24e4a541629a7 | 1499aa692147e20166da3f257327f28cd589aadd | Fix memory continuity judgment when stride is negative | It comes from FIXME in is_cotiguous. Whether the stride is negative will not affect the arrangement of the array in the memory, therefore, sorting and continuity detection can be performed according to the absolute value of the step size. That's what this pr dose in dimension_trait.rs.
Then we need to deal with the ... | diff --git a/src/dimension/dimension_trait.rs b/src/dimension/dimension_trait.rs
index b2ef92e43..e7fefbd63 100644
--- a/src/dimension/dimension_trait.rs
+++ b/src/dimension/dimension_trait.rs
@@ -291,12 +291,11 @@ pub trait Dimension:
let order = strides._fastest_varying_stride_order();
let strides =... | 13 | 11 | 5 | [{"id": "G0", "claim": "Add test cases showing that the fixed contiguity detection now recognizes every contiguous array (e.g. C- or F-contiguous arrays with axes swapped or inverted), since is_contiguous itself is not public and cannot be tested directly.", "category": "testing", "verdict": "supported", "priority": "P... | null |
rust-ndarray__ndarray__947 | rust-ndarray/ndarray | 947 | defect | 09884fc4d1a793f2e43972e8ef7d2555b11f041a | b22e2b1e186766675a908e24a405f9417bcc539a | Add new method .assign_to() | This method does the same job as Zip::from(a).map_assign_into(f, b) with
cloning as the function f.
Comparison with existing assign:
- Reverse argument order: source, destination
- The new method doesn't broadcast.
- The new method is generic over AssignElem (assign into &Cell, &mut
ManuallyUninit etc).
| diff --git a/src/impl_constructors.rs b/src/impl_constructors.rs
index 63688ea7f..bf0c44e97 100644
--- a/src/impl_constructors.rs
+++ b/src/impl_constructors.rs
@@ -531,30 +531,14 @@ where
/// // two first columns in b are two last in a
/// // rest of columns in b are the initial columns in a
///... | 4 | 3 | 0 | [{"id": "G0", "claim": "The PR author is unsure whether the new assign methods are worth adding, since they add nothing new beyond the existing .assign(), which could instead be generalized at some cost to type inference.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
rust-ndarray__ndarray__965 | rust-ndarray/ndarray | 965 | defect | 25b1eebc666c62f84313fdb57ceeff00d14c7461 | d810f1c3d70a2f409b3ee4a07ab101e8d2c15c46 | Improve performance of "no-broadcasting-needed" scenario in &array +&array operation | This PR does the following:
1. Add a method `to_dimensionality` which creats an array view from an array with the same shape, but different dimensionality type.
2. Use `to_dimensionality` to avoid unnecessary calls of `broadcast` in &array + &array operation.
Updates #936 | diff --git a/src/impl_methods.rs b/src/impl_methods.rs
index 4045f2b59..99df551a6 100644
--- a/src/impl_methods.rs
+++ b/src/impl_methods.rs
@@ -1804,14 +1804,38 @@ where
E: Dimension,
{
let shape = co_broadcast::<D, E, <D as DimMax<E>>::Output>(&self.dim, &other.dim)?;
- if let Some(view1... | 3 | 3 | 0 | [{"id": "G0", "claim": "The to_dimensionality calls in the same-shape branch of impl_ops seem redundant with the ones already inside broadcast_with; the PR should do one or the other, not both, and for these call sites self.view().into_dimensionality::<...>() (the existing method) would be enough.", "category": "design... | null |
rust-ndarray__ndarray__967 | rust-ndarray/ndarray | 967 | defect | d50f4eac97c748673d95e6dda8b099ed0c6bdd03 | 8529bba05d29884188aa2080a6fbea85b14f706c | Add method .remove_index(axis, index) | Add method to remove the `index`th entry along all lanes of `axis`.
The method doesn't change the number of initialized elements, just like slicing in place works
(this could be confusing, w.r.t remove semantics).
Fixes #931 | diff --git a/src/impl_methods.rs b/src/impl_methods.rs
index efea69c4c..30e7689e6 100644
--- a/src/impl_methods.rs
+++ b/src/impl_methods.rs
@@ -6,7 +6,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-use std::mem::{size_of, ManuallyDrop};
+use std::mem::{si... | 9 | 6 | 1 | [{"id": "G0", "claim": "The TODO comment misspells \"element\" as \"elment\" and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The unsafe block relies on an unmarked no-panic invariant: if lane_iter.next() could panic, an ele... | null |
rust-ndarray__ndarray__980 | rust-ndarray/ndarray | 980 | defect | fc3f836b1706b9f71df8d57795b8c47a2b058363 | 7da2abcfd51798a2f710c633d27b8f1203921fb6 | Const generics Improvements | Adds the easy const generics improvements mentioned in #961. This includes implementation of `IntoNdProducer`, `FixedInitializer`, and `NdIndex<IxDyn>` for arrays as well as `From` implementations for 2D slices (slices of higher dimensions is also possible). | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 42e5e6584..a2de50f01 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -21,7 +21,7 @@ jobs:
- stable
- beta
- nightly
- - 1.49.0 # MSRV
+ - 1.51.0 # Needed for const generics... | 5 | 5 | 1 | [{"id": "G0", "claim": "The PR should keep the overflow-check logic as it was before the PR (the ZST-conditioned size check in aview2/aview_mut2) instead of removing it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The FixedInitializer trait is no... | null |
rust-num__num-bigint__175 | rust-num/num-bigint | 175 | defect | 38d6973c47124bf7d18be7dabffd3df5aedfef46 | 43c3f7cb979a97c07b567de45c524e414909461c | added BigUint::count_ones(), trailing_ones() | Added `BigUint::count_ones()`, `BigUint::trailing_ones()`. Also minimal tests for these and `BigUint::trailing_zeros()`.
Closes Issue #174 | diff --git a/Cargo.toml b/Cargo.toml
index 1c85c17e..6c4ef4fe 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,7 +15,7 @@ exclude = ["/bors.toml", "/ci/*", "/.github/*"]
edition = "2018"
[package.metadata.docs.rs]
-features = ["std", "serde", "rand", "quickcheck", "arbitrary"]
+features = ["std", "serde", "rand", "q... | 3 | 3 | 3 | [{"id": "G0", "claim": "The new significant_bits() duplicates the existing pub fn bits(&self), so it should not be added.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "trailing_ones should compute ones as (!self.data[i]).trailing_zeros(), as std does fo... | null |
rust-num__num-bigint__183 | rust-num/num-bigint | 183 | defect | d782512fa62d3553de2e668d6198dedaf0e6dbec | 39b89cbb5ce520092de93536f57e2858da1943b6 | Get/set n-th bit of `BigUint` and `BigInt` | This PR implements `bit` and `set_bit` for `BigUint` and `BigInt`.
The method names have been chosen to match those of Ramp (https://docs.rs/ramp/0.5.9/ramp/int/struct.Int.html#method.bit).
For `BigInt` the implementation uses the number's two's complement representation when the number is negative. This matches ... | diff --git a/src/bigint.rs b/src/bigint.rs
index caa6d0eb..315881c7 100644
--- a/src/bigint.rs
+++ b/src/bigint.rs
@@ -3254,6 +3254,70 @@ impl BigInt {
pub fn trailing_zeros(&self) -> Option<u64> {
self.data.trailing_zeros()
}
+
+ /// Returns whether the bit in position `bit` is set,
+ /// uses... | 6 | 5 | 2 | [{"id": "G0", "claim": "The `(bit / bits_per_digit) as usize` conversions in `BigUint::bit` and `BigUint::set_bit` can truncate on 32-bit targets and should use `to_usize()` instead, with the chosen overflow behaviour for `set_bit` documented.", "category": "correctness", "verdict": "supported", "priority": "P1", "scop... | null |
rust-num__num-bigint__245 | rust-num/num-bigint | 245 | defect | 63d96021248d6f96e31c53ff69875f7a40a90ea6 | c51cacd447a19e08506bb0c405551b455b8e8d24 | Implement Euclid division and remainder | Now that a common trait for this has been sorted out (https://github.com/rust-num/num-traits/issues/159 implemented and merged in https://github.com/rust-num/num-traits/pull/195), we can now close https://github.com/rust-num/num-bigint/issues/146 by implementing the trait for `BigInt`s. This commit does just that. | diff --git a/Cargo.toml b/Cargo.toml
index 2185335d..2b8fc616 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -45,7 +45,7 @@ default-features = false
features = ["i128"]
[dependencies.num-traits]
-version = "0.2.11"
+version = "0.2.15"
default-features = false
features = ["i128"]
diff --git a/src/bigint/division.rs... | 3 | 3 | 1 | [{"id": "G0", "claim": "div_euclid should use div_rem so the code does not have to divide twice.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "is_negative() and is_positive() would be more direct than all the comparisons to zero().", "category": "m... | null |
rust-num__num-bigint__26 | rust-num/num-bigint | 26 | defect | 01cf35ae3c6f340a401304b5551e99debecf16a1 | 99876cecfe3d88410f14ca2f25cc683e00bd6311 | two's-complement logic operations on BigInt | This commit adds the following impls, giving results equivalent to what would be expected with two's complement.
* `impl Not for BigInt`
* `impl BitAnd<&BigInt> for BigInt`, `impl BitAndAssign<&BigInt> for BigInt`
* `impl BitOr<&BigInt> for BigInt`, `impl BitOrAssign<&BigInt> for BigInt`
* `impl BitXor<&BigInt> f... | diff --git a/src/bigint.rs b/src/bigint.rs
index b820ffca..1b0990d3 100644
--- a/src/bigint.rs
+++ b/src/bigint.rs
@@ -1,5 +1,6 @@
use std::default::Default;
-use std::ops::{Add, Div, Mul, Neg, Rem, Shl, Shr, Sub, Not};
+use std::ops::{Add, BitAnd, BitOr, BitXor, Div, Mul, Neg, Rem, Shl, Shr, Sub,
+ BitA... | 11 | 9 | 0 | [{"id": "G0", "claim": "The bitwise test file should use `use V::*;` for readability, getting rid of the `V::` prefix everywhere else.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new bitwise/not tests should also be compared against the p... | null |
rust-num__num-bigint__295 | rust-num/num-bigint | 295 | defect | e50a1be13526a05f83edb4eb22039af03efbd9bb | bdfe16590ec230caf058c1113fb04a20e14f21ea | Optimise multiplication | Hi maintainers of rust-num/num-bigint,
I've been hacking on PostgreSQL's numeric.c lately, implementing the Karatsuba algorithm [1].
During this work, I realised that when splitting by half the larger factor's size, then if the smaller factor is less than that, its high part will be zero. I realised that a variab... | diff --git a/benches/bigint.rs b/benches/bigint.rs
index 80ec191c..22795274 100644
--- a/benches/bigint.rs
+++ b/benches/bigint.rs
@@ -87,6 +87,16 @@ fn multiply_3(b: &mut Bencher) {
multiply_bench(b, 1 << 16, 1 << 17);
}
+#[bench]
+fn multiply_4(b: &mut Bencher) {
+ multiply_bench(b, 1 << 12, 1 << 13);
+}
+... | 2 | 1 | 0 | [{"id": "G0", "claim": "Since each product is immediately added to acc, the intermediate p buffer is unnecessary and its allocation can be avoided by multiplying directly into acc.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR's benchmarks c... | null |
rust-num__num-bigint__72 | rust-num/num-bigint | 72 | defect | adc9cb911320a8d1389d1ef3bf7878e7c8d8d54f | 79933434012636e588da6652bdd18fa358b51a31 | Fix `to_signed_bytes_*` for positive number with leading `0x80` | The trick for saving a byte on `0x800000..` only works for negative numbers. This caused +128 to be serialized as `0x80` which is -128. So pretty bad bug. | diff --git a/src/bigint.rs b/src/bigint.rs
index 16caac46..5202e687 100644
--- a/src/bigint.rs
+++ b/src/bigint.rs
@@ -2759,7 +2759,7 @@ impl BigInt {
pub fn to_signed_bytes_be(&self) -> Vec<u8> {
let mut bytes = self.data.to_bytes_be();
let first_byte = bytes.first().map(|v| *v).unwrap_or(0);
- ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The over-long lines in the `to_signed_bytes_be`/`to_signed_bytes_le` conditions should be wrapped by running rustfmt.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It would be good to have a round trip test to/from signed bytes sw... | null |
rust-num__num-traits__334 | rust-num/num-traits | 334 | defect | e8cb7b05d5d6584027dc7e038e72fad2016fe19c | acb1a26ac040a6ae3fbf9e54ca601f294884e18e | Implement Bounded, ToPrimitive, NumCast, FromPrimitive for NonZero* | I have a use case where I convert to and from primitive, and I need to involve `NonZero*` types as well.
Currently, I have a function that uses these traits for primitive types, and I have additional functions for each `NonZero*` that I need. It would be nice to get rid of them and have only one.
I can create on PR... | diff --git a/src/bounds.rs b/src/bounds.rs
index acc990ea..d399cb0b 100644
--- a/src/bounds.rs
+++ b/src/bounds.rs
@@ -1,4 +1,8 @@
use core::num::Wrapping;
+use core::num::{
+ NonZeroI128, NonZeroI16, NonZeroI32, NonZeroI64, NonZeroI8, NonZeroIsize, NonZeroU128,
+ NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8, N... | 8 | 6 | 1 | [{"id": "G0", "claim": "Please also add support for `AsPrimitive` for the NonZero types.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Consider also implementing the traits for the generic `NonZero<T>` (which might need an MSRV-preserving feature-gate).... | null |
rust-openssl__rust-openssl__1097 | rust-openssl/rust-openssl | 1,097 | defect | 2024379f17e5c092290065f564e3a9312a4b6ca0 | d79090a00a26f31f48d1facc2178950f6e090e4a | Support LibreSSL 2.9.1 | LibreSSL 2.9.1 added generic DTLS methods, among other things: libressl-portable/openbsd@ff8fdf5 | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 4cc7d3f4fa..d805bb9bc2 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -286,7 +286,7 @@ workflows:
name: x86_64-libressl-2.9
target: x86_64-unknown-linux-gnu
library: libressl
- version: 2.9.0
+ ... | 4 | 4 | 3 | [{"id": "G0", "claim": "The pull request's build is failing — the {,D}TLS_method cfg gate it adds is written as `cfg(ossl110, libressl291)`, which is not valid cfg syntax and breaks compilation.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Working... | null |
rust-openssl__rust-openssl__1494 | rust-openssl/rust-openssl | 1,494 | defect | c65d85afc9a0af5f0b03a5424b346a85f709b122 | a0daf12778e566d49ab9fffb2161bd092973ef2e | Add private key to pkcs8 passphrase | This PR adds the counterparts of `d2i_PKCS8PrivateKey_bio` and `private_key_from_pkcs8_passphrase`. | diff --git a/openssl-sys/src/pem.rs b/openssl-sys/src/pem.rs
index a3d9cc6f3c..6b1196c7b3 100644
--- a/openssl-sys/src/pem.rs
+++ b/openssl-sys/src/pem.rs
@@ -157,6 +157,15 @@ extern "C" {
cb: pem_password_cb,
u: *mut c_void,
) -> *mut EVP_PKEY;
+ pub fn i2d_PKCS8PrivateKey_bio(
+ bp: *... | 3 | 2 | 1 | [{"id": "G0", "claim": "The CI is failing and this should be fixed before merge.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The redundant call to ffi::init() inside private_key_to_pkcs8_passphrase can be skipped because the existence of the PKey... | null |
rust-openssl__rust-openssl__1498 | rust-openssl/rust-openssl | 1,498 | defect | c65d85afc9a0af5f0b03a5424b346a85f709b122 | 13d4c2588d127c5634336408e2a5e60a186a8119 | Added HKDF derivation functionality | Added `HkdfDeriver` to match the API from OpenSSL `EVP_PKEY_derive`, as well as one-shot functions, which is how HKDF is typically used. Supplied tests based on the SHA-256 test from RFC 5869 | diff --git a/openssl-sys/src/evp.rs b/openssl-sys/src/evp.rs
index 5034a2b03d..87f117d4ab 100644
--- a/openssl-sys/src/evp.rs
+++ b/openssl-sys/src/evp.rs
@@ -1,3 +1,4 @@
+use core::ptr;
use libc::*;
use *;
@@ -20,6 +21,8 @@ pub const EVP_PKEY_X448: c_int = NID_X448;
pub const EVP_PKEY_ED448: c_int = NID_ED448;
p... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request should use `std::ptr` instead of `core::ptr`, which also removes the need for `extern crate core;`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rather than adding more workflow-specific wrapper types l... | null |
rust-openssl__rust-openssl__1743 | rust-openssl/rust-openssl | 1,743 | defect | 4edda635773cce339abcb843d39373df16a4c4fc | 21bf31dc3a6daf852984ed1fd75c031c3293a810 | SSL_add_chain_certificate_pem to add chain certificate on SslRef | fix https://github.com/sfackler/rust-openssl/issues/1742 | diff --git a/openssl-sys/src/ssl.rs b/openssl-sys/src/ssl.rs
index 12243dc4fc..d3f09738c6 100644
--- a/openssl-sys/src/ssl.rs
+++ b/openssl-sys/src/ssl.rs
@@ -339,6 +339,8 @@ pub const SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP: c_int = 71;
#[cfg(any(libressl, all(ossl101, not(ossl110))))]
pub const SSL_CTRL_CLEAR_OPTI... | 4 | 4 | 3 | [{"id": "G0", "claim": "In `cert.as_ptr() as *mut _ as *mut _` one `as *mut _` is redundant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The openssl-sys wrapper is named `SSL_add_chain_certificate_pem`, but no such function exists in OpenSSL;... | null |
rust-openssl__rust-openssl__1823 | rust-openssl/rust-openssl | 1,823 | defect | f14f7a7cd11f60bb2b6e7529e7cc6dbde3dee150 | c1821369cc6d2e8fca4356cd77dd834d40a63ce4 | Add SSL_CTX_set_num_tickets and friends | These are required to disable session tickets on TLS 1.3 connections.
Note that libressl added these functions in 3.5.2, but they are for compatibility only and have no effect, so I didn't include these definitions for libressl. Let me know if I should add support them too. | diff --git a/openssl-sys/src/handwritten/ssl.rs b/openssl-sys/src/handwritten/ssl.rs
index a22f58931e..f179a04ab1 100644
--- a/openssl-sys/src/handwritten/ssl.rs
+++ b/openssl-sys/src/handwritten/ssl.rs
@@ -897,3 +897,17 @@ extern "C" {
#[cfg(ossl110)]
pub fn OPENSSL_init_ssl(opts: u64, settings: *const OPENS... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new getters should drop the `get_` prefix and be named `num_tickets` instead of `get_num_tickets` (on SslContextRef and, likewise, on SslRef).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rust-openssl__rust-openssl__1921 | rust-openssl/rust-openssl | 1,921 | defect | 5d2c40560f64a58fdd742881dd7fc8775146b998 | 56d2e32008f66deff19b4846b3e553298081bcfe | Add bindings to SSL_bytes_to_cipher_list | I have a use case where I need to change the SSL context on the server side based on the supported cipher suite provided in the client hello callback. Without `SSL_bytes_to_cipher_list` support in rust-openssl, there really isn't a convenient way to handle the output from `client_hello_ciphers`, as the format is a real... | diff --git a/openssl-sys/src/handwritten/ssl.rs b/openssl-sys/src/handwritten/ssl.rs
index 039e2d9116..0ec7455ee7 100644
--- a/openssl-sys/src/handwritten/ssl.rs
+++ b/openssl-sys/src/handwritten/ssl.rs
@@ -648,6 +648,15 @@ extern "C" {
num: size_t,
readbytes: *mut size_t,
) -> c_int;
+ #[cfg(... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should bind each OpenSSL API as directly as possible, so the combined client_hello_ciphers_stack method should be split into separate methods for SSL_client_hello_get0_ciphers, SSL_bytes_to_cipher_list and SSL_client_hello_isv2.", "category": "design", "verdict": "supported", "p... | null |
rust-openssl__rust-openssl__2074 | rust-openssl/rust-openssl | 2,074 | defect | 88cb08b4130f511f07d7060603e5ac5f9688065b | aebfe8e72c4fec80cf1f0105449251fddd163376 | add security level bindings | This PR adds bindings for a limited set of the `set_security_level` methods
```
void SSL_CTX_set_security_level(SSL_CTX *ctx, int level);
void SSL_set_security_level(SSL *s, int level);
int SSL_CTX_get_security_level(const SSL_CTX *ctx);
int SSL_get_security_level(const SSL *s);
```
https://www.openssl.org... | diff --git a/openssl-sys/src/handwritten/ssl.rs b/openssl-sys/src/handwritten/ssl.rs
index d4f4b619f4..6b9a329ea8 100644
--- a/openssl-sys/src/handwritten/ssl.rs
+++ b/openssl-sys/src/handwritten/ssl.rs
@@ -924,3 +924,17 @@ extern "C" {
#[cfg(all(ossl111, not(ossl111b)))]
pub fn SSL_get_num_tickets(s: *mut SS... | 3 | 3 | 2 | [{"id": "G0", "claim": "Add `libressl360` to the `#[cfg]` gates on the new security-level FFI declarations throughout, so the bindings are also built for LibreSSL 3.6+.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `set_security_level` doc comm... | null |
rust-openssl__rust-openssl__2076 | rust-openssl/rust-openssl | 2,076 | defect | 8c219948099612b73b1cc4a61f035cc143d8d128 | cc0698ad49244f412476b9d4969b2c9dbd2ba40a | add temp key bindings | This PR adds bindings for a selection of the "temp key" apis.
https://www.openssl.org/docs/manmaster/man3/SSL_get_peer_tmp_key.html
These functions are implemented using the `ctrl` macro. Constants are taken from
https://github.com/openssl/openssl/blob/497a7810bcee48781aa12d4db870f6a565bd0592/include/openssl/... | diff --git a/openssl-sys/src/ssl.rs b/openssl-sys/src/ssl.rs
index e812673333..52ea5b2135 100644
--- a/openssl-sys/src/ssl.rs
+++ b/openssl-sys/src/ssl.rs
@@ -349,6 +349,8 @@ pub const SSL_CTRL_SET_ECDH_AUTO: c_int = 94;
pub const SSL_CTRL_SET_SIGALGS_LIST: c_int = 98;
#[cfg(ossl102)]
pub const SSL_CTRL_SET_VERIFY_C... | 2 | 2 | 2 | [{"id": "G0", "claim": "CI fails with 'unused import' and 'unused function' errors under -D warnings because the cfg-gated temp-key bindings leave the PKey/Public and cvt_long imports and the cvt_long definition unused on older OpenSSL, and the author proposes gating those imports and definitions behind cfg(ossl300).",... | null |
rust-openssl__rust-openssl__2453 | rust-openssl/rust-openssl | 2,453 | defect | 2d20b57135905925fcd7b65275ed324382ab2f38 | e3773208e581254a4599201f935da3e0ff135204 | sys: add symbols to construct an EVP_PKEY from a param builder | - **sys/params: add OSSL_PARAM_BLD symbols**
- **sys/params: add OSSL_PARAM dup, free, merge, locate, locate_const**
- **sys/evp: add selection consts**
| diff --git a/openssl-sys/build/run_bindgen.rs b/openssl-sys/build/run_bindgen.rs
index bce7b63be4..55ccf7c2c9 100644
--- a/openssl-sys/build/run_bindgen.rs
+++ b/openssl-sys/build/run_bindgen.rs
@@ -59,6 +59,8 @@ const INCLUDES: &str = "
#if OPENSSL_VERSION_NUMBER >= 0x30000000
#include <openssl/provider.h>
+#inclu... | 1 | 1 | 0 | [{"id": "G0", "claim": "The #[cfg(ossl300)] attribute added on the params.rs extern block is not required because the entire module already carries that cfg.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rust-openssl__rust-openssl__2462 | rust-openssl/rust-openssl | 2,462 | defect | 24f9a7c9f5632b950bccfba22b66b29e5f441d3f | 33ca4ecc1e37d1c461e878346ea869f9277bf2f1 | Add bindings for SSL_CIPHER_get_protocol_id | [`SSL_CIPHER_get_protocol_id`](https://docs.openssl.org/master/man3/SSL_CIPHER_get_name/)
This includes both bindings for `openssl-sys` and high-level bindings for `openssl`. I wasn't sure whether to use `[u8; 2]` or `u16` for the high-level return type, decided on `[u8; 2]` for now as it feels more natural, I can c... | diff --git a/openssl-sys/src/handwritten/ssl.rs b/openssl-sys/src/handwritten/ssl.rs
index 83c8338d09..973f14bd54 100644
--- a/openssl-sys/src/handwritten/ssl.rs
+++ b/openssl-sys/src/handwritten/ssl.rs
@@ -478,6 +478,8 @@ const_ptr_api! {
extern "C" {
#[cfg(ossl111)]
pub fn SSL_CIPHER_get_handshake_digest(c... | 3 | 1 | 1 | [{"id": "G0", "claim": "The protocol ID is specified as a u16 in the TLS spec, so the binding's [u8; 2] return type is probably wrong.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new protocol_id binding should come with a test.", "category": "test... | null |
rust-openssl__rust-openssl__2560 | rust-openssl/rust-openssl | 2,560 | defect | 4583003f682d1db0930666092c0e67154b06b5ad | 83408821e8b6c4cd85c8615c7a834ff9f0ea9de1 | Still more OpenSSL 1.0.2 complications | This is kind of endless because all the grep I can come up with are very noisy. Let's see how this one goes. There's still more to clean up. | diff --git a/openssl-sys/src/handwritten/evp.rs b/openssl-sys/src/handwritten/evp.rs
index f8c4946c07..752231365e 100644
--- a/openssl-sys/src/handwritten/evp.rs
+++ b/openssl-sys/src/handwritten/evp.rs
@@ -369,7 +369,7 @@ extern "C" {
pub fn EVP_aes_256_wrap() -> *const EVP_CIPHER;
#[cfg(ossl110)]
pub f... | 1 | 1 | 0 | [{"id": "G0", "claim": "The single-alternative type aliases DataPtr and CookiePtr should be inlined as *const c_uchar at their use sites, since a type alias no longer makes sense now that the type is always the same.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rust-openssl__rust-openssl__2599 | rust-openssl/rust-openssl | 2,599 | defect | cbdedf8105bfcce218fcdc09440d090431914710 | 355ec1464bd94cfcb2227e6b75f36d58b4dfc6a1 | Fix dangling stack pointer in custom extension add callback | The out pointer given to OpenSSL was captured before the buffer was moved into ex_data. For inline-storage types like [u8; N], as_ptr() points into the value itself, so the move invalidated the pointer. Capture it from the final heap location instead. | diff --git a/openssl/src/ssl/callbacks.rs b/openssl/src/ssl/callbacks.rs
index eba57b14ae..9f9ebb7db8 100644
--- a/openssl/src/ssl/callbacks.rs
+++ b/openssl/src/ssl/callbacks.rs
@@ -515,9 +515,6 @@ where
match (*callback)(ssl, ectx, cert) {
Ok(None) => 0,
Ok(Some(buf)) => {
- ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The added comment should be shortened as suggested, and at minimum the \"captures\" typo fixed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Supporting custom extension add callbacks that return an inline buffer feels lik... | null |
rust-openssl__rust-openssl__771 | rust-openssl/rust-openssl | 771 | defect | 8830bd5daf3100039a767bfacefdc15d9fea05f4 | f2a65b1da303d503801d9de5faeb07541581fd70 | Fix LibreSSL cms.h detection | Fixes #770. LibreSSL 2.5.x also does not have `cms.h`, people have [encountered that before](https://rt.cpan.org/Public/Bug/Display.html?id=119142). | diff --git a/.circleci/config.yml b/.circleci/config.yml
index f20f866a91..4e8695e81a 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -35,6 +35,7 @@ job: &JOB
steps:
- checkout
- run: apt-get update
+ - run: apt-get remove -y libssl-dev
- run: ./test/add_target.sh
- *RESTORE_REGISTRY
... | 2 | 2 | 0 | [{"id": "G0", "claim": "Update the CI build logic in .circleci/config.yml to uninstall the system OpenSSL headers with `apt-get remove libssl-dev`.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Since only LibreSSL 2.5.x and 2.6.x are supported, the v... | null |
rust-openssl__rust-openssl__864 | rust-openssl/rust-openssl | 864 | defect | f645165ee2b41f9c15d9a7d8f3eec56000b7e445 | dcbb45cc9d18261b8a4153ec19cb5462ea346640 | Implement AES-{128,256}-CCM bindings | Exposes the bindings to AES-{128,256}-CCM ciphers while preserving the API for AEADs. | diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 77f69188e6..3b58ac9944 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -1904,6 +1904,7 @@ extern "C" {
pub fn EVP_aes_128_xts() -> *const EVP_CIPHER;
pub fn EVP_aes_128_ctr() -> *const EVP_CIPHER;
pub fn EVP_aes_128_gc... | 4 | 2 | 1 | [{"id": "G0", "claim": "Other authenticated suites like GCM may break if these CCM-specific calls are always applied, and OCB mode (when supported) will also need special handling.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename ccm_update to ... | null |
rust-or__good_lp__2 | rust-or/good_lp | 2 | defect | 94d14e1e8b9096cf00a8f96ca1ee9bf5f3e9c0b8 | 46132c06c1dfce8919560460e9714439fb499639 | Adding functionality to expose Dual Values | As per your suggestion on Reddit I had a stab at implementing the functionality to expose dual values.
Appears to be failing build due to Upstream... | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index a8eb2b2..473a261 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -11,11 +11,10 @@ env:
jobs:
build:
-
runs-on: ubuntu-20.04
steps:
- - uses: actions/checkout@v2
- - name: install de... | 5 | 4 | 1 | [{"id": "G0", "claim": "The dual-values API should be redesigned so that add_constraint returns a ConstraintReference and a SolutionWithDual lets users first compute the dual values and then extract the one for a given constraint (solution.get_dual().value(my_constraint)) instead of forcing solvers to keep duals as a c... | null |
rust-or__good_lp__38 | rust-or/good_lp | 38 | defect | c500648bd2cdf414f409c16d2d739213a5ce0a2f | b88dc354ab18a003abc69a1a672074b90caea311 | Add WithMipGap trait | Add a `WithMipGap` trait and implement it for `coin_cbc`, `highs`, and `lp_solvers`. This trait mimics the trait of the same name that we recently added to the [lp-solvers](https://github.com/rust-or/lp-solvers) crate.
Implementing `WithMipGap` for `lpsolve` and `scip` appears to be non-trivial so I haven't done th... | diff --git a/src/solvers/coin_cbc.rs b/src/solvers/coin_cbc.rs
index 843f135..253db0d 100644
--- a/src/solvers/coin_cbc.rs
+++ b/src/solvers/coin_cbc.rs
@@ -5,7 +5,7 @@ use std::convert::TryInto;
use coin_cbc::{raw::Status, Col, Model, Sense, Solution as CbcSolution};
-use crate::solvers::ModelWithSOS1;
+use crate... | 4 | 4 | 1 | [{"id": "G0", "claim": "The MIP gap tests should not be generated by a macro but implemented as a single large generic function with small test functions calling it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "with_mip_gap should return a rea... | null |
rust-or__good_lp__63 | rust-or/good_lp | 63 | defect | d4a49429e1985aad3233ca44bfe0077a4b49ba78 | 0b1f3fb3c44a0362fe1c35a189a1af71f733304a | add clarabel wasm feature flag | Adds the possibility to specify `wasm` feature flag to clarabel | diff --git a/Cargo.toml b/Cargo.toml
index 9af2e16..6a831bd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,6 +16,7 @@ default = ["coin_cbc", "singlethread-cbc"]
singlethread-cbc = ["coin_cbc?/singlethread-cbc"]
scip = ["russcip"]
all_default_solvers = ["coin_cbc", "minilp", "lpsolve", "highs", "russcip", "lp-solver... | 3 | 2 | 0 | [{"id": "G0", "claim": "The new `clarabel-wasm` feature flag may be unnecessary, since users can enable a sub-dependency's features directly in their own Cargo.toml (see the linked prior discussion).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Ideally C... | null |
rust-osdev__acpi__277 | rust-osdev/acpi | 277 | defect | 21e8039d658fb2aa3c6b3ea7fe48d637fc06081a | a6a8304467ee7fe2e113398c905d342efa582048 | Allow `aml_tester` to continue after an interpreter panic | The motivation here is to allow testing of large numbers of AML files - before this PR, a panic (probably from the Interpreter) would stop testing of all remaining files as `aml_tester` would exit.
It has evolved into a slightly larger PR than that, with a grab-bag of other minor updates listed below.
The main bi... | diff --git a/src/aml/mod.rs b/src/aml/mod.rs
index a54a2321..3d7b47a2 100644
--- a/src/aml/mod.rs
+++ b/src/aml/mod.rs
@@ -1972,17 +1972,19 @@ where
* that won't fit in a `u64` etc. We probably need to write a more robust parser
* 'real' parser to handle those cases.
... | 4 | 2 | 0 | [{"id": "G0", "claim": "The RunTestResult enum should be replaced by a (TestResult, Option<Interpreter>) return type, optionally merging TestFailureReason into TestResult, because having the two enums split is confusing.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
rust-osdev__bootloader__206 | rust-osdev/bootloader | 206 | defect | 2a44fd4bc2cb955384e145582c300574c911f0da | b29ecb695aaf6a7c44141cfc32d7530924b410c7 | add support for position independent executables | This pr adds support for [position independent executables](https://en.wikipedia.org/wiki/Position-independent_code). This is not particularly useful by itself, however I plan to follow this up with a pr implementing [ASLR](https://en.wikipedia.org/wiki/Address_space_layout_randomization). For now the bootloader always... | diff --git a/Cargo.lock b/Cargo.lock
index 3cabfabe..9e0c5b18 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -386,6 +386,15 @@ dependencies = [
"x86_64 0.13.6",
]
+[[package]]
+name = "test_kernel_pie"
+version = "0.1.0"
+dependencies = [
+ "bootloader",
+ "uart_16550",
+ "x86_64 0.13.6",
+]
+
[[package]]
name = "t... | 7 | 6 | 3 | [{"id": "G0", "claim": "The relocation-type match arm should carry a comment naming the relocation.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The code should panic with a custom message instead of calling unreachable!() when the dynamic segme... | null |
rust-osdev__bootloader__210 | rust-osdev/bootloader | 210 | defect | 8339556753f59c3f8eead01bfb54882cb5a42105 | f14125f437ffc1432bd70372cfa9cf700ed6db9f | Remove feature flag for 'lang_items', 'asm' and 'global_asm' | The feature `asm` and `global_asm` are stable since `1.59.0` and activated by default. So I just removed the feature flags to reduce the number of compiler warnings.
The feature flag `lang_items` has been removed as well as it was no longer used. | diff --git a/src/bin/bios.rs b/src/bin/bios.rs
index 8f2eaedf..0c5e9404 100644
--- a/src/bin/bios.rs
+++ b/src/bin/bios.rs
@@ -1,6 +1,4 @@
#![feature(lang_items)]
-#![feature(global_asm)]
-#![feature(asm)]
#![no_std]
#![no_main]
diff --git a/src/bin/uefi.rs b/src/bin/uefi.rs
index dc5223f6..d81ebfd2 100644
--- a/s... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `#![feature(lang_items)]` attribute left at the top of src/bin/bios.rs is no longer necessary and can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
rust-osdev__bootloader__229 | rust-osdev/bootloader | 229 | defect | 66637c11f5d459cfb4aa5d4f9538e70f012aa442 | 1b111592c90661c4527670d1e867b8e45c7ae15d | add dynamic range configuration | This pr makes it possible to restrict the range of dynamically generated addresses.
This is the last step in getting my higher-half kernel to work with full ASLR. | diff --git a/Cargo.lock b/Cargo.lock
index 2ce48ac2..031c38a4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -350,6 +350,12 @@ dependencies = [
"locate-cargo-manifest",
]
+[[package]]
+name = "rustversion"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2cc38e8fa666e... | 3 | 2 | 0 | [{"id": "G0", "claim": "The pull request enables the default features of the x86_64 dependency that had been explicitly disabled before, and the reviewer questions why.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The granularity of UsedLevel4Entr... | null |
rust-osdev__bootloader__237 | rust-osdev/bootloader | 237 | defect | 5fd311542c73f3014136ce0b4ecbed133443c01b | f975de96c65d2c850edeae3e8b852f2cf78c14a6 | add UEFI PXE support | This pr implements a UEFI PXE bootloader by extending the existing UEFI bootloader to load a kernel from a TFTP server if the DevicePath of the LoadedImage has a device implementing PXE BaseCode protocol.
~~This pr needs some [unreleased new features](https://github.com/rust-osdev/uefi-rs/pull/417) of the `uefi-rs` ... | diff --git a/Cargo.lock b/Cargo.lock
index 42783548..57ccfb91 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -254,9 +254,9 @@ dependencies = [
[[package]]
name = "log"
-version = "0.4.16"
+version = "0.4.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6389c490849ff5bc16be905ae24bc913... | 2 | 2 | 0 | [{"id": "G0", "claim": "In the PXE test runner's exit-code match, the `Some(35) => panic!(\"Test failed\")` arm carries a trailing `// success` comment that is a copy-paste error and should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
rust-osdev__bootloader__302 | rust-osdev/bootloader | 302 | defect | c26220f48fd66b99bf76f933e0beb9f3496c5c60 | 9085b0952d0e2290b01aa34c8eb5e6149b0ab04f | Load ramdisk feature | Adds support for loading a ramdisk to both bios and UEFI, and passing it to the kernel.
Closes #308
cc #299 | diff --git a/Cargo.lock b/Cargo.lock
index 645da8cd..438fe358 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -647,9 +647,9 @@ dependencies = [
[[package]]
name = "uefi"
-version = "0.16.0"
+version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "705535cf386e4b033cc7acdea55ec87... | 6 | 5 | 3 | [{"id": "G0", "claim": "Replace the is_none check plus unwrap in try_load_file with a match or, alternatively, the question-mark operator.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The build errors on the CI, related to config parsing and f... | null |
rust-osdev__bootloader__304 | rust-osdev/bootloader | 304 | defect | 66c1218629976562e21117ddb02a319c87771e35 | c6396222626b1f1ab8ceb4a33824dc0c659489ef | Add bios and uefi cargo features (closes #287) | closes #287
- Added `bios` and `uefi` features in `Cargo.toml` (both enabled by default)
- Made `mbrman` and `gpt` dependencies optional, enabled by the `bios` and `uefi` features respectively
- Moved `BiosBoot` to new `src/bios/mod.rs`
- Moved `mbr.rs` to `src/bios` since it is only used in bios boot
- Moved `... | diff --git a/Cargo.toml b/Cargo.toml
index 4bea9b23..d48889fa 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -37,12 +37,17 @@ bootloader_api = { version = "0.11.0", path = "api" }
bootloader-x86_64-common = { version = "0.11.0", path = "common" }
bootloader-x86_64-bios-common = { version = "0.11.0", path = "bios/common"... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new `any(docsrs_dummy_build, not(feature = ...))` gates on the dummy `build_*` functions are unnecessary; instead the `build_*_bootloader` calls in `main` should be feature-gated so those functions can stay defined only when their feature is enabled.", "category": "design", "verdict": "suppo... | null |
rust-osdev__bootloader__320 | rust-osdev/bootloader | 320 | defect | 85c3536099455f0b381fc19be00cb4ccebb0f5c6 | 76ca9e92d5d2c8894d5bd6be8d74e3b44a12e8c3 | Simplified disk builder | Simplify the disk builder:
1. Move UEFI and BIOS into a common implementation
2. Allow adding of arbitrary files
Closes #321
Note: No new tests, as existing tests fully cover these changes. | diff --git a/build.rs b/build.rs
index b5652bc6..275fbdea 100644
--- a/build.rs
+++ b/build.rs
@@ -266,6 +266,7 @@ async fn build_bios_stage_4(out_dir: &Path) -> PathBuf {
convert_elf_to_bin(elf_path).await
}
+#[cfg(not(docsrs_dummy_build))]
#[cfg(feature = "bios")]
async fn convert_elf_to_bin(elf_path: PathB... | 14 | 14 | 3 | [{"id": "G0", "claim": "Removing the `BiosBoot` and `UefiBoot` structs is a breaking change, so the PR cannot be released in a `v0.11` patch version; it should either be merged once `v0.12` is planned, or the structs kept and their methods implemented on top of the new `DiskImageBuilder`.", "category": "design", "verdi... | null |
rust-osdev__bootloader__336 | rust-osdev/bootloader | 336 | defect | b2d744bb6fb86e2535ae49c8d211092c436b2f7f | 63c9810735a20e5f5ac4d8d14689b552167073b4 | Fix warnings from Clippy | Hello,
This PR fixes some warnings from Clippy.
It isn't a major change, it only changes the way of how are written some things.
Thanks! | diff --git a/api/build.rs b/api/build.rs
index 3621eeef..e0b1437d 100644
--- a/api/build.rs
+++ b/api/build.rs
@@ -34,11 +34,11 @@ fn main() {
i = i,
j = j,
a = (0..i)
- .map(|idx| format!("a[{}]", idx))
+ .map(|idx| format!("a[{idx}]"))
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Do not implement `Default` for `SerialPort` because its initialization has side effects and multiple instances may be problematic; instead rename the constructor to `init`, make it `unsafe`, and add a doc comment saying it must only be called once.", "category": "design", "verdict": "supported",... | null |
rust-osdev__bootloader__360 | rust-osdev/bootloader | 360 | defect | a6c86c3c57569827af3a9e7ffe57834c29752fd2 | fd818fc8609b5dd158a2488cefe63cb696c798c6 | Update `uefi` dependency to `v0.20` | The old version (0.18.0) of the UEFI crate that bootloader 0.11.3 depends on has code that throws a myriad of future incompatibility/deprecation warnings when compilation is attempted ― deprecation warnings that are highlighted in the rust-lang/rust#107457 tracking issue. I therefore created this pull request that both... | diff --git a/Cargo.lock b/Cargo.lock
index e4ebb85f..c12f94cd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -148,7 +148,7 @@ dependencies = [
[[package]]
name = "bootloader"
-version = "0.11.3"
+version = "0.11.4"
dependencies = [
"anyhow",
"async-process",
@@ -173,22 +173,22 @@ dependencies = [
[[package]]
... | 4 | 4 | 1 | [{"id": "G0", "claim": "The manual memory-map storage block in uefi/src/main.rs is no longer needed since uefi-rs#653, so it should be removed entirely rather than kept with the dead-code warning silenced via the `_mmap_storage` rename.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope":... | null |
rust-osdev__bootloader__494 | rust-osdev/bootloader | 494 | defect | 170320b390b968b58f4c8d7488ecd6765f54d66a | d6a1ccdd54f86305364f04f1c2cbf67612056bf4 | Specify kernel-code virt addr in BootloaderConfig | This PR adds a way for the kernel to specify where the bootloader should write the kernel_code in memory.
This is useful for debugging purposes as it ensures that it is easy to specify an offset to gdb.
I also incremented the minor version as this is a breaking change in the way the BootloaderConfig is serialized... | diff --git a/Cargo.lock b/Cargo.lock
index 885893a3..43a5415f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "anyhow"
-version = "1.0.71"
+version = "1.0.95"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0b... | 16 | 14 | 2 | [{"id": "G0", "claim": "Fix the \"alignned\" typo in the kernel_code field's doc comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "mark_p4_index_as_used should return the previous entry state with core::mem::replace instead of the two-step r... | null |
rust-osdev__bootloader__531 | rust-osdev/bootloader | 531 | defect | 8706e2cbd65e78bb31b6e242a027f65954064a7f | 56ecfa11711b09fb81a663d87b17006d7c8930ef | add kernel stack address to BootInfo | I'm not sure if a change to `BootInfo` requires a version bump | diff --git a/api/src/info.rs b/api/src/info.rs
index d934c532..5f46e8cd 100644
--- a/api/src/info.rs
+++ b/api/src/info.rs
@@ -62,6 +62,10 @@ pub struct BootInfo {
pub kernel_len: u64,
/// Virtual address of the loaded kernel image.
pub kernel_image_offset: u64,
+ /// Virtual address of the start of t... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new `stack_start` field of `Mappings` appears to never be initialized.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Naming the field 'start' of the kernel stack is confusing because the stack grows down; the docs should m... | null |
rust-osdev__uefi-rs__10 | rust-osdev/uefi-rs | 10 | defect | 3aa1e9699106399feca9a51aa15ef0fafd2893ee | 193652ed309243613452a73e792b41801831048c | Implement `get_memory_map` | Hi @GabrielMajeri
This is a slightly awkward implementation of `get_memory_map` that I wrote for a project I'm doing and this PR is mostly to see if you have any interest in such an implementation or if I should keep this as a helper in my own library. Also if you have any better suggestions on how to implement this ... | diff --git a/src/lib.rs b/src/lib.rs
index a81d98e4b..f20992b2c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -27,6 +27,7 @@
#![feature(optin_builtin_traits)]
#![feature(const_fn)]
#![feature(conservative_impl_trait)]
+#![feature(align_offset)]
#![no_std]
diff --git a/src/table/boot.rs b/src/table/boot.rs
index 5... | 3 | 3 | 0 | [{"id": "G0", "claim": "The manual result checking in get_memory_map could be replaced with `(self.memory_map)(...).into()?`, which converts the Status code into a Result and returns early if it is bad.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
rust-osdev__uefi-rs__1263 | rust-osdev/uefi-rs | 1,263 | defect | f7f4fa86244f61aec7cd0f78231d89e612813b3a | 0fe7e515445305d3fb01bbbe99c0190366353241 | Finalize memory_map module refactoring | This is (hopefully) the final step of our recent refactorings for the new `memory_map` module and all its traits and implementations. I think we are now in good shape to cover a variety of use-cases. Code inconsistencies are resolved, code structure has improved, documentation is comprehensive. Anything missing? Any co... | diff --git a/uefi/CHANGELOG.md b/uefi/CHANGELOG.md
index 5bb55c153..abf3704e6 100644
--- a/uefi/CHANGELOG.md
+++ b/uefi/CHANGELOG.md
@@ -11,20 +11,24 @@
- `PcrEvent`/`PcrEventInputs` impl `Align`, `Eq`, and `PartialEq`.
- Added `PcrEvent::new_in_box` and `PcrEventInputs::new_in_box`.
- `VariableKey` impls `Clone`, `... | 6 | 6 | 0 | [{"id": "G0", "claim": "The ` (**BREAKING**)` suffix on the CHANGELOG section headers should be dropped and the breaking label kept on individual entries, since not every listed change is semver-incompatible.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "... | null |
rust-osdev__uefi-rs__478 | rust-osdev/uefi-rs | 478 | defect | 4221e42388fb68335fef69a40da00890f3e62569 | 2528293432f1097d13c40ef3b3d7a9dc6061c95c | More protocol safety improvements | This is a change I've been noodling on for a bit related to https://github.com/rust-osdev/uefi-rs/issues/359. The basic issue is that in order to use protocols fully safely, with no chance of either the handle or protocol being modified or removed while in use, we need to ensure that protocols are opened in exclusive m... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ba6df671e..5c71b6a8c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,14 +15,21 @@
Now you can compare everything that is `AsRef<str>` (such as `String` and `str`
from the standard library) to uefi strings. Please head to the documentation of
`EqStrUntilNul` to... | 4 | 4 | 0 | [{"id": "G0", "claim": "The `#[entry]` macro doc should mention that the entry point automatically calls `set_image_handle`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`BootServices::image_handle` should `expect` with a message indicating that... | null |
rust-osdev__x86_64__248 | rust-osdev/x86_64 | 248 | defect | ed1fc0c27d49babfbff671744335ac03617da266 | 66259ea69670d8d1dd8fc7b2ee5ea19eb0fd2a12 | Use marker types for Port read/write access | Changes the `Port` struct to use a type parameter and marker types for restricting read/write access instead of using entirely separate structs, reducing some code duplication and making it easier to be generic over access types.
I'm fairly confident this is a compatible change since the `A` parameter on `Port` defa... | diff --git a/src/instructions/port.rs b/src/instructions/port.rs
index 01e1aafdf..f18cc9bb7 100644
--- a/src/instructions/port.rs
+++ b/src/instructions/port.rs
@@ -95,76 +95,64 @@ impl PortWrite for u32 {
}
}
-/// A read only I/O port.
-pub struct PortReadOnly<T> {
- port: u16,
- phantom: PhantomData<T>,... | 5 | 5 | 2 | [{"id": "G0", "claim": "The PR's reworked `Port::new` breaks type inference at existing call sites (failing CI test); the author asks whether to accept the breakage and just update the test, and the maintainer proposes avoiding the inference issues by keeping `Port` non-generic via separate read/write constructors or b... | null |
rust-pcap__pcap__138 | rust-pcap/pcap | 138 | defect | fc13c6b6e690819e0838be6e0ccf1048c0ef89d8 | 68cc9be71bda7ffe80d601035513cd201e697fb5 | Build-time libpcap version detection | This pull requests replaces the previously existing per-API call features with build-time detection of libpcap version. There is also the option to specify the desired version using the `PCAP_VER` optional environment variable (the default is to use the version of the installed library).
Currently marked as a draft ... | diff --git a/Cargo.toml b/Cargo.toml
index 0954f5e8a..101fcb0b6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -24,22 +24,17 @@ futures = { version = "0.3", optional = true }
tempdir = "0.3"
tokio = { version = "0.2", features = ["rt-core"] }
-[features]
-# This feature enables access to the function Capture::savefile... | 5 | 5 | 1 | [{"id": "G0", "claim": "Changelog entries should be added for the deleted feature flags and the new build-time libpcap version detection (and the reviewer offered improved wording).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cfg flags and ... | null |
rust-pcap__pcap__229 | rust-pcap/pcap | 229 | defect | 915a0aeba9f472918996cb8ebafb17ba7aa92aca | 48a158980efb98d08d9afbc348f418b5e5b75da1 | Implement iterator & Change to stream & Utils | There is a lot of change here I will explain my reason:
- while wanting to implement a build-in iterator in pcap, I hit GaTs (as always :p) I choice to follow the `stream` implementation
- The stream implement use a codec to "map" Packet avoid lifetime issue, I changed this trait cause there is no reason a user of ... | diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 825379d70..c28ed8601 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -18,14 +18,14 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
- toolchain: ["1.40.0", stabl... | 4 | 3 | 1 | [{"id": "G0", "claim": "Copying the Packet definition into an owned-fields PacketOwned is a poor pattern; the reviewer asked whether changing Packet's fields to Cow pointers would represent the struct's borrow semantics better.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id... | null |
rust-pcap__pcap__235 | rust-pcap/pcap | 235 | defect | 932c280ce1f56f042060bde50ce75b3c027ecae9 | 9d2b723069ee189caa28f6557790a53e9af4cacd | Implement pcap_major/minor_version() | Getting the pcap_major_version()/pcap_minor_version() of a dump file can be handy.
| diff --git a/src/lib.rs b/src/lib.rs
index f2ac4d65e..d6474b190 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -807,6 +807,16 @@ impl Capture<Offline> {
})
})
}
+
+ /// Get the major version number of the pcap dump file format.
+ pub fn major_version(&self) -> i32 {
+ return unsafe ... | 3 | 2 | 0 | [{"id": "G0", "claim": "The new major_version method should not use an explicit `return` statement.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `i32` return type is a concern because the functions return a C `int` which is not always `i32... | null |
rust-pcap__pcap__285 | rust-pcap/pcap | 285 | defect | 4eade8016afbfde559766c2c3fa40d91b6030fe9 | e4c3096a213b8cb39d4ea8d47a41a36fb8459ef4 | Initial Linux-only virtual interface testing | This is an end-to-end test of rust pcap and the underlying libpcap and OS. Currently it only works on Linux (and maybe MacOS), must be run with root (at least CAP_NET_ADMIN) permissions.
The test creates a 'TAP' interface
(https://en.wikipedia.org/wiki/TUN/TAP) which is a virtual NIC on one side and a file descript... | diff --git a/tests/tap_tests.rs b/tests/tap_tests.rs
new file mode 100644
index 000000000..7e819102f
--- /dev/null
+++ b/tests/tap_tests.rs
@@ -0,0 +1,149 @@
+/***
+* These tests need to be run as root and currently only work on Linux (and maybe MacOs?)
+*
+* To build and run these tests, run:
+*
+
+ cargo test -F tapt... | 3 | 3 | 2 | [{"id": "G0", "claim": "The '|&' ending the documented cargo test command in the file's header comment should probably be a backslash, as an indicator of a continuing line.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Because CI uses --all-featu... | null |
rust-pcap__pcap__57 | rust-pcap/pcap | 57 | defect | a7f435dd9e971f2a258827cc4fbd0cba7dab7c39 | 94f728bd20d5bb2fc13ec6b1642eec1a0614d525 | allow appending to save files | This adds a parameter to Capture::savefile() that allows appending to the pcap file instead of creating a new one.
If you'd prefer another function over a boolean parameter like in the underlying pcap API, I can do that too. I'm a bit undecided which solution is better.
| diff --git a/Cargo.toml b/Cargo.toml
index b73d4b03a..f89edccea 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,6 +13,13 @@ license = "MIT OR Apache-2.0"
[dependencies]
libc = "0.2.7"
+rand = "0.3.14"
+
+[features]
+# This feature enables access to the function Capture::savefile_append.
+# This is disabled by defau... | 2 | 2 | 2 | [{"id": "G0", "claim": "pcap_dump_open_append was only added in libpcap 1.7.2, so savefile_append won't work on older systems like the Ubuntu 12.04.5 LTS this repository's CI uses; it should be a separate function that can be optionally disabled.", "category": "compatibility", "verdict": "supported", "priority": "P0", ... | null |
rust-pcap__pcap__74 | rust-pcap/pcap | 74 | defect | 520df9b19d054553fd8406704692fa9028cb4ad8 | 39a94af7ac3e3335756a272dea4a515542e4f6ca | Fix cstr_to_string | Previously the code was using CString::from_raw, however that was unsafe https://doc.rust-lang.org/beta/std/ffi/struct.CString.html#safety-1 and was assuming it had ownership of the string.
I converted it to https://doc.rust-lang.org/std/ffi/struct.CStr.html and added tests for linktype to make sure that it works. | diff --git a/src/lib.rs b/src/lib.rs
index 944c2e9d7..d50a3fbee 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -57,7 +57,7 @@ use unique::Unique;
use std::borrow::Borrow;
use std::marker::PhantomData;
use std::ptr;
-use std::ffi::{self, CString};
+use std::ffi::{self, CString, CStr};
use std::path::Path;
use std::sli... | 3 | 3 | 1 | [{"id": "G0", "claim": "cstr_to_string should propagate invalid-UTF-8 as an error via to_str()? instead of using to_string_lossy, which silently replaces invalid bytes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The .to_string_lossy().into_owned... | null |
rust-phf__rust-phf__197 | rust-phf/rust-phf | 197 | defect | 8dce12c4716cb7eeaedd5c7f5143b9c0450cedc2 | 3d3b97074452e63dadd98980ecab0580d819156e | Add support for uncased | I suspect the `unsafe` in this PR may make this unmergeable, but figured I'd throw up anyway, because the current support for `UniCase` is sadly pretty useless, as far as I can tell. Details below, but basically AFAICT you can only perform lookups in a `UniCase` map if you have a static string literal.
----
uncas... | diff --git a/phf/Cargo.toml b/phf/Cargo.toml
index b56b99e9..a6b79160 100644
--- a/phf/Cargo.toml
+++ b/phf/Cargo.toml
@@ -15,6 +15,7 @@ test = false
[features]
default = ["std"]
std = ["phf_shared/std"]
+uncased = ["phf_shared/uncased"]
unicase = ["phf_shared/unicase"]
macros = [
"phf_macros",
diff --git a/phf_... | 5 | 5 | 2 | [{"id": "G0", "claim": "The uncased dependency pinned at 0.9.3 is yanked and should be bumped to 0.9.6.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the stray blank line after the UNCASED_MAP write! call in build.rs.", "category": "maintain... | null |
rust-phf__rust-phf__77 | rust-phf/rust-phf | 77 | defect | ae5ee38cad084144775d89fe38d8fdda33224697 | 1f408cc58a3a4ef24946828f20dcfdf14cd2fd6e | Support byte string keys in phf_macros (fixes #76) | Because of https://github.com/rust-lang/rust/issues/31260, a cast must be inserted explicitly instead of letting rustc implicitly coercing the type.
| diff --git a/phf_macros/src/lib.rs b/phf_macros/src/lib.rs
index fc5b532d..5ac953a0 100644
--- a/phf_macros/src/lib.rs
+++ b/phf_macros/src/lib.rs
@@ -42,13 +42,15 @@ extern crate phf_generator;
use std::collections::HashMap;
use std::collections::hash_map::Entry::{Occupied, Vacant};
-use syntax::ast::{self, TokenT... | 1 | 1 | 0 | [{"id": "G0", "claim": "Keep the signature of parse_key unchanged and add a new function that adjusts the expression instead, so all of the e.clone() calls can be avoided.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rust-postgres__rust-postgres__1008 | rust-postgres/rust-postgres | 1,008 | defect | 70616712a45ea138b026941c4ae7f84c3d0c08b2 | 071dfa3f3b217a32b1e2ab3db9e6ab5132f2fcd1 | added `rename_all` container attribute for enums and structs | Related issue: #934
Adding a `rename_all` attribute to a struct or enum will rename the container's fields/variants according to the rule specified. Similar to serde's `rename_all` but for use with `ToSql` and `FromSql`.
This removes the need to manually rename each field/variant before inserting/selecting from... | diff --git a/postgres-derive-test/src/composites.rs b/postgres-derive-test/src/composites.rs
index a1b76345f..50a22790d 100644
--- a/postgres-derive-test/src/composites.rs
+++ b/postgres-derive-test/src/composites.rs
@@ -89,6 +89,49 @@ fn name_overrides() {
);
}
+#[test]
+fn rename_all_overrides() {
+ #[deri... | 2 | 2 | 1 | [{"id": "G0", "claim": "The manual case-conversion implementation should be replaced with the heck crate to handle all of the renaming rules.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The crate-level documentation in postgres-types/src/lib.... | null |
rust-postgres__rust-postgres__1144 | rust-postgres/rust-postgres | 1,144 | defect | 98f5a11bc0a8e451552d8941ffa078c7eb6cd60c | bd6350c2fff2201d680a1814acf7a9208f4b7ad4 | Adds RowDescription to the SimpleQueryMessage | Adds RowDescription to the SimpleQueryMessage to allow column information to be consumed without needing to consume any DataRows
Resolves #1143 | diff --git a/tokio-postgres/src/lib.rs b/tokio-postgres/src/lib.rs
index 2973d33b0..a603158fb 100644
--- a/tokio-postgres/src/lib.rs
+++ b/tokio-postgres/src/lib.rs
@@ -130,7 +130,7 @@ pub use crate::generic_client::GenericClient;
pub use crate::portal::Portal;
pub use crate::query::RowStream;
pub use crate::row::{R... | 1 | 1 | 0 | [{"id": "G0", "claim": "The RowDescription handler in simple_query.rs shouldn't need to clone the columns here.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rust-postgres__rust-postgres__1164 | rust-postgres/rust-postgres | 1,164 | defect | 9f196e7f5ba6067efe55f758d743cdfd9b606cff | 6de0fceebe3c1800a5e812f35449e464fbc33f55 | Add Jiff support | This PR adds support for version 0.1 of [Jiff](https://github.com/BurntSushi/jiff).
Jiff is inspired by [Temporal](https://tc39.es/proposal-temporal/docs/index.html), a [TC39](https://tc39.es/) proposal to improve datetime handling in JavaScript.
The implementation in *jiff_01.rs* is based on *chrono_04.rs*. When... | diff --git a/postgres-types/CHANGELOG.md b/postgres-types/CHANGELOG.md
index 1e5cd31d8..b11e18d32 100644
--- a/postgres-types/CHANGELOG.md
+++ b/postgres-types/CHANGELOG.md
@@ -2,6 +2,10 @@
## Unreleased
+### Added
+
+* Added support for `jiff` 0.1 via the `with-jiff-01` feature.
+
## v0.2.7 - 2024-07-21
### A... | 5 | 3 | 2 | [{"id": "G0", "claim": "The Timestamp FromSql/ToSql impls should not go through a civil DateTime but compute the jiff Timestamp directly from the raw microseconds.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ToSql/FromSql impls for jiff::Zoned sho... | null |
rust-postgres__rust-postgres__184 | rust-postgres/rust-postgres | 184 | defect | c0512e08a3905acaeb176ca3bc28940ba9670d12 | cf3ead046e8a104bfd1c434ebed08d0238123639 | Add savepoint method to Transaction | Fixes #179
This change creates a `Transaction.savepoint` method, which is equivalent
to `Transaction.transaction`, but takes a custom name for the nested
transaction's savepoint name.
| diff --git a/src/transaction.rs b/src/transaction.rs
index d606b06fd..b0462d60b 100644
--- a/src/transaction.rs
+++ b/src/transaction.rs
@@ -151,6 +151,7 @@ impl Config {
pub struct Transaction<'conn> {
conn: &'conn Connection,
depth: u32,
+ savepoint_name: Option<&'conn str>,
commit: Cell<bool>,
... | 3 | 2 | 1 | [{"id": "G0", "claim": "The savepoint_name field should be an Option<String> rather than Option<&'conn str>, since the allocation cost is negligible, after which savepoint's name parameter can just be a plain &str instead of a lifetime-coupled &'a str.", "category": "design", "verdict": "supported", "priority": "P1", "... | null |
rust-postgres__rust-postgres__264 | rust-postgres/rust-postgres | 264 | defect | 06a6273f74417cf0b34350314bffab31a03eaaa4 | 5440ce3d463b9ee01b09f059e27734c38bbdf880 | Make Rows a fully owned type | This allows Rows to outlive a statement and be sent to 'static threads.
Resolves #263. | diff --git a/postgres/src/lib.rs b/postgres/src/lib.rs
index 68556c5b1..efbd97c42 100644
--- a/postgres/src/lib.rs
+++ b/postgres/src/lib.rs
@@ -218,12 +218,24 @@ pub enum TlsMode<'a> {
Require(&'a TlsHandshake),
}
-struct StatementInfo {
+// Needs to be pub since `RowIndex` is pub.
+#[doc(hidden)]
+pub struct ... | 3 | 3 | 2 | [{"id": "G0", "claim": "Making this change to `RowIndex` is still backwards incompatible for external implementors.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Since the trait is changing anyway, `idx` should just take a `&[Column]` so that `Statement... | null |
rust-postgres__rust-postgres__488 | rust-postgres/rust-postgres | 488 | defect | a8d945c70ea6ddb6303d457f37a2de00ef6e8d80 | 6c3a4ab19208e682e150ce31b987297b9e8bb75b | Add channel_binding=disable/prefer/require to config | Closes #487
@jeff-davis | diff --git a/postgres-native-tls/src/test.rs b/postgres-native-tls/src/test.rs
index d4942fe8e..416a3c14d 100644
--- a/postgres-native-tls/src/test.rs
+++ b/postgres-native-tls/src/test.rs
@@ -12,9 +12,7 @@ where
T: TlsConnect<TcpStream>,
T::Stream: 'static + Send,
{
- let stream = TcpStream::connect("127... | 4 | 3 | 1 | [{"id": "G0", "claim": "The no_channel_binding helper with its __NonExhaustive arm circumvents the exhaustive-match check; the reviewer questions its purpose.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Checking channel binding per auth method that mi... | null |
rust-postgres__rust-postgres__580 | rust-postgres/rust-postgres | 580 | defect | 89ea051d5affe1a3305869a7eaa36eee290ef36f | 2082d4f781a211f4248cbff026716b5f63bba04a | Add support for time-0.2 types | This is essentially ported from the `chrono` implementation. | diff --git a/postgres-types/Cargo.toml b/postgres-types/Cargo.toml
index 4add13815..a17829cec 100644
--- a/postgres-types/Cargo.toml
+++ b/postgres-types/Cargo.toml
@@ -18,6 +18,7 @@ with-eui48-0_4 = ["eui48-04"]
with-geo-types-0_4 = ["geo-types-04"]
with-serde_json-1 = ["serde-1", "serde_json-1"]
with-uuid-0_8 = ["... | 2 | 2 | 2 | [{"id": "G0", "claim": "The OffsetDateTime implementation should support only TIMESTAMP WITH TIME ZONE, not TIMESTAMP, to align with the chrono types.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add tests for the new time-0.2 t... | null |
rust-postgres__rust-postgres__726 | rust-postgres/rust-postgres | 726 | defect | e29439a5590157e3aedb373c33b96ccda6b3b959 | bfe51d638b26e9ba6fe8eefbed348d9949bb5082 | PgLsn type. | This type will be useful for implementing the replication protocol. | diff --git a/postgres-protocol/src/lib.rs b/postgres-protocol/src/lib.rs
index b4374afa1..13de51e71 100644
--- a/postgres-protocol/src/lib.rs
+++ b/postgres-protocol/src/lib.rs
@@ -24,6 +24,9 @@ pub mod types;
/// A Postgres OID.
pub type Oid = u32;
+/// A Postgres Log Sequence Number (LSN).
+pub type Lsn = u64;
+
... | 4 | 3 | 1 | [{"id": "G0", "claim": "Parsing an LSN string should be a FromStr impl returning a Result instead of a From<&str> that unwraps.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The string-to-String conversion should be a Display impl instead of From<PgLsn>... | null |
rust-postgres__rust-postgres__806 | rust-postgres/rust-postgres | 806 | defect | 9ead59e3023ae6ef6ad1435e047842dac68de881 | ec29dedcdbfd63b246279bfa6833415d017a19c0 | Add `FromSql` and `ToSql` impls for arrays (guarded behind feature) | Fixes #805
First I tried using the crate `rustversion` to automatically enable the two impls on newer compilers. However, as far as I understand, it is not possible to conditionally include dependencies based on the compiler version. But I wanted to use [`array-init`](https://crates.io/crates/array-init) as there i... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4a95dbe0c..8b3a3420d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -59,7 +59,7 @@ jobs:
- uses: actions/checkout@v2
- uses: sfackler/actions/rustup@master
with:
- version: 1.46.0
+ v... | 2 | 1 | 1 | [{"id": "G0", "claim": "The `try_array_init` call should early-exit with `?`, otherwise an early inner value decode error will end up being reported as an \"excess elements in array\" error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Now that CI... | null |
rust-postgres__rust-postgres__857 | rust-postgres/rust-postgres | 857 | defect | 630f179892c9030119bf80df97aa05fef2dea525 | f63fc16e4a350a9152a2af830e358188d25e5828 | Derive transparent | # `#[postgres(transparent)]`
# Acknowledgments
- @nolanderc for the original PR: https://github.com/sfackler/rust-postgres-derive/pull/18
# Example
```rust
#[derive(ToSql, FromSql)]
#[postgres(transparent)]
struct UserId(i32);
``` | diff --git a/postgres-derive/src/accepts.rs b/postgres-derive/src/accepts.rs
index 530badd0b..63473863a 100644
--- a/postgres-derive/src/accepts.rs
+++ b/postgres-derive/src/accepts.rs
@@ -6,6 +6,14 @@ use syn::Ident;
use crate::composites::Field;
use crate::enums::Variant;
+pub fn transparent_body(field: &syn::Fie... | 3 | 2 | 1 | [{"id": "G0", "claim": "Centralize the name/transparent conflict check in one place instead of having each branch check — ideally at the bottom of Overrides::extract.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a few quick tests for the new transpar... | null |
rust-postgres__rust-postgres__875 | rust-postgres/rust-postgres | 875 | defect | 25cabd5d853513e2ca0c50394b464e8199558ec2 | a67ec5323f2f1109c914ca09af6b980fe6a5966f | Add ltree, lquery and ltxtquery support | This adds [Postgres ltree, lquery and ltxtquery](https://www.postgresql.org/docs/current/ltree.html) support to rust-postgres. For the uninitiated, ltree ("label tree") is a Postgres datatype that follows a dot-notated search path for a given row. Lquery and ltxtquery allow users to search for rows that match an ltree.... | diff --git a/postgres-protocol/Cargo.toml b/postgres-protocol/Cargo.toml
index 2010e88ad..a4716907b 100644
--- a/postgres-protocol/Cargo.toml
+++ b/postgres-protocol/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "postgres-protocol"
-version = "0.6.3"
+version = "0.6.4"
authors = ["Steven Fackler <sfackler@gmail.com>"]... | 2 | 2 | 2 | [{"id": "G0", "claim": "The ltree parser should check the version number to ensure the format can be parsed, as done in the jsonb conversion impls.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Separate to_sql and from_sql methods should be exposed... | null |
rust-psutil__rust-psutil__25 | rust-psutil/rust-psutil | 25 | defect | dd113b21ff004432cd4d6538cdf33178d4104cba | fa28e7a240c9aaf5973c205228941f62ca3188fb | Add virtual_memory and swap_memory functions | Add two new functions to the psutil::system module to query virtual and
swap memory statistics.
I'm pretty new to Rust, so if something can be improved or made more idiomatic, let me know. | diff --git a/src/system.rs b/src/system.rs
index a21f9c68b..ddb88f9f1 100644
--- a/src/system.rs
+++ b/src/system.rs
@@ -2,9 +2,105 @@
use std::str::FromStr;
use std::path::Path;
+use std::collections::HashMap;
use utils::read_file;
+/// Gets a value from a hashmap and dereferences it.
+/// If the key doesn't ... | 6 | 6 | 3 | [{"id": "G0", "claim": "The Default trait impl is not idiomatic; VirtualMemory and SwapMemory should instead expose a `pub fn new` constructor taking total, available, shared, free, buffers, cached, active and inactive as arguments and calculating used and percent.", "category": "design", "verdict": "supported", "prior... | null |
rust-psutil__rust-psutil__26 | rust-psutil/rust-psutil | 26 | defect | c6b6f47b5c845888459671963ec18bdc478f99d2 | 525fa6ec544f8866055ba8ec3d22f4fe1e4ca98c | Add system::loadavg | Add function to return the system's load average. This includes the
average number of runnable entities averaged over one, five, and fifteen
minutes as well as statistics on the total number of runnable entities
and the last pid that was used.
Behind the scenes, the `try_parse` macro was moved to utils since it's... | diff --git a/src/lib.rs b/src/lib.rs
index 7b6d3da95..db0cc6c57 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -4,11 +4,12 @@
extern crate lazy_static;
extern crate libc;
+#[macro_use]
+mod utils;
+
pub mod pidfile;
pub mod process;
pub mod system;
-mod utils;
-
/// Type for process identifiers.
///
/// This sho... | 2 | 2 | 0 | [{"id": "G0", "claim": "Split the parsing out of `loadavg` into a separate function with the signature `fn loadavg_internal(proc_file_contents: &str) -> Result<LoadAverage>` so it can be unit-tested with sample data.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
rust-random__rand__1000 | rust-random/rand | 1,000 | defect | c9f485a015a70d88f7103a4ca6eaf60e7802962a | 5a00f58b02df120bd88b13937a4c54ad67cdc401 | Improve algorithm for sampling `Beta` | Fixes #999.
cc @rasa200 | diff --git a/rand_distr/CHANGELOG.md b/rand_distr/CHANGELOG.md
index 25def45ef7f..2ab1bc79a8d 100644
--- a/rand_distr/CHANGELOG.md
+++ b/rand_distr/CHANGELOG.md
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- All error types now implement `std::error::Error` (#919)
-... | 9 | 7 | 5 | [{"id": "G0", "claim": "The new parameter check `alpha <= 0` does not reject NaN, so a NaN shape parameter would be accepted; use something like `if !(x > LIM)` instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The code could use `N::zero()` i... | null |
rust-random__rand__1062 | rust-random/rand | 1,062 | defect | a61efd90be094623e8a27bd81223a884e5f0fd98 | 50b9ef126b33199191080f7db6fd27a5ab19849a | Add geometric and hypergeometric distributions | I needed both these distributions recently (for procedural generation and numerical simulation, respectively), and I figured I might as well contribute them for other people's convenience.
I use the obvious sampling algorithm for the hypergeometric distribution, which is exact, but runs in `O(n)` time and requires `... | diff --git a/rand_distr/src/geometric.rs b/rand_distr/src/geometric.rs
new file mode 100644
index 00000000000..80b88501a31
--- /dev/null
+++ b/rand_distr/src/geometric.rs
@@ -0,0 +1,119 @@
+//! The geometric distribution.
+
+use crate::{Distribution, Exp, Exp1};
+use num_traits::Float;
+use rand::Rng;
+use std::fmt;
+
... | 7 | 5 | 1 | [{"id": "G1", "claim": "The new distribution should keep its full name `Geometric` instead of `Geo`, since `Geo` reads as a geographic shorthand and `Geometric` pairs better with `Hypergeometric`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "A... | null |
rust-random__rand__1073 | rust-random/rand | 1,073 | defect | eb02f0e4639074374b6700b43f3cd77092b87c2f | b06c77ff535c6c02fc564ea71c362b8348bd42bd | Migrate to GitHub Actions | Closes #1066
Incomplete: 32-bit Linux runner, Big-Endian runner, web (was already broken or removed but script left in utils/ci).
Fingers crossed most of this works... | diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
new file mode 100644
index 00000000000..ad9b0943d4f
--- /dev/null
+++ b/.github/workflows/gh-pages.yml
@@ -0,0 +1,29 @@
+name: gh-pages
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ deploy:
+ name: GH-pages documentation
+ r... | 6 | 5 | 3 | [{"id": "G0", "claim": "The migrated CI needs to test on a Big Endian target such as MIPS, e.g. using rust-embedded/cross.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The badge links added to the crate READMEs point to the wrong repository (kas-gui/k... | null |
rust-random__rand__1111 | rust-random/rand | 1,111 | defect | 9555338a270f408913068940f768a312561491f2 | 624d24e8ae0043bfbd59c369e1741ab3bc848a64 | Add an advance function to PCG generators | Based on the C implementations to advance the generator. | diff --git a/rand_pcg/src/pcg128.rs b/rand_pcg/src/pcg128.rs
index 58a8e36b7c1..db006d22205 100644
--- a/rand_pcg/src/pcg128.rs
+++ b/rand_pcg/src/pcg128.rs
@@ -40,6 +40,35 @@ pub struct Lcg128Xsl64 {
pub type Pcg64 = Lcg128Xsl64;
impl Lcg128Xsl64 {
+ /// Multi-step advance functions (jump-ahead, jump-back)
+ ... | 6 | 6 | 2 | [{"id": "G0", "claim": "The pull request should include a test for the advance function, ideally comparing advance(20) against stepping a second generator 20 times (or a reference implementation).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `let ... | null |
rust-random__rand__1174 | rust-random/rand | 1,174 | defect | 7c5ceea909aa9cf38c78489f87e3fca94fcf4819 | 7577c39da86d311db018ed34e1dc7b9d15502956 | SkewNormal distribution implementation | Related to #1149.
Implements the Skew Normal distribution.
Most notably I had to add a dev-dependency to include distribution tests similar to #1121.
Adding the test was suggested by @dhardy.
There was a brief discussion about adding dev-dependencies for special functions with @vks in [here](https://github.com... | diff --git a/rand_distr/CHANGELOG.md b/rand_distr/CHANGELOG.md
index 04d50238274..9b919f398f2 100644
--- a/rand_distr/CHANGELOG.md
+++ b/rand_distr/CHANGELOG.md
@@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
- New `Zeta` and `Zipf` distributions (#1136... | 8 | 7 | 0 | [{"id": "G0", "claim": "The failing CI tests may be a problem with the `quote` crate and its use of constant generics.", "category": "testing", "verdict": "opposed", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The error message for a rejected scale says only \"non-finite\", although a negative (non... | null |
rust-random__rand__1202 | rust-random/rand | 1,202 | defect | f8106ef79d9a4b5061222bebacf5dc8cee76389d | e83f262d7537e37ed692b85e2faff679c055f480 | Add Lcg128CmDxsm64 generator compatible with NumPy's PCG64DXSM | Fixes #1200 | diff --git a/rand_pcg/CHANGELOG.md b/rand_pcg/CHANGELOG.md
index 7464b301001..8bc112adabd 100644
--- a/rand_pcg/CHANGELOG.md
+++ b/rand_pcg/CHANGELOG.md
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
a... | 5 | 5 | 0 | [{"id": "G0", "claim": "The file's copyright header should read \"Copyright 2018-2021 Developers of the Rand project.\" instead of \"Copyright 2018\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment of `new` should document that the... | null |
rust-random__rand__1209 | rust-random/rand | 1,209 | defect | 19404d68764ed08513131f82157e2ccad69dcf83 | 745ace87e539c5473f5cdc9a556912b5ffaf05b2 | rand_distr: Fix dirichlet sample method for small alpha. | Generating Dirichlet samples using the method based on samples from the gamma distribution can result in samples being nan if all the values in alpha are sufficiently small. The fix is to instead use the method based on the marginal distributions being the beta distribution (i.e. the "stick breaking" method) when all ... | diff --git a/rand_distr/src/dirichlet.rs b/rand_distr/src/dirichlet.rs
index 0ffbc40a049..f8164496266 100644
--- a/rand_distr/src/dirichlet.rs
+++ b/rand_distr/src/dirichlet.rs
@@ -9,8 +9,8 @@
//! The dirichlet distribution.
#![cfg(feature = "alloc")]
-use num_traits::Float;
-use crate::{Distribution, Exp1, Gamma, ... | 12 | 9 | 3 | [{"id": "G0", "claim": "The initialization of the small-alpha (stick-breaking/beta) algorithm, including the alpha cumulative sum, should be moved out of `sample` into `Dirichlet::new`, e.g. by making `Dirichlet` an enum (or a struct wrapping an enum) with one variant per sampling method.", "category": "design", "verdi... | null |
rust-random__rand__1393 | rust-random/rand | 1,393 | defect | 58add64ba4baf2102b39f9bf3be48ff6e8262452 | e13ca348dd9cb6f1ed3b62d2f6f9e0207e9284f6 | Update zerocopy; trim unused methods | - Remove mention of `stdsimd` (obsolete)
- cfg-gate or remove methods no longer needed (outside of tests)
- Update to `zerocopy` version `=0.8.0-alpha.5`. Usually we don't bother using pre-release versions, but this is causing a lot of test failures. | diff --git a/Cargo.toml b/Cargo.toml
index da14228a547..b2c7f3d6162 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -69,7 +69,7 @@ rand_core = { path = "rand_core", version = "0.7.0", default-features = false }
log = { version = "0.4.4", optional = true }
serde = { version = "1.0.103", features = ["derive"], optional = t... | 2 | 1 | 0 | [{"id": "G0", "claim": "Drop the #[cfg(feature = \"std\")] gating this PR adds around `fn one()` in the `UInt` trait and its impls in src/seq/index.rs; the reviewer does not think the gating is worth adding.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
rust-random__rand__1452 | rust-random/rand | 1,452 | defect | 10a1fa4d22d2145cc1f12eaccb5d570e89a9b0f7 | 1ed06866acda4ded133a8f49c5a951c638b64d05 | Revise pert | - [x] Added a `CHANGELOG.md` entry
#1311 show-cases an issue with our PERT implementation. The simplest fix I found was to also use the special-case of `v` when `2*mode - min - max == 0`. A better fix can be found in the R package [mc2d](https://rdrr.io/cran/mc2d/man/pert.html), duplicated here.
Calculations are ... | diff --git a/rand_distr/CHANGELOG.md b/rand_distr/CHANGELOG.md
index e29c59910df..5435b5a7f42 100644
--- a/rand_distr/CHANGELOG.md
+++ b/rand_distr/CHANGELOG.md
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.... | 3 | 1 | 1 | [{"id": "G0", "claim": "Clippy errors on `Pert::new(min, max) -> PertBuilder<F>` (new_ret_no_self), and the author asks whether the lint can be ignored.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "PertBuilder should store `shape` as `Option<F>` (... | null |
rust-random__rand__1494 | rust-random/rand | 1,494 | defect | ef052ec539ed13dfbe5938559ca78f92071873f4 | f1cea58218a4cd689e31f3f186cec7cc813d44b2 | Cdf testing with Kolmogorov Smirnov | - [x] Added a `CHANGELOG.md` entry
# Summary
As addition and alternative to pdf testing, I implemented distribution testing based on cdf
# Motivation
The cdf tests should be more robust and avoid having the bin-width choice problem
# Details
I have two simple example tests for normal and binomial. If ... | diff --git a/rand_distr/Cargo.toml b/rand_distr/Cargo.toml
index c3a717a8465..be05b2aad09 100644
--- a/rand_distr/Cargo.toml
+++ b/rand_distr/Cargo.toml
@@ -45,3 +45,5 @@ rand = { path = "..", version = "=0.9.0-alpha.1", features = ["small_rng"] }
average = { version = "0.15", features = [ "std" ] }
# Special functio... | 11 | 10 | 4 | [{"id": "G0", "claim": "The step_points doc comment misspells 'continuous' as 'continoius' and lines should be broken at 80 characters.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The continuous KS statistic omits one of the two candidate maxim... | null |
rust-random__rand__1504 | rust-random/rand | 1,504 | defect | 9c2787de73da3096eb1db7ee3bcfd05d10b948c1 | dce307334d6b1d3a2691cdfd75dd8b83e007975f | Add more Kolmogorov–Smirnov test | - [x] Added a `CHANGELOG.md` entry
# Summary
Enhance Kolmogorov–Smirnov Test Coverage for Various Distributions
# Motivation
Improve CDF test coverage
# Details
I have implemented Kolmogorov–Smirnov tests for the following distributions:
- Continuous:
- [SkewNormal](https://docs.rs/rand_distr/late... | diff --git a/rand_distr/tests/cdf.rs b/rand_distr/tests/cdf.rs
index 71b808d241c..b0ecb9be4b9 100644
--- a/rand_distr/tests/cdf.rs
+++ b/rand_distr/tests/cdf.rs
@@ -11,8 +11,7 @@ use core::f64;
use num_traits::AsPrimitive;
use rand::SeedableRng;
use rand_distr::{Distribution, Normal};
-use special::Beta;
-use specia... | 11 | 9 | 2 | [{"id": "G0", "claim": "Comment out each parameter set whose KS test fails, so the suite passes while the failures are investigated.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The KS test code should not sit inline in tests/cdf.rs; keep it separate ... | null |
rust-random__rand__1510 | rust-random/rand | 1,510 | defect | f5185d91fae77b1c75344c22036dbaceaeaaba1e | f1713761fcb7ebfa753e3880a3424597e78d4c57 | Hypergeo fix | - [x] Added a `CHANGELOG.md` entry
# Summary
This is a fix for https://github.com/rust-random/rand/issues/1508
Thanks a lot to @WarrenWeckesser for finding it.
And it also replaces the very crude Stirling's approximation with something more precise without depending on a `ln_gamma` implementation.
# Detail... | diff --git a/rand_distr/src/hypergeometric.rs b/rand_distr/src/hypergeometric.rs
index c1f1d4ef234..71a5855a98a 100644
--- a/rand_distr/src/hypergeometric.rs
+++ b/rand_distr/src/hypergeometric.rs
@@ -131,10 +131,17 @@ fn fraction_of_products_of_factorials(numerator: (u64, u64), denominator: (u64,
result
}
+con... | 2 | 2 | 1 | [{"id": "G0", "claim": "The value-breaking change to Hypergeometric sampling must be noted in the rand_distr CHANGELOG.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment on the LOGSQRT2PI constant should say ln(sqrt(2π)) instead of log(sq... | null |
rust-random__rand__1518 | rust-random/rand | 1,518 | defect | 0c36c6ca591b6e2f49bcdda809314df830b83653 | 163f1b3d185d395b301f92c6c33363b7b549b1e7 | Zipf: let n have type F | - [x] Added a `CHANGELOG.md` entry
# Summary
Change the parameter type of Zipf's `n` to `F`
# Motivation
https://github.com/rust-random/rand/issues/1323#issuecomment-2125324653
# Details
The CDF test fails:
```
---- zipf stdout ----
KS statistic: 0.13359213049244018
Critical value: 0.00195
thread... | diff --git a/benches/benches/distr.rs b/benches/benches/distr.rs
index 63d6a1034ee..ec43e7e61cc 100644
--- a/benches/benches/distr.rs
+++ b/benches/benches/distr.rs
@@ -159,7 +159,7 @@ fn bench(c: &mut Criterion<CyclesPerByte>) {
g.finish();
let mut g = c.benchmark_group("zipf");
- distr_float!(g, "zipf"... | 6 | 1 | 1 | [{"id": "G0", "claim": "The zipf CDF test must not use `test_continuous` because the cdf is not continuous; it should use `test_discrete` (with `cdf(k as f64, n, x)`) instead.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It is questionable whether thi... | null |
rust-random__rand__1548 | rust-random/rand | 1,548 | defect | 16eb7de94a124e84c11b0cb236c8dc798fe5cd25 | 474625daaedbf620a46d9e5b0c95ca7397dca0fd | Re-org with distr::slice, distr::weighted modules | - [x] Added a `CHANGELOG.md` entry
# Summary
Re-organise / rename a few things in `rand::distr` and `rand_distr`:
- Move `Slice` -> `slice::Choose`, `EmptySlice` -> `slice::Empty`
- Rename trait `DistString` -> `SampleString`
- Rename `DistIter` -> `Iter`, `DistMap` -> `Map`
- Move `{Weight, WeightError, We... | diff --git a/.github/workflows/benches.yml b/.github/workflows/benches.yml
index 4be504fb67c..0fb9e2e03f1 100644
--- a/.github/workflows/benches.yml
+++ b/.github/workflows/benches.yml
@@ -20,7 +20,7 @@ defaults:
jobs:
clippy-fmt:
- name: Check Clippy and rustfmt
+ name: "Benches: Check Clippy and rustfmt"
... | 2 | 2 | 2 | [{"id": "G0", "claim": "The Clippy step in .github/workflows/benches.yml should go back to `--all-targets` (or `--benches`), because `--workspace` only checks lib and bin targets and misses the bench targets.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
rust-random__rand__1560 | rust-random/rand | 1,560 | defect | 96f8df65ee6b4368d91a006f9c5b4a8050abae49 | ba73001a7b4cebc05a592d68b9197b19cc9a8146 | Replaces the Poisson rejection method implementation | - [x] Added a `CHANGELOG.md` entry
# Summary
As discussed in #1515, this PR replaces the implementation of `poisson::RejectionMethod` with a new algorithm based on the [paper ](https://dl.acm.org/doi/10.1145/355993.355997).
# Motivation
The new implementation offers improved performance and maintains better... | diff --git a/rand_distr/src/poisson.rs b/rand_distr/src/poisson.rs
index 3e4421259bd..4a91cdb479f 100644
--- a/rand_distr/src/poisson.rs
+++ b/rand_distr/src/poisson.rs
@@ -9,7 +9,7 @@
//! The Poisson distribution `Poisson(λ)`.
-use crate::{Cauchy, Distribution, StandardUniform};
+use crate::{Distribution, Exp1, N... | 3 | 3 | 2 | [{"id": "G0", "claim": "The simple avg test (test_poisson_avg) fails under the new sampler (sampled mean 14.737 for lambda=15, outside its tolerance) and is less useful than the KS test, so it should be removed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.