Expand description
Related to out filenames of compilation (e.g. binaries).
Re-exportsΒ§
use std::collections::BTreeMap;πuse std::collections::btree_map::Iter as BTreeMapIter;πuse std::collections::btree_map::Keys as BTreeMapKeysIter;πuse std::collections::btree_map::Values as BTreeMapValuesIter;πuse std::path::Path;πuse rustc_data_structures::stable_hash::StableOrd;πuse rustc_errors::ColorConfig;πuse rustc_errors::emitter::HumanReadableErrorType;πuse rustc_macros::Decodable;πuse rustc_macros::Encodable;πuse rustc_macros::StableHash;πuse rustc_span::Span;πuse rustc_span::Symbol;πuse rustc_structures::CrateType;πuse crate::Session;πuse crate::config::OutFileName;πuse crate::config::OutputFilenames;πuse crate::diagnostics::CrateNameEmpty;πuse crate::diagnostics::FileIsNotWriteable;πuse crate::diagnostics::InvalidCharacterInCrateName;πuse crate::diagnostics::InvalidCharacterInCrateNameSuggestion;π
MacrosΒ§
- define_
output_ πtypes
StructsΒ§
- Output
Types - Use tree-based collections to cheaply get a deterministic
Hashimplementation. Do not switchBTreeMapout for an unsorted container type! That would break dependency tracking for command-line arguments. Also only hash keys, since tracking should only depend on the output types, not the paths theyβre written to.
EnumsΒ§
- Error
Output Type - The type of diagnostics output to generate.
- Output
Type - Resolve
DocLinks
FunctionsΒ§
- check_
file_ is_ writeable - Make sure files are writeable. Mac, FreeBSD, and Windows system linkers check this already β however, the Linux linker will happily overwrite a read-only file. We should be consistent.
- filename_
for_ input - filename_
for_ metadata - invalid_
output_ for_ target - Checks if target supports crate_type as output
- is_
writeable π - out_
filename - validate_
crate_ name - Validate the given crate name.