Named array length in reflected drop glue
Pinned Rust emits a duplicate drop-glue symbol for a reflected, drop-bearing field whose type contains an array with a named length. The failure reproduces with only the Rust standard library. It requires no Store, Minima, Wire generation, Wasm or PocketIC. Original triage
Directory reduction
The failing native release build reconstructed the Wave 2 directory against
SDK tree 693b4c89854bbdd94b365b7a4d92c468763bab36 from unified revision
3909f1346a7d993ce1e56310e4844d0ae5dfdb84. Its value type used
(u8, [u8; NAME_BYTES], u32) with const NAME_BYTES: usize = 48. Rust's
symbol diagnostic demangled to a type containing [u8; 48] even though
the declaration used the name. Replacing just the length in the type with
the literal 48 let the full directory build complete.
Removing the Wire endpoints, the root macro and the directory operations
still reproduced the failure. A single Store memory declaration with the
tuple-valued Minima field failed, and the same declaration with the literal
length compiled. A reduced declaration keeping the field and the
NyxusData derive compiled after removing the Store memory attribute.
Compiler reproduction
The pinned compiler is nightly-2026-10-15, identified by
7df81381d027710708209f36b98d11b1c88f8d2e, with LLVM 23.1.3 on
x86_64-unknown-linux-gnu. Save this file as reflected_drop.rs in a fresh
ignored directory.
#![feature(type_info)]
use std::{any::TypeId, marker::PhantomData, mem::type_info::TraitImpl};
pub trait Marker {}
impl<T> Marker for T {}
const WIDTH: usize = 48;
struct Map<T>(PhantomData<T>);
impl<T> Drop for Map<T> {
fn drop(&mut self) {}
}
struct Data(Map<[u8; WIDTH]>);
pub static ROOT: TraitImpl<dyn Marker> =
TypeId::of::<Data>().trait_info_of::<dyn Marker>().unwrap();
pub static FIELD: TraitImpl<dyn Marker> =
TypeId::of::<Data>().field(0, 0).type_id().trait_info_of::<dyn Marker>().unwrap();
Source tools/env.sh from the repository root and point repro at that
directory. The command uses default optimization and compiles an rlib directly.
source tools/env.sh
rustc --edition=2024 --crate-type=rlib --crate-name reflected_drop \
"$repro/reflected_drop.rs" --out-dir "$repro"
Rust rejected code generation with a duplicate symbol. Its demangled
specialization is core::ptr::drop_glue<reflected_drop::Map<[u8; 48]>>.
Each control changed one part of the same source or command.
| Control | Result |
|---|---|
| Code generation with both reflected metadata statics | Duplicate drop-glue symbol |
Metadata emission with --emit=metadata |
Pass |
Code generation with Map<[u8; 48]> |
Pass |
Code generation with FIELD only |
Pass |
Code generation after removing the Drop implementation |
Pass |
The other installed nightly, nightly-2025-11-07 at
c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38, predates this reflection API
and rejects the type_info feature before code generation. The results
establish the failure on the pinned compiler.
The directory keeps its tested named fixed_record! value. This reduction
isolates the compiler failure and preserves the SDK's layout checks and
compiler pin. Directory report