update for latest rustc (static -> const)