File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
src/librustc_typeck/check Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff 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
485475impl ops:: BitAnd for Diverges {
@@ -509,6 +499,14 @@ impl ops::BitOrAssign for Diverges {
509499}
510500
511501impl 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
You can’t perform that action at this time.
0 commit comments