From f788204255b6537b3915f7a0c4183703c80bc32e Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Thu, 10 Nov 2016 15:18:19 -0500 Subject: [PATCH 1/2] Use stable in .travis.yml question mark has landed --- .travis.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9d81f13e3..3d3d062bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,8 @@ language: rust cache: cargo rust: - nightly -# - beta -# ^ to be changed once question_mark is in beta: 1.14 -# - stable -# ^ to be changed once question_mark becomes stable: 1.14 + - beta + - stable before_script: - (cargo install mdbook || true) script: From facbc6900993f09f5e3b0db9d14477398152fe46 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Thu, 10 Nov 2016 15:19:49 -0500 Subject: [PATCH 2/2] Remove question_mark feature --- src/ch09-02-recoverable-errors-with-result.md | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/ch09-02-recoverable-errors-with-result.md b/src/ch09-02-recoverable-errors-with-result.md index 5cc5f0d91..3b1fbdaea 100644 --- a/src/ch09-02-recoverable-errors-with-result.md +++ b/src/ch09-02-recoverable-errors-with-result.md @@ -270,20 +270,7 @@ Listing 9-6: A function that returns errors to the calling code using `try!` Or as in Listing 9-7, which uses the question mark operator: - - ```rust -#![feature(question_mark)] # fn main() {} # use std::fs::File; # use std::io; @@ -311,7 +298,6 @@ question mark operator permits chaining. We could further shorten this code by instead doing: ```rust -#![feature(question_mark)] # fn main() {} # use std::fs::File; # use std::io;