From f77d937b51aad23755886355c13b4d8bc82ca551 Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Sun, 30 Aug 2015 22:19:53 -0400 Subject: [PATCH 1/2] Update README.md Fix Travis build status URL, and link to serde as a use case of syntex instead of regex_macros (which doesn't currently have a syntex edition). --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 77b5cc1c..95b095a6 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ Syntex Code Generation Framework ================================ -[![Build Status](https://api.travis-ci.org/erickt/rust-syntex.png?branch=master)](https://travis-ci.org/erickt/rust-syntex) +[![Build Status](https://api.travis-ci.org/serde-rs/syntex.png?branch=master)](https://travis-ci.org/erickt/rust-syntex) [![Latest Version](https://img.shields.io/crates/v/syntex.svg)](https://crates.io/crates/syntex) `syntex` is a library that enables compile time syntax extension expansion. -This allows users to use libraries like [regex\_macros]() in a rust 1.0 -compatible context. +This allows users to use libraries like [serde](https://github.com/serde-rs/serde) +on stable Rust. Configuring with Cargo ====================== From d329b1af40c97a7dcbda17468c7cfc0a15137de0 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 31 Aug 2015 13:55:47 -0700 Subject: [PATCH 2/2] Fix compatibility with Rust 1.0.0 iter::once was introduce after 1.0.0 --- syntex_syntax/src/test.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/syntex_syntax/src/test.rs b/syntex_syntax/src/test.rs index 7cd44e5f..3a64f0ac 100644 --- a/syntex_syntax/src/test.rs +++ b/syntex_syntax/src/test.rs @@ -14,7 +14,6 @@ #![allow(unused_imports)] use self::HasTestSignature::*; -use std::iter; use std::slice; use std::mem; use std::vec; @@ -225,7 +224,7 @@ impl fold::Folder for EntryPointCleaner { .filter(|attr| { !attr.check_name("main") && !attr.check_name("start") }) - .chain(iter::once(allow_dead_code)) + .chain(Some(allow_dead_code)) .collect(), node: node, vis: vis,