aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-24 13:50:44 +0000
committerGitHub <noreply@github.com>2021-06-24 13:50:44 +0000
commitc87f2c72dcfa67f1a78fafacaf49043f11c7df6a (patch)
tree02daa3d23d04cb9c950b15d5a7a94f171e1241db /gcc/rust/resolve/rust-ast-resolve.cc
parent23e748d7a6855ce132299cfef9692ee9c681de59 (diff)
parent92a434a33904608f5659cf7b5d4df3d2a99bd5bd (diff)
downloadgcc-c87f2c72dcfa67f1a78fafacaf49043f11c7df6a.zip
gcc-c87f2c72dcfa67f1a78fafacaf49043f11c7df6a.tar.gz
gcc-c87f2c72dcfa67f1a78fafacaf49043f11c7df6a.tar.bz2
Merge #523
523: Add support for nested functions r=philberty a=philberty This is a missed pieces of functionality for statements in rust. Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve.cc')
-rw-r--r--gcc/rust/resolve/rust-ast-resolve.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve.cc b/gcc/rust/resolve/rust-ast-resolve.cc
index e03a745..fae3f77 100644
--- a/gcc/rust/resolve/rust-ast-resolve.cc
+++ b/gcc/rust/resolve/rust-ast-resolve.cc
@@ -499,9 +499,8 @@ ResolvePath::resolve_path (AST::PathInExpression *expr)
else
{
rust_error_at (expr->get_locus (),
- "unknown root segment in path %s lookup %s",
- expr->as_string ().c_str (),
- root_ident_seg.as_string ().c_str ());
+ "Cannot find path %<%s%> in this scope",
+ expr->as_string ().c_str ());
return;
}