Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

correct `From<SmallVec<T, N, A>> for Box<[T]>` implementation

オープン 初心者向け
#714 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@HarshRajSinghania がすでに取り組んでいます。

2026年10月4日 から。

  • #732 @HarshRajSinghania による — オープン
  • #734 @bolshoytoster による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
backend

調査の方向性

conversions.rs から始め、既存の変換を他の allocator 対応実装と比較します。中間の Vec を使わずに allocator が保持されるよう SmallVec-to-box 変換を更新し、その後、結果の Box が元の allocator を使用することを検証し、この変換に対する対象を絞ったカバレッジを追加または調整します。

索引モデルが issue の本文から書いたものです。

説明

good first issue help wanted r-feature

the current implementation on conversions.rs:

impl<T, const N: usize, A: Allocator> From<SmallVec<T, N, A>> for Box<[T]> {
    fn from(this: SmallVec<T, N, A>) -> Self {
        Vec::from(this).into_boxed_slice()
    }
}

first converts it to a Vec and changes the allocator before converting it into a box in Global

the correct implementation should preserve the allocator and not make use of an intermediary Vec:

impl<T, const N: usize, A: Allocator> From<SmallVec<T, N, A>> for Box<[T], A>
主要言語
Rust
スター
1.7k
フォーク
225
平均マージ
1日 2時間
マージ済み PR(30日)
66

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

servo/rust-smallvec のほかの issue

servo/rust-smallvec の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。