diff options
author | Marc Poulhiès <dkm@kataplop.net> | 2023-09-14 23:24:26 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:04:36 +0100 |
commit | 5a5c9f52212ce914b4e6850c173ec99043be5d62 (patch) | |
tree | e7b6ca8db4828a93a87e5c6f1aac6b3cc70fda6e /gcc/rust/backend | |
parent | b786f697dd3512db393c6517b1e7d1afe097aae1 (diff) | |
download | gcc-5a5c9f52212ce914b4e6850c173ec99043be5d62.zip gcc-5a5c9f52212ce914b4e6850c173ec99043be5d62.tar.gz gcc-5a5c9f52212ce914b4e6850c173ec99043be5d62.tar.bz2 |
gccrs: trivial typo fix.
Fix subsititions -> substitutions
gcc/rust/ChangeLog:
* backend/rust-compile-base.cc (HIRCompileBase::compile_function):
Fix typo in substitutions.
(HIRCompileBase::resolve_method_address): Likewise.
* backend/rust-compile-extern.h (CompileExternItem::visit):
Likewise.
* backend/rust-compile-implitem.cc (CompileTraitItem::visit):
Likewise.
* backend/rust-compile-intrinsic.cc (maybe_override_ctx):
Likewise.
* backend/rust-compile-item.cc (CompileItem::visit): Likewise.
* backend/rust-compile-resolve-path.cc
(HIRCompileBase::query_compile): Likewise.
* typecheck/rust-coercion.cc (TypeCoercionRules::do_coercion):
Likewise.
* typecheck/rust-hir-type-check-item.cc
(TypeCheckItem::ResolveImplBlockSelfWithInference): Likewise.
* typecheck/rust-hir-type-check-path.cc (TypeCheckExpr::visit):
Likewise.
* typecheck/rust-hir-type-check-type.cc (TypeCheckType::visit):
Likewise.
* typecheck/rust-tyty.cc (BaseType::has_subsititions_defined):
Renamed into ...
(BaseType::has_substitutions_defined): ... this.
(ADTType::is_equal): Fix typo in substitutions.
(handle_substitions): Likewise.
(FnType::is_equal): Likewise.
(FnType::handle_substitions): Likewise.
* typecheck/rust-tyty.h (has_subsititions_defined): Renamed into
...
(has_substitutions_defined): ... this.
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Diffstat (limited to 'gcc/rust/backend')
-rw-r--r-- | gcc/rust/backend/rust-compile-base.cc | 4 | ||||
-rw-r--r-- | gcc/rust/backend/rust-compile-extern.h | 4 | ||||
-rw-r--r-- | gcc/rust/backend/rust-compile-implitem.cc | 2 | ||||
-rw-r--r-- | gcc/rust/backend/rust-compile-intrinsic.cc | 2 | ||||
-rw-r--r-- | gcc/rust/backend/rust-compile-item.cc | 4 | ||||
-rw-r--r-- | gcc/rust/backend/rust-compile-resolve-path.cc | 8 |
6 files changed, 12 insertions, 12 deletions
diff --git a/gcc/rust/backend/rust-compile-base.cc b/gcc/rust/backend/rust-compile-base.cc index 02d4557..bfa09c8 100644 --- a/gcc/rust/backend/rust-compile-base.cc +++ b/gcc/rust/backend/rust-compile-base.cc @@ -564,7 +564,7 @@ HIRCompileBase::compile_function ( tree fndecl = Backend::function (compiled_fn_type, ir_symbol_name, "" /* asm_name */, flags, locus); - setup_fndecl (fndecl, is_main_fn, fntype->has_subsititions_defined (), + setup_fndecl (fndecl, is_main_fn, fntype->has_substitutions_defined (), visibility, qualifiers, outer_attrs); setup_abi_options (fndecl, qualifiers.get_abi ()); @@ -792,7 +792,7 @@ HIRCompileBase::resolve_method_address (TyTy::FnType *fntype, HIR::Item *resolved_item = ctx->get_mappings ()->lookup_defid (id); if (resolved_item != nullptr) { - if (!fntype->has_subsititions_defined ()) + if (!fntype->has_substitutions_defined ()) return CompileItem::compile (resolved_item, ctx); return CompileItem::compile (resolved_item, ctx, fntype); diff --git a/gcc/rust/backend/rust-compile-extern.h b/gcc/rust/backend/rust-compile-extern.h index bf17bee..127e9b0 100644 --- a/gcc/rust/backend/rust-compile-extern.h +++ b/gcc/rust/backend/rust-compile-extern.h @@ -91,7 +91,7 @@ public: rust_assert (fntype_tyty->get_kind () == TyTy::TypeKind::FNDEF); TyTy::FnType *fntype = static_cast<TyTy::FnType *> (fntype_tyty); - if (fntype->has_subsititions_defined ()) + if (fntype->has_substitutions_defined ()) { // we cant do anything for this only when it is used and a concrete type // is given @@ -114,7 +114,7 @@ public: return; } - if (fntype->has_subsititions_defined ()) + if (fntype->has_substitutions_defined ()) { // override the Hir Lookups for the substituions in this context fntype->override_context (); diff --git a/gcc/rust/backend/rust-compile-implitem.cc b/gcc/rust/backend/rust-compile-implitem.cc index 190812d..824af3f 100644 --- a/gcc/rust/backend/rust-compile-implitem.cc +++ b/gcc/rust/backend/rust-compile-implitem.cc @@ -71,7 +71,7 @@ CompileTraitItem::visit (HIR::TraitItemFunc &func) } } - if (fntype->has_subsititions_defined ()) + if (fntype->has_substitutions_defined ()) { // override the Hir Lookups for the substituions in this context fntype->override_context (); diff --git a/gcc/rust/backend/rust-compile-intrinsic.cc b/gcc/rust/backend/rust-compile-intrinsic.cc index 2433b98..feaf74d 100644 --- a/gcc/rust/backend/rust-compile-intrinsic.cc +++ b/gcc/rust/backend/rust-compile-intrinsic.cc @@ -290,7 +290,7 @@ check_for_cached_intrinsic (Context *ctx, TyTy::FnType *fntype, tree *lookup) static void maybe_override_ctx (TyTy::FnType *fntype) { - if (fntype->has_subsititions_defined ()) + if (fntype->has_substitutions_defined ()) fntype->override_context (); } diff --git a/gcc/rust/backend/rust-compile-item.cc b/gcc/rust/backend/rust-compile-item.cc index 90a8fa7..234ad2a 100644 --- a/gcc/rust/backend/rust-compile-item.cc +++ b/gcc/rust/backend/rust-compile-item.cc @@ -118,7 +118,7 @@ CompileItem::visit (HIR::Function &function) rust_assert (fntype_tyty->get_kind () == TyTy::TypeKind::FNDEF); TyTy::FnType *fntype = static_cast<TyTy::FnType *> (fntype_tyty); - if (fntype->has_subsititions_defined ()) + if (fntype->has_substitutions_defined ()) { // we cant do anything for this only when it is used and a concrete type // is given @@ -166,7 +166,7 @@ CompileItem::visit (HIR::Function &function) return; } - if (fntype->has_subsititions_defined ()) + if (fntype->has_substitutions_defined ()) { // override the Hir Lookups for the substituions in this context fntype->override_context (); diff --git a/gcc/rust/backend/rust-compile-resolve-path.cc b/gcc/rust/backend/rust-compile-resolve-path.cc index 729a099..366de59 100644 --- a/gcc/rust/backend/rust-compile-resolve-path.cc +++ b/gcc/rust/backend/rust-compile-resolve-path.cc @@ -184,7 +184,7 @@ HIRCompileBase::query_compile (HirId ref, TyTy::BaseType *lookup, bool is_fn = lookup->get_kind () == TyTy::TypeKind::FNDEF; if (is_hir_item) { - if (!lookup->has_subsititions_defined ()) + if (!lookup->has_substitutions_defined ()) return CompileItem::compile (resolved_item, ctx, nullptr, true, expr_locus); else @@ -193,7 +193,7 @@ HIRCompileBase::query_compile (HirId ref, TyTy::BaseType *lookup, } else if (is_hir_extern_item) { - if (!lookup->has_subsititions_defined ()) + if (!lookup->has_substitutions_defined ()) return CompileExternItem::compile (resolved_extern_item, ctx, nullptr, true, expr_locus); else @@ -222,7 +222,7 @@ HIRCompileBase::query_compile (HirId ref, TyTy::BaseType *lookup, bool is_impl_item = resolved_item != nullptr; if (is_impl_item) { - if (!lookup->has_subsititions_defined ()) + if (!lookup->has_substitutions_defined ()) return CompileInherentImplItem::Compile (resolved_item, ctx, nullptr, true, expr_locus); else @@ -285,7 +285,7 @@ HIRCompileBase::query_compile (HirId ref, TyTy::BaseType *lookup, impl->get_type ()->get_mappings ().get_hirid (), &self); rust_assert (ok); - if (!lookup->has_subsititions_defined ()) + if (!lookup->has_substitutions_defined ()) return CompileInherentImplItem::Compile (impl_item, ctx, nullptr, true, expr_locus); |