diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-12-04 15:27:26 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-12-04 15:27:26 +0000 |
commit | 9da783d1b71bb5e8add0cf74527786d0e4255803 (patch) | |
tree | 3875dd8ee1757432a8aac855118a12ce748e2f21 /gcc/rust/backend/rust-tree.cc | |
parent | 0bf68cf5e6199ce7deb3d0744ced09dd4db1b1c9 (diff) | |
download | gcc-9da783d1b71bb5e8add0cf74527786d0e4255803.zip gcc-9da783d1b71bb5e8add0cf74527786d0e4255803.tar.gz gcc-9da783d1b71bb5e8add0cf74527786d0e4255803.tar.bz2 |
Revert "rust: Remove unused variables and fix dangling references"
This reverts commit 9657c328d0cdda49b7985c3ee727781a387e128b.
Diffstat (limited to 'gcc/rust/backend/rust-tree.cc')
-rw-r--r-- | gcc/rust/backend/rust-tree.cc | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/gcc/rust/backend/rust-tree.cc b/gcc/rust/backend/rust-tree.cc index fb6ff0f..0c393d9 100644 --- a/gcc/rust/backend/rust-tree.cc +++ b/gcc/rust/backend/rust-tree.cc @@ -2059,7 +2059,11 @@ rs_tree_equal (tree t1, tree t2) /* TRUE iff TYPE is publicly & uniquely derived from PARENT. */ -bool publicly_uniquely_derived_p (tree, tree) { return false; } +bool +publicly_uniquely_derived_p (tree parent, tree type) +{ + return false; +} // forked from gcc/cp/typeck.cc comp_except_types @@ -3339,7 +3343,11 @@ release_tree_vector (vec<tree, va_gc> *vec) /* As above, but also check value-dependence of the expression as a whole. */ -bool instantiation_dependent_expression_p (tree) { return false; } +bool +instantiation_dependent_expression_p (tree expression) +{ + return false; +} // forked from gcc/cp/cvt.cc cp_get_callee @@ -3389,7 +3397,11 @@ scalarish_type_p (const_tree t) constructors are deleted. This function implements the ABI notion of non-trivial copy, which has diverged from the one in the standard. */ -bool type_has_nontrivial_copy_init (const_tree) { return false; } +bool +type_has_nontrivial_copy_init (const_tree type) +{ + return false; +} // forked from gcc/cp/tree.cc build_local_temp @@ -3412,7 +3424,11 @@ build_local_temp (tree type) /* Returns true iff DECL is a capture proxy for a normal capture (i.e. without explicit initializer). */ -bool is_normal_capture_proxy (tree) { return false; } +bool +is_normal_capture_proxy (tree decl) +{ + return false; +} // forked from gcc/cp/c-common.cc reject_gcc_builtin @@ -3677,7 +3693,7 @@ char_type_p (tree type) lvalue for the function template specialization. */ tree -resolve_nondeduced_context (tree orig_expr, tsubst_flags_t) +resolve_nondeduced_context (tree orig_expr, tsubst_flags_t complain) { return orig_expr; } @@ -3956,13 +3972,21 @@ decl_constant_var_p (tree decl) /* Returns true iff DECL is a variable or function declared with an auto type that has not yet been deduced to a real type. */ -bool undeduced_auto_decl (tree) { return false; } +bool +undeduced_auto_decl (tree decl) +{ + return false; +} // forked from gcc/cp/decl.cc require_deduced_type /* Complain if DECL has an undeduced return type. */ -bool require_deduced_type (tree, tsubst_flags_t) { return true; } +bool +require_deduced_type (tree decl, tsubst_flags_t complain) +{ + return true; +} /* Return the location of a tree passed to %+ formats. */ |