File tree 1 file changed +8
-10
lines changed
src/librustc_typeck/check
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -470,16 +470,6 @@ pub enum Diverges {
470
470
WarnedAlways
471
471
}
472
472
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
-
483
473
// Convenience impls for combinig `Diverges`.
484
474
485
475
impl ops:: BitAnd for Diverges {
@@ -509,6 +499,14 @@ impl ops::BitOrAssign for Diverges {
509
499
}
510
500
511
501
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
+
512
510
fn is_always ( self ) -> bool {
513
511
// Enum comparison ignores the
514
512
// contents of fields, so we just
You can’t perform that action at this time.
0 commit comments