fix(rustup): switch to unstable features

This commit is contained in:
Sean McArthur
2015-01-31 11:52:09 -08:00
parent 4ad4c491d3
commit 3af8b687d4
15 changed files with 20 additions and 19 deletions

View File

@@ -10,7 +10,7 @@ use header;
/// > during the actual request.
///
/// Spec: www.w3.org/TR/cors/#access-control-allow-headers-response-header
#[derive(Clone, PartialEq, Show)]
#[derive(Clone, PartialEq, Debug)]
pub struct AccessControlAllowHeaders(pub Vec<String>);
impl header::Header for AccessControlAllowHeaders {

View File

@@ -11,7 +11,7 @@ use method;
/// > actual request.
///
/// Spec: www.w3.org/TR/cors/#access-control-allow-methods-response-header
#[derive(Clone, PartialEq, Show)]
#[derive(Clone, PartialEq, Debug)]
pub struct AccessControlAllowMethods(pub Vec<method::Method>);
impl header::Header for AccessControlAllowMethods {

View File

@@ -13,7 +13,7 @@ use header;
/// > "*", or "null" in the response.
///
/// Spec: www.w3.org/TR/cors/#access-control-allow-origin-response-header
#[derive(Clone, PartialEq, Show)]
#[derive(Clone, PartialEq, Debug)]
pub enum AccessControlAllowOrigin {
/// Allow all origins
AllowStar,

View File

@@ -9,7 +9,7 @@ use header;
/// > preflight request can be cached in a preflight result cache.
///
/// Spec: www.w3.org/TR/cors/#access-control-max-age-response-header
#[derive(Clone, Copy, PartialEq, Show)]
#[derive(Clone, Copy, PartialEq, Debug)]
pub struct AccessControlMaxAge(pub u32);
impl header::Header for AccessControlMaxAge {

View File

@@ -9,7 +9,7 @@ use header;
/// > be used in the actual request as part of the preflight request.
///
/// Spec: www.w3.org/TR/cors/#access-control-request-headers-request-header
#[derive(Clone, PartialEq, Show)]
#[derive(Clone, PartialEq, Debug)]
pub struct AccessControlRequestHeaders(pub Vec<String>);
impl header::Header for AccessControlRequestHeaders {

View File

@@ -10,7 +10,7 @@ use method::Method;
/// > used in the actual request as part of the preflight request.
///
/// Spec: www.w3.org/TR/cors/#access-control-request-method-request-header
#[derive(Clone, PartialEq, Show)]
#[derive(Clone, PartialEq, Debug)]
pub struct AccessControlRequestMethod(pub Method);
impl header::Header for AccessControlRequestMethod {

View File

@@ -484,7 +484,7 @@ impl fmt::Display for Box<HeaderFormat + Send + Sync> {
}
}
/// A wrapper around any Header with a Show impl that calls fmt_header.
/// A wrapper around any Header with a Display impl that calls fmt_header.
///
/// This can be used like so: `format!("{}", HeaderFormatter(&header))` to
/// get the representation of a Header which will be written to an
@@ -555,7 +555,7 @@ mod tests {
assert_eq!(accept, Some(Accept(vec![application_vendor, text_plain])));
}
#[derive(Clone, Show)]
#[derive(Clone, Debug)]
struct CrazyLength(Option<bool>, usize);
impl Header for CrazyLength {

View File

@@ -586,7 +586,7 @@ pub fn read_request_line<R: Reader>(stream: &mut R) -> HttpResult<RequestLine> {
pub type StatusLine = (HttpVersion, RawStatus);
/// The raw status code and reason-phrase.
#[derive(PartialEq, Show)]
#[derive(PartialEq, Debug)]
pub struct RawStatus(pub u16, pub CowString<'static>);
impl Clone for RawStatus {

View File

@@ -1,7 +1,8 @@
#![feature(slicing_syntax, box_syntax)]
#![feature(core, collections, hash, io, os, std_misc,
slicing_syntax, box_syntax)]
#![deny(missing_docs)]
#![allow(unstable)]
#![cfg_attr(test, deny(warnings))]
#![cfg_attr(test, feature(test))]
//! # Hyper
//! Hyper is a fast, modern HTTP implementation written in and for Rust. It