dropbox / dropbox/rust-alloc-no-stdlib
Macros are not self-contained
- 主要言語
- Rust
- スター
- 180
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Exported Rust macros (per best "hygiene" practices) should not require any external paths to be brought into local scope. So, if a crate exports a macro, that macro should only use fully-qualified items from the same crate, or more specifically - use the `$crate` metavariable per [docs](https://veykril.github.io/tlborm/decl-macros/minutiae/hygiene.html#crate).
At least `declare_stack_allocator_struct!` macro uses non-fully-qualified identifiers like `declare_stack_allocator_struct!` inside, requiring crate users to `use` it, making the code unclean and possibly error prone.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
エクスポートされた declare_stack_allocator_struct! マクロを見つけ、その内部参照と既存のマクロテストまたは例を調べてください。参照が完全修飾された同一 crate 内のパスまたは $crate を使用していることを確認し、それらの識別子をローカルスコープにインポートしなくても downstream からの呼び出しが機能することを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100