use rustc_metadata::locator;
use rustc_metadata::cstore::CStore;
use rustc_metadata::dynamic_lib::DynamicLibrary;
use rustc_metadata::locator;
use rustc_metadata::cstore::CStore;
use rustc_metadata::dynamic_lib::DynamicLibrary;
if let Some(err) = input_err {
// Immediately stop compilation if there was an issue reading
// the input (for example if the input stream is not UTF-8).
if let Some(err) = input_err {
// Immediately stop compilation if there was an issue reading
// the input (for example if the input stream is not UTF-8).
codegen_backend: &dyn CodegenBackend,
matches: &getopts::Matches,
sess: &Session,
codegen_backend: &dyn CodegenBackend,
matches: &getopts::Matches,
sess: &Session,
cfgs.push(if let Some(value) = value {
format!("{}=\"{}\"", name, value)
} else {
cfgs.push(if let Some(value) = value {
format!("{}=\"{}\"", name, value)
} else {
for option in groups.iter().filter(|x| include_unstable_options || x.is_stable()) {
(option.apply)(&mut options);
}
for option in groups.iter().filter(|x| include_unstable_options || x.is_stable()) {
(option.apply)(&mut options);
}
let nightly_help = if nightly_options::is_nightly_build() {
"\n -Z help Print internal options for debugging rustc"
} else {
let nightly_help = if nightly_options::is_nightly_build() {
"\n -Z help Print internal options for debugging rustc"
} else {
/// debugging, since some ICEs only happens with non-default compiler flags
/// (and the users don't always report them).
fn extra_compiler_flags() -> Option<(Vec<String>, bool)> {
/// debugging, since some ICEs only happens with non-default compiler flags
/// (and the users don't always report them).
fn extra_compiler_flags() -> Option<(Vec<String>, bool)> {
// Avoid printing help because of empty args. This can suggest the compiler
// itself is not the program root (consider RLS).
// Avoid printing help because of empty args. This can suggest the compiler
// itself is not the program root (consider RLS).