Rename bypass_backends into bypass_ignore_backends
This commit is contained in:
@@ -711,7 +711,7 @@ pub struct Config {
|
||||
/// Name/path of the backend to use instead of `default_codegen_backend`.
|
||||
pub override_codegen_backend: Option<String>,
|
||||
/// Whether to ignore `//@ ignore-backends`.
|
||||
pub bypass_backends: bool,
|
||||
pub bypass_ignore_backends: bool,
|
||||
}
|
||||
|
||||
impl Config {
|
||||
|
||||
@@ -1493,7 +1493,7 @@ fn ignore_backends(config: &Config, line: &DirectiveLine<'_>) -> IgnoreDecision
|
||||
}
|
||||
}
|
||||
}) {
|
||||
if !config.bypass_backends && config.default_codegen_backend == backend {
|
||||
if !config.bypass_ignore_backends && config.default_codegen_backend == backend {
|
||||
return IgnoreDecision::Ignore {
|
||||
reason: format!("{} backend is marked as ignore", backend.as_str()),
|
||||
};
|
||||
|
||||
@@ -485,7 +485,7 @@ fn parse_config(args: Vec<String>) -> Config {
|
||||
|
||||
default_codegen_backend,
|
||||
override_codegen_backend,
|
||||
bypass_backends: matches.opt_present("bypass-ignore-backends"),
|
||||
bypass_ignore_backends: matches.opt_present("bypass-ignore-backends"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -138,6 +138,6 @@ fn incomplete_config_for_rustdoc_gui_test() -> Config {
|
||||
minicore_path: Default::default(),
|
||||
default_codegen_backend: CodegenBackend::Llvm,
|
||||
override_codegen_backend: None,
|
||||
bypass_backends: Default::default(),
|
||||
bypass_ignore_backends: Default::default(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user