aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-resolve-path.cc
diff options
context:
space:
mode:
authorMarc Poulhiès <dkm@kataplop.net>2021-06-19 21:56:08 +0200
committerMarc Poulhiès <dkm@kataplop.net>2021-06-21 22:04:41 +0200
commitc14fad231870eebbd1102c1eb86124a53a3e8ac0 (patch)
treebad8467a78f300cc72ca6f9825ca52a0da1a6ae1 /gcc/rust/backend/rust-compile-resolve-path.cc
parent7d3157eec84ef8620f4648200f54b293e561b8c4 (diff)
downloadgcc-c14fad231870eebbd1102c1eb86124a53a3e8ac0.zip
gcc-c14fad231870eebbd1102c1eb86124a53a3e8ac0.tar.gz
gcc-c14fad231870eebbd1102c1eb86124a53a3e8ac0.tar.bz2
Fix various Wformat-diag diagnostics
Fix warnings mainly coming from ` being used instead of %< and %>. Also fixing occurences of : ../../gcc/rust/lex/rust-token.cc:126:40: warning: unquoted sequence of 2 consecutive punctuation characters ‘',’ in format [-Wformat-diag] 126 | "attempted to get string for '%s', which has no string. " | ^~ ../../gcc/rust/lex/rust-token.cc:127:39: warning: spurious trailing punctuation sequence ‘.’ in format [-Wformat-diag] 127 | "returning empty string instead.", | ^ ../../gcc/rust/lex/rust-token.cc:126:37: warning: unterminated quote character ‘'’ in format [-Wformat-diag] 126 | "attempted to get string for '%s', which has no string. " | ^ and various occurences of : ../../gcc/rust/lex/rust-lex.cc:1326:11: warning: unquoted keyword ‘char’ in format [-Wformat-diag] 1326 | "byte char %<%c%> out of range", byte_char); | ^~~~ Also using full word for arguments, integer, character, declaration, variable, floting-point instead of args, int, char, decl, var, float when applicable.
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
-rw-r--r--gcc/rust/backend/rust-compile-resolve-path.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile-resolve-path.cc b/gcc/rust/backend/rust-compile-resolve-path.cc
index cb1cfcf..af8d609 100644
--- a/gcc/rust/backend/rust-compile-resolve-path.cc
+++ b/gcc/rust/backend/rust-compile-resolve-path.cc
@@ -117,7 +117,7 @@ ResolvePathRef::visit (HIR::PathInExpression &expr)
else
{
rust_error_at (expr.get_locus (),
- "failed to lookup definition decl");
+ "failed to lookup definition declaration");
return;
}
}
@@ -125,7 +125,7 @@ ResolvePathRef::visit (HIR::PathInExpression &expr)
if (!ctx->lookup_function_decl (lookup->get_ty_ref (), &fn))
{
rust_fatal_error (expr.get_locus (),
- "forward decl was not compiled 1");
+ "forward declaration was not compiled");
return;
}
}