mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: mrustc: Fix deserialization bug in communication with the procedural
macro compiler plugin. * gnu/packages/patches/mrustc-0.8.0-fix-variable-length-integer-receiving.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/rust.scm (mrustc)[source]: Use it. Co-authored-by: Chris Marusich <cmmarusich@gmail.com>
This commit is contained in:
parent
8b7e6d005e
commit
baf766a7ff
3 changed files with 19 additions and 1 deletions
|
@ -0,0 +1,15 @@
|
|||
https://github.com/thepowersgang/mrustc/issues/109
|
||||
From: Danny Milosavljevic <dannym@scratchpost.org>
|
||||
Date: Fri, 3 Jan 2019 13:00:00 +0100
|
||||
|
||||
--- mrustc/src/expand/proc_macro.cpp.orig 2019-02-01 14:16:54.208486062 +0100
|
||||
+++ mrustc/src/expand/proc_macro.cpp 2019-02-01 14:17:14.350925705 +0100
|
||||
@@ -977,7 +977,7 @@
|
||||
for(;;)
|
||||
{
|
||||
auto b = recv_u8();
|
||||
- v |= static_cast<uint64_t>(b) << ofs;
|
||||
+ v |= static_cast<uint64_t>(b & 0x7F) << ofs;
|
||||
if( (b & 0x80) == 0 )
|
||||
break;
|
||||
ofs += 7;
|
Loading…
Add table
Add a link
Reference in a new issue