Skip to content

Commit 5bc8870

Browse files
committed
regroup LinkerPluginLto blocks
1 parent 5ea0f63 commit 5bc8870

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

compiler/rustc_session/src/config.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,15 @@ pub enum LinkerPluginLto {
201201
Disabled,
202202
}
203203

204+
impl LinkerPluginLto {
205+
pub fn enabled(&self) -> bool {
206+
match *self {
207+
LinkerPluginLto::LinkerPlugin(_) | LinkerPluginLto::LinkerPluginAuto => true,
208+
LinkerPluginLto::Disabled => false,
209+
}
210+
}
211+
}
212+
204213
/// Used with `-Z assert-incr-state`.
205214
#[derive(Clone, Copy, PartialEq, Hash, Debug)]
206215
pub enum IncrementalStateAssertion {
@@ -213,15 +222,6 @@ pub enum IncrementalStateAssertion {
213222
NotLoaded,
214223
}
215224

216-
impl LinkerPluginLto {
217-
pub fn enabled(&self) -> bool {
218-
match *self {
219-
LinkerPluginLto::LinkerPlugin(_) | LinkerPluginLto::LinkerPluginAuto => true,
220-
LinkerPluginLto::Disabled => false,
221-
}
222-
}
223-
}
224-
225225
/// The different settings that can be enabled via the `-Z location-detail` flag.
226226
#[derive(Copy, Clone, PartialEq, Hash, Debug)]
227227
pub struct LocationDetail {

0 commit comments

Comments
 (0)