https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108111
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Arthur Cohen <cohenart...@gcc.gnu.org>: https://gcc.gnu.org/g:2046aec032f743023a5e353735255d951e2e54d6 commit r14-7347-g2046aec032f743023a5e353735255d951e2e54d6 Author: Marc Poulhiès <d...@kataplop.net> Date: Sat Dec 17 16:23:05 2022 +0100 gccrs: fix some clang warnings This fixes some extra warnings reported by clang. gcc/rust/ChangeLog: PR rust/108111 * ast/rust-ast-full-decls.h (StructPatternElements): Declare as a class. * ast/rust-item.h (EnumItem): Mark several method as being overrides. * ast/rust-pattern.h (StructPattern::get_locus): Add override. * lex/rust-lex.h (BufferInputSource): Use reference_wrapper instead of bare reference. (TokenSource::get): Add method to implement the reference_wrapper interface. * typecheck/rust-tyty.h (TypeBoundPredicate): Add empty dtor. * util/rust-buffered-queue.h (peek): Source token stream is now using a reference_wrapper, use .get() Signed-off-by: Marc Poulhiès <d...@kataplop.net>