Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling #2632

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gcc/rust/ast/rust-expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -4594,14 +4594,14 @@ struct InlineAsmTemplatePiece

struct TupleClobber
{
// as gccrs still doesen't contain a symbol class I have put them as strings
// as gccrs still doesn't contain a symbol class I have put them as strings
std::string symbol;
location_t loc;
};

struct TupleTemplateStr
{
// as gccrs still doesen't contain a symbol class I have put them as strings
// as gccrs still doesn't contain a symbol class I have put them as strings
std::string symbol;
std::string optional_symbol;
location_t loc;
Expand Down
4 changes: 2 additions & 2 deletions gcc/rust/backend/rust-compile-expr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ CompileExpr::visit (HIR::StructExprStructFields &struct_expr)
else
{
// this assumes all fields are in order from type resolution and if a
// base struct was specified those fields are filed via accesors
// base struct was specified those fields are filed via accessors
for (size_t i = 0; i < struct_expr.get_fields ().size (); i++)
{
// assignments are coercion sites so lets convert the rvalue if
Expand Down Expand Up @@ -1552,7 +1552,7 @@ CompileExpr::visit (HIR::CallExpr &expr)
}

// this assumes all fields are in order from type resolution and if a
// base struct was specified those fields are filed via accesors
// base struct was specified those fields are filed via accessors
std::vector<tree> arguments;
for (size_t i = 0; i < expr.get_arguments ().size (); i++)
{
Expand Down
2 changes: 1 addition & 1 deletion gcc/rust/backend/rust-compile-implitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace Rust {
namespace Compile {

// this is a proxy for HIR::ImplItem's back to use the normel HIR::Item path
// this is a proxy for HIR::ImplItem's back to use the normal HIR::Item path
class CompileInherentImplItem : public CompileItem
{
public:
Expand Down
2 changes: 1 addition & 1 deletion gcc/rust/backend/rust-constexpr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ struct GTY ((for_user)) rust_constexpr_call
/* Result of the call.
NULL means the call is being evaluated.
error_mark_node means that the evaluation was erroneous;
otherwise, the actuall value of the call. */
otherwise, the actual value of the call. */
tree result;
/* The hash of this call; we remember it here to avoid having to
recalculate it when expanding the hash table. */
Expand Down