Upgrade Rust problems to use new indexing syntax.