Update to Rust 1.21

Summary:
This diff does a few things:
  - Change the rust versions in `third-party{2,-buck}/config.py` to 1.21.
  - Update the tp2 symlinks for `rust` and `rust-crates-io`
  - Fix build breakages due to new errors/warnings from rustc.

Reviewed By: jsgf, Imxset21

Differential Revision: D6319954

fbshipit-source-id: cd4fe9e0d6f26c1a6c9c3f1256d84cb002bb83d6
This commit is contained in:
Arun Kulshreshtha 2017-11-29 15:16:42 -08:00 committed by Facebook Github Bot
parent 5519eae489
commit fd2c414961
3 changed files with 3 additions and 4 deletions

View File

@ -14,7 +14,6 @@ extern crate storage_types;
use std::collections::HashMap;
use std::collections::hash_map::Entry;
use std::error;
use std::sync::Mutex;
use std::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT};

View File

@ -334,8 +334,8 @@ where
// Set up client authentication
{
let mut sslacceptorbuilder = tlsacceptor_builder.builder_mut();
let mut sslcontextbuilder = sslacceptorbuilder.builder_mut();
let sslacceptorbuilder = tlsacceptor_builder.builder_mut();
let sslcontextbuilder = sslacceptorbuilder.builder_mut();
sslcontextbuilder
.set_ca_file(ca_pem_file)

View File

@ -119,7 +119,7 @@ where
// more input it needs to make progress.)
// TODO: (jsgf) T23239742 Either fix decode to return amount needed or
// completely rewrite as a streaming command parser.
let mut buf = &mut self.buf;
let buf = &mut self.buf;
let n = {
let b = &mut buf.bytes_mut()[..1];