D9444: rust: fix non-utf8 char in requirements.rs

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sat Nov 28 14:00:22 UTC 2020


marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Apparently Phabricator detect `rust/hg-core/src/requirements.rs` file as non
  utf8 ‽, and mark it as binary.  During application it ended up being non-utf8
  and this made Rust (and as a result heptapod) very angry::
  
    error: couldn't read hg-core/src/requirements.rs: stream did not contain valid UTF-8
      --> hg-core/src/lib.rs:11:9
       |
    11 | pub mod requirements;
       |         ^^^^^^^^^^^^
    
    error: aborting due to previous error
    
    error: could not compile `hg-core`.
  
  The after "fixing", the file content has no character matching the following
  regexp:
  
    [^0-9-a-zA-Z /(|).,{}!\[\]:"&=>?_*-;<`'#]
  
  So we should be fine, unless Phabricator does something funny again.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9444

AFFECTED FILES
  rust/hg-core/src/requirements.rs

CHANGE DETAILS

diff --git a/rust/hg-core/src/requirements.rs b/rust/hg-core/src/requirements.rs
index 9fba8c53c75e50be78ea47aff3c8500d405feb33..9e69c6c7361e1dff8db12c6dff0b2d5e97478497
GIT binary patch
literal 2283
zc$|Gz+iu%95PjEIOuc|3EgYrWr>@c at STrpVEOrw#&F(`Q*tA5)+)$*-iw&dpzwaR>
z`I5BNgDp}s!<jSZ487%KT~!o9pC-OvG|bJ5;s(E`N%G5m#f at 0-^pa2gWA>0Veo9>V
znm+NbUKn0;<?IJzw4rYa;W;^>&)1jN1qoG3UvXj-B3{IgS2`8CD58Bf>g?e#=QJ^G
zKs%wCker02QXAtN$E#@gzF!^s8Qy3soHi@!BjCsxXU-c=Zq6JnIaOL6IkLWKv~kh@
zPIW6 at b(x2!^DF4q8KEBAqc)>tlO!{RLX73<bmh1$Xn616K4f%!4k)ab?%hAUeAl|2
zk0{N~_W(hjH!C;S3N=+BXI8-s*`dl<Ezq|#vCibSk-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