- let mut diag = lint.build(&format!(
- "this method call resolves to `<&{} as IntoIterator>::into_iter` \
- (due to backwards compatibility), \
- but will resolve to <{} as IntoIterator>::into_iter in Rust 2021",
- target, target,
- ));
+ let mut diag = lint.build(fluent::lint::array_into_iter);
+ diag.set_arg("target", target);