diff options
author | Dylan Gardner <dylan@gardnermedia.com> | 2024-08-29 04:43:42 -0700 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2025-01-28 08:07:02 +0000 |
commit | a3e147802e38ec7fc027d4b4116e110ac0a0d7b8 (patch) | |
tree | cedb48e6d86c1296caeb64c5b5aad64d40899bc4 /gcc/alloc-pool.h | |
parent | 98d89d58d7c6b25fc6e29735c3b6d051fd45ae8a (diff) | |
download | gcc-a3e147802e38ec7fc027d4b4116e110ac0a0d7b8.zip gcc-a3e147802e38ec7fc027d4b4116e110ac0a0d7b8.tar.gz gcc-a3e147802e38ec7fc027d4b4116e110ac0a0d7b8.tar.bz2 |
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/alloc-pool.h')
0 files changed, 0 insertions, 0 deletions