regroup LinkerPluginLto
blocks
This commit is contained in:
parent
5ea0f63733
commit
5bc887020b
1 changed files with 9 additions and 9 deletions
|
@ -201,6 +201,15 @@ pub enum LinkerPluginLto {
|
|||
Disabled,
|
||||
}
|
||||
|
||||
impl LinkerPluginLto {
|
||||
pub fn enabled(&self) -> bool {
|
||||
match *self {
|
||||
LinkerPluginLto::LinkerPlugin(_) | LinkerPluginLto::LinkerPluginAuto => true,
|
||||
LinkerPluginLto::Disabled => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Used with `-Z assert-incr-state`.
|
||||
#[derive(Clone, Copy, PartialEq, Hash, Debug)]
|
||||
pub enum IncrementalStateAssertion {
|
||||
|
@ -213,15 +222,6 @@ pub enum IncrementalStateAssertion {
|
|||
NotLoaded,
|
||||
}
|
||||
|
||||
impl LinkerPluginLto {
|
||||
pub fn enabled(&self) -> bool {
|
||||
match *self {
|
||||
LinkerPluginLto::LinkerPlugin(_) | LinkerPluginLto::LinkerPluginAuto => true,
|
||||
LinkerPluginLto::Disabled => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// The different settings that can be enabled via the `-Z location-detail` flag.
|
||||
#[derive(Copy, Clone, PartialEq, Hash, Debug)]
|
||||
pub struct LocationDetail {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue