Expand description
Related to out filenames of compilation (e.g. binaries).
Re-exportsยง
use std::path::Path;๐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::config::OutputType;๐use crate::diagnostics::CrateNameEmpty;๐use crate::diagnostics::FileIsNotWriteable;๐use crate::diagnostics::InvalidCharacterInCrateName;๐use crate::diagnostics::InvalidCharacterInCrateNameSuggestion;๐
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.