Skip to content

Commit d67528f

Browse files
committedSep 19, 2019
Merge inherent impl blocks for `Diverges
1 parent 034a8fd commit d67528f

File tree

1 file changed

+8
-10
lines changed
  • src/librustc_typeck/check

1 file changed

+8
-10
lines changed
 

‎src/librustc_typeck/check/mod.rs

+8-10
Original file line numberDiff line numberDiff line change
@@ -470,16 +470,6 @@ pub enum Diverges {
470470
WarnedAlways
471471
}
472472

473-
impl Diverges {
474-
/// Creates a `Diverges::Always` with the provided `span` and the default note message.
475-
fn always(span: Span) -> Diverges {
476-
Diverges::Always {
477-
span,
478-
custom_note: None
479-
}
480-
}
481-
}
482-
483473
// Convenience impls for combinig `Diverges`.
484474

485475
impl ops::BitAnd for Diverges {
@@ -509,6 +499,14 @@ impl ops::BitOrAssign for Diverges {
509499
}
510500

511501
impl Diverges {
502+
/// Creates a `Diverges::Always` with the provided `span` and the default note message.
503+
fn always(span: Span) -> Diverges {
504+
Diverges::Always {
505+
span,
506+
custom_note: None
507+
}
508+
}
509+
512510
fn is_always(self) -> bool {
513511
// Enum comparison ignores the
514512
// contents of fields, so we just

0 commit comments

Comments
 (0)
Please sign in to comment.