Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infer crate name after file opening #3146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Aug 29, 2024

  1. Infer crate name after file opening

    Fixes Rust-GCC#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.
    dylngg committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    41a1b9b View commit details
    Browse the repository at this point in the history