guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: rust: Accept more detailed gdb lines for simple enums.


From: Danny Milosavljevic
Subject: 01/01: gnu: rust: Accept more detailed gdb lines for simple enums.
Date: Tue, 30 Oct 2018 15:25:43 -0400 (EDT)

dannym pushed a commit to branch master
in repository guix.

commit 46cb1c97cb27904b5dea3d153d817130711a2e0a
Author: Danny Milosavljevic <address@hidden>
Date:   Fri Oct 26 18:22:32 2018 +0200

    gnu: rust: Accept more detailed gdb lines for simple enums.
    
    * gnu/packages/patches/rust-1.25-accept-more-detailed-gdb-lines.patch: 
Modify.
    * gnu/packages/rust.scm 
(rust-1.25)[arguments]<#:phases>[disable-nil-enum-test]:
    Delete phase.
---
 .../rust-1.25-accept-more-detailed-gdb-lines.patch       | 16 ++++++++++++++++
 gnu/packages/rust.scm                                    |  7 -------
 2 files changed, 16 insertions(+), 7 deletions(-)

diff --git 
a/gnu/packages/patches/rust-1.25-accept-more-detailed-gdb-lines.patch 
b/gnu/packages/patches/rust-1.25-accept-more-detailed-gdb-lines.patch
index 6ffc897..f40a12d 100644
--- a/gnu/packages/patches/rust-1.25-accept-more-detailed-gdb-lines.patch
+++ b/gnu/packages/patches/rust-1.25-accept-more-detailed-gdb-lines.patch
@@ -92,3 +92,19 @@ diff -ur 
orig/rustc-1.25.0-src/src/test/debuginfo/generic-tuple-style-enum.rs ru
  
  // gdb-command:print univariant
  // gdbg-check:$4 = {{__0 = -1}}
+--- orig/rustc-1.25.0-src/src/test/debuginfo/nil-enum.rs       2018-09-13 
10:24:33.783565071 +0200
++++ rustc-1.25.0-src/src/test/debuginfo/nil-enum.rs    2018-10-26 
18:19:20.404564587 +0200
+@@ -17,11 +17,11 @@
+ 
+ // gdb-command:print first
+ // gdbg-check:$1 = {<No data fields>}
+-// gdbr-check:$1 = <error reading variable>
++// gdbr-check:$1 = nil_enum::ANilEnum
+ 
+ // gdb-command:print second
+ // gdbg-check:$2 = {<No data fields>}
+-// gdbr-check:$2 = <error reading variable>
++// gdbr-check:$2 = nil_enum::AnotherNilEnum
+ 
+ #![allow(unused_variables)]
+ #![feature(omit_gdb_pretty_printer_section)]
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index cd4656e..f2794be 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -706,13 +706,6 @@ jemalloc = \"" jemalloc "/lib/libjemalloc_pic.a" "\"
                    ;; This test wants to update the crate index.
                    (("fn no_index_update") "#[ignore]\nfn no_index_update"))
                  #t))
-             ;; FIXME: Re-enable this test if it's indeed supposed to work.
-             ;; See <https://github.com/rust-lang/rust/issues/54178>.
-             (add-after 'configure 'disable-nil-enum-test
-               (lambda _
-                 (substitute* "src/test/debuginfo/nil-enum.rs"
-                   (("ignore-lldb") "ignore-gdb"))
-                 #t))
              (replace 'patch-aarch64-test
                (lambda _
                  (substitute* "src/librustc_metadata/dynamic_lib.rs"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]