From 8598d4beafafe3dce5c485d77e262fc3a0171c9f Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Thu, 23 Mar 2017 00:20:03 -0400 Subject: [PATCH] Fix following removal of parse_ty_path (#138) The merge of rust-lang/rust#40043 removes parse_ty_path in the latest nightly, which we depended on. This patch rewrites that code path using parse_path, and in the process eliminates an unreachable!() if let arm. --- src/plugins/src/lib.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/plugins/src/lib.rs b/src/plugins/src/lib.rs index 056f7d9..61613ef 100644 --- a/src/plugins/src/lib.rs +++ b/src/plugins/src/lib.rs @@ -109,7 +109,7 @@ fn ty_snake_to_camel(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree]) -> Box s, Err(mut diagnostic) => { diagnostic.emit(); @@ -123,14 +123,13 @@ fn ty_snake_to_camel(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree]) -> Box