A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/interface/struct.Config.html below:

Config in rustc_interface::interface - Rust

pub struct Config {Show 19 fields
    pub opts: Options,
    pub crate_cfg: Vec<String>,
    pub crate_check_cfg: Vec<String>,
    pub input: Input,
    pub output_dir: Option<PathBuf>,
    pub output_file: Option<OutFileName>,
    pub ice_file: Option<PathBuf>,
    pub file_loader: Option<Box<dyn FileLoader + Send + Sync>>,
    pub locale_resources: Vec<&'static str>,
    pub lint_caps: FxHashMap<LintId, Level>,
    pub psess_created: Option<Box<dyn FnOnce(&mut ParseSess) + Send>>,
    pub hash_untracked_state: Option<Box<dyn FnOnce(&Session, &mut StableHasher) + Send>>,
    pub register_lints: Option<Box<dyn Fn(&Session, &mut LintStore) + Send + Sync>>,
    pub override_queries: Option<fn(&Session, &mut Providers)>,
    pub extra_symbols: Vec<&'static str>,
    pub make_codegen_backend: Option<Box<dyn FnOnce(&Options) -> Box<dyn CodegenBackend> + Send>>,
    pub registry: Registry,
    pub using_internal_features: &'static AtomicBool,
    pub expanded_args: Vec<String>,
}
Expand description

The compiler configuration

Command line options

Unparsed cfg! configuration in addition to the default ones.

Load files from sources other than the file system.

Has no uses within this repository, but may be used in the future by bjorn3 for “hooking rust-analyzer’s VFS into rustc at some point for running rustc without having to save”. (See #102759.)

The list of fluent resources, used for lints declared with Diagnostic and LintDiagnostic.

This is a callback from the driver that is called when ParseSess is created.

This is a callback to hash otherwise untracked state used by the caller, if the hash changes between runs the incremental cache will be cleared.

e.g. used by Clippy to hash its config file

This is a callback from the driver that is called when we’re registering lints; it is called during lint loading when we have the LintStore in a non-shared state.

Note that if you find a Some here you probably want to call that function in the new function being registered.

This is a callback from the driver that is called just after we have populated the list of queries.

An extra set of symbols to add to the symbol interner, the symbol indices will start at PREDEFINED_SYMBOLS_COUNT

This is a callback from the driver that is called to create a codegen backend.

Has no uses within this repository, but is used by bjorn3 for “the hotswapping branch of cg_clif” for “setting the codegen backend from a custom driver where the custom codegen backend has arbitrary data.” (See #102759.)

Registry of diagnostics codes.

The inner atomic value is set to true when a feature marked as internal is enabled. Makes it so that “please report a bug” is hidden, as ICEs with internal features are wontfix, and they are usually the cause of the ICEs.

§expanded_args: Vec<String>

All commandline args used to invoke the compiler, with @file args fully expanded. This will only be used within debug info, e.g. in the pdb file on windows This is mainly useful for other tools that reads that debuginfo to figure out how to call the compiler with the same arguments.

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 2672 bytes


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4