aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile
diff options
context:
space:
mode:
authorDylan Gardner <dylan@gardnermedia.com>2024-08-29 04:43:42 -0700
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-24 13:06:54 +0100
commit34ef64d94488c44810b652ed523502b47fb4a46b (patch)
tree5bde7e2ecfa833438e82c6386a12f631510a3194 /gcc/testsuite/rust/compile
parentcd30e006462c0a8934ec9f4279d43d4803a20395 (diff)
downloadgcc-34ef64d94488c44810b652ed523502b47fb4a46b.zip
gcc-34ef64d94488c44810b652ed523502b47fb4a46b.tar.gz
gcc-34ef64d94488c44810b652ed523502b47fb4a46b.tar.bz2
gccrs: Infer crate name after file opening
Fixes #3129. gcc/rust/ChangeLog: * rust-session-manager.cc (Session::handle_crate_name): Remove crate name inference (Session::compile_crate): Add crate name inference and error if inferred name is empty. Remove CompileOptions::get_instance () that returned a local copy of the options. Rename crate_name_changed to crate_name_found to match semantics. (rust_crate_name_validation_test): Test inferring ".rs" name * rust-session-manager.h: Modify handle_crate_name definition to include filename.
Diffstat (limited to 'gcc/testsuite/rust/compile')
0 files changed, 0 insertions, 0 deletions