aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-session-manager.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-02-06 20:44:45 +0000
committerGitHub <noreply@github.com>2022-02-06 20:44:45 +0000
commit05cfe8f9fdc363ff7db4cba2decaf22e44057c3f (patch)
tree2cdb59713c92c6fa31c9e2e76f9d02324d970550 /gcc/rust/rust-session-manager.cc
parent2423c89dee0c1acc5a63e407250e25d2c515c7d5 (diff)
parent42f49fa7da2f0ec8f7625e191d4bf7a7c54dd3af (diff)
downloadgcc-05cfe8f9fdc363ff7db4cba2decaf22e44057c3f.zip
gcc-05cfe8f9fdc363ff7db4cba2decaf22e44057c3f.tar.gz
gcc-05cfe8f9fdc363ff7db4cba2decaf22e44057c3f.tar.bz2
Merge #908
908: Fix '-Wformat-diag' issue in 'TypeCheckPattern::visit (HIR::TupleStructPattern &pattern)' r=philberty a=tschwinge It's alread now diagnosed, non-fatal warning: [...]/source-gcc/gcc/rust/typecheck/rust-hir-type-check-pattern.cc: In member function ‘virtual void Rust::Resolver::TypeCheckPattern::visit(Rust::HIR::TupleStructPattern&)’: [...]/source-gcc/gcc/rust/typecheck/rust-hir-type-check-pattern.cc:61:69: warning: unquoted operator ‘::’ in format [-Wformat-diag] 61 | "expected tuple struct or tuple variant, found %s variant %s::%s", | ^~ A later merge from GCC upstream will bring in commit 34ba4275dcf5162efb9b634e4665734766faf4e3 "Enable -Werror=format-diag during bootstrap", which then causes: [...]/source-gcc/gcc/rust/typecheck/rust-hir-type-check-pattern.cc: In member function ‘virtual void Rust::Resolver::TypeCheckPattern::visit(Rust::HIR::TupleStructPattern&)’: [...]/source-gcc/gcc/rust/typecheck/rust-hir-type-check-pattern.cc:61:69: error: unquoted operator ‘::’ in format [-Werror=format-diag] 61 | "expected tuple struct or tuple variant, found %s variant %s::%s", | ^~ cc1plus: all warnings being treated as errors make[3]: *** [rust/rust-hir-type-check-pattern.o] Error 1 Co-authored-by: Thomas Schwinge <thomas@codesourcery.com>
Diffstat (limited to 'gcc/rust/rust-session-manager.cc')
0 files changed, 0 insertions, 0 deletions