From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id E2E543841478; Tue, 21 Jun 2022 10:33:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2E543841478 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] continue #94ac628fd20; refactoring codebase to use "rust_sorry_at" X-Act-Checkin: gcc X-Git-Author: andrewnaguib <24280372+ndrwnaguib@users.noreply.github.com> X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 94ac628fd2054a652f5ec1e96ab876ecb776a9ea X-Git-Newrev: 747700e045c3bf3f3d84b04f6799886f067704ae Message-Id: <20220621103349.E2E543841478@sourceware.org> Date: Tue, 21 Jun 2022 10:33:49 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2022 10:33:50 -0000 https://gcc.gnu.org/g:747700e045c3bf3f3d84b04f6799886f067704ae commit 747700e045c3bf3f3d84b04f6799886f067704ae Author: andrewnaguib <24280372+ndrwnaguib@users.noreply.github.com> Date: Fri Jun 17 06:53:18 2022 -0700 continue #94ac628fd20; refactoring codebase to use "rust_sorry_at" Diff: --- gcc/rust/backend/rust-compile-expr.cc | 4 ++-- gcc/rust/backend/rust-compile-pattern.cc | 3 +-- gcc/rust/privacy/rust-privacy-reporter.cc | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc index b153451b470..d12dc78cf41 100644 --- a/gcc/rust/backend/rust-compile-expr.cc +++ b/gcc/rust/backend/rust-compile-expr.cc @@ -239,8 +239,8 @@ CompileExpr::visit (HIR::MatchExpr &expr) { // FIXME: CASE_LABEL_EXPR does not support floating point types. // Find another way to compile these. - sorry_at (expr.get_locus ().gcc_location (), - "match on floating-point types is not yet supported"); + rust_sorry_at (expr.get_locus (), + "match on floating-point types is not yet supported"); } TyTy::BaseType *expr_tyty = nullptr; diff --git a/gcc/rust/backend/rust-compile-pattern.cc b/gcc/rust/backend/rust-compile-pattern.cc index 2f3449a1eb7..7e7fadd3fab 100644 --- a/gcc/rust/backend/rust-compile-pattern.cc +++ b/gcc/rust/backend/rust-compile-pattern.cc @@ -96,8 +96,7 @@ CompilePatternCaseLabelExpr::visit (HIR::LiteralPattern &pattern) // floating point types. if (pattern.get_literal ().get_lit_type () == HIR::Literal::LitType::FLOAT) { - sorry_at (pattern.get_locus ().gcc_location (), - "floating-point literal in pattern"); + rust_sorry_at (pattern.get_locus (), "floating-point literal in pattern"); } tree lit = CompileExpr::Compile (litexpr, ctx); diff --git a/gcc/rust/privacy/rust-privacy-reporter.cc b/gcc/rust/privacy/rust-privacy-reporter.cc index 4b010a05b02..f2752b6b965 100644 --- a/gcc/rust/privacy/rust-privacy-reporter.cc +++ b/gcc/rust/privacy/rust-privacy-reporter.cc @@ -164,8 +164,7 @@ PrivacyReporter::check_base_type_privacy (Analysis::NodeMapping &node_mappings, return recursive_check ( static_cast (ty)->get ()); case TyTy::CLOSURE: - sorry_at (locus.gcc_location (), - "privacy pass for closures is not handled yet"); + rust_sorry_at (locus, "privacy pass for closures is not handled yet"); break; // If we're dealing with a generic param, there's nothing we should be