public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] session-manager: Add fatal_error when flag is not present
@ 2022-12-08 7:59 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-12-08 7:59 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ddd1b481a0b655716b06962053712fad7f8efa7b
commit ddd1b481a0b655716b06962053712fad7f8efa7b
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date: Mon Nov 28 18:22:34 2022 +0100
session-manager: Add fatal_error when flag is not present
Diff:
---
gcc/rust/rust-session-manager.cc | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index 79bf5527965..d9e4ce06fe7 100644
--- a/gcc/rust/rust-session-manager.cc
+++ b/gcc/rust/rust-session-manager.cc
@@ -429,7 +429,23 @@ Session::compile_crate (const char *filename)
{
#ifdef RUST_RELEASE
if (!flag_rust_experimental)
- gcc_unreachable ();
+ rust_fatal_error (
+ Location (), "%s",
+ "gccrs is not yet able to compile Rust code "
+ "properly. Most of the errors produced will be gccrs' fault and not the "
+ "crate you are trying to compile. Because of this, please reports issues "
+ "to us directly instead of opening issues on said crate's "
+ "repository.\n\nOur github repository: "
+ "https://github.com/rust-gcc/gccrs\nOur bugzilla tracker: "
+ "https://gcc.gnu.org/bugzilla/"
+ "buglist.cgi?bug_status=__open__&component=rust&product=gcc\n\n"
+ "If you understand this, and understand that the binaries produced might "
+ "not behave accordingly, you may attempt to use gccrs in an experimental "
+ "manner by passing the following flag:\n\n"
+ "`-frust-incomplete-and-experimental-compiler-do-not-use`\n\nFor "
+ "cargo-gccrs, this means passing\n\n"
+ "GCCRS_EXTRA_FLAGS=\"-frust-incomplete-and-experimental-compiler-do-not-"
+ "use\"\n\nas an environment variable.");
#endif
RAIIFile file_wrap (filename);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-08 7:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-08 7:59 [gcc/devel/rust/master] session-manager: Add fatal_error when flag is not present Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).