From a0943d0701d67d5260fa33dacf8afe9616e327c4 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 18 Mar 2016 15:30:15 -0600 Subject: [PATCH] Use DWARF 5 value for DW_LANG_Rust --- src/librustc_trans/debuginfo/metadata.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/librustc_trans/debuginfo/metadata.rs b/src/librustc_trans/debuginfo/metadata.rs index 5690b18bc8ede..1b63fadca15aa 100644 --- a/src/librustc_trans/debuginfo/metadata.rs +++ b/src/librustc_trans/debuginfo/metadata.rs @@ -50,7 +50,9 @@ use syntax::{ast, codemap}; use syntax::parse::token; -const DW_LANG_RUST: c_uint = 0x9000; +// From DWARF 5. +// See http://www.dwarfstd.org/ShowIssue.php?issue=140129.1 +const DW_LANG_RUST: c_uint = 0x1c; #[allow(non_upper_case_globals)] const DW_ATE_boolean: c_uint = 0x02; #[allow(non_upper_case_globals)]