about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-03-10 19:03:51 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2025-03-10 19:03:51 +0100
commitdcf6137b5cb16c5ed569fd0a17517cbaed48e604 (patch)
treedc5c3472f312c842ede1231b9f48e2cbd12ef771 /compiler/rustc_hir_analysis/src
parent2b285cd5f0877e30ad1d83e04f8cc46254e43391 (diff)
downloadrust-dcf6137b5cb16c5ed569fd0a17517cbaed48e604.tar.gz
rust-dcf6137b5cb16c5ed569fd0a17517cbaed48e604.zip
use next_back() instead of last() on DoubleEndedIterator
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
-rw-r--r--compiler/rustc_hir_analysis/src/hir_ty_lowering/errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/hir_ty_lowering/errors.rs b/compiler/rustc_hir_analysis/src/hir_ty_lowering/errors.rs
index ace5e34b382..fa061c80618 100644
--- a/compiler/rustc_hir_analysis/src/hir_ty_lowering/errors.rs
+++ b/compiler/rustc_hir_analysis/src/hir_ty_lowering/errors.rs
@@ -1520,7 +1520,7 @@ fn generics_args_err_extend<'a>(
                 })
                 .collect();
             if args.len() > 1
-                && let Some(span) = args.into_iter().last()
+                && let Some(span) = args.into_iter().next_back()
             {
                 err.note(
                     "generic arguments are not allowed on both an enum and its variant's path \