some low hanging clippy::perf fixes
NonMacroAttr.mark_used
feature(const_generics)
feature(const_param_types)