Skip to content

Commit

Permalink
Fix fallout in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jseyfried committed Dec 12, 2017
1 parent 9c7969d commit 8dbe79a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/test/pretty/issue-4264.pp
Expand Up @@ -40,7 +40,7 @@
((::fmt::format as
for<'r> fn(std::fmt::Arguments<'r>) -> std::string::String {std::fmt::format})(((<::std::fmt::Arguments>::new_v1
for<'r> fn(std::fmt::Arguments<'r>) -> std::string::String {std::fmt::format})(((<::fmt::Arguments>::new_v1
as
fn(&[&str], &[std::fmt::ArgumentV1<'_>]) -> std::fmt::Arguments<'_> {std::fmt::Arguments<'_>::new_v1})((&([("test"
as
Expand Down
Expand Up @@ -69,7 +69,7 @@ fn expand_deriving_partial_eq(cx: &mut ExtCtxt, span: Span, mitem: &MetaItem, it
let trait_def = TraitDef {
span: span,
attributes: Vec::new(),
path: deriving::generic::ty::Path::new(vec!["std", "cmp", "PartialEq"]),
path: deriving::generic::ty::Path::new(vec!["cmp", "PartialEq"]),
additional_bounds: Vec::new(),
generics: LifetimeBounds::empty(),
is_unsafe: false,
Expand Down
Expand Up @@ -50,7 +50,7 @@ fn expand(cx: &mut ExtCtxt,
let trait_def = TraitDef {
span: span,
attributes: vec![],
path: Path::new(vec!["TotalSum"]),
path: Path::new_local("TotalSum"),
additional_bounds: vec![],
generics: LifetimeBounds::empty(),
associated_types: vec![],
Expand Down
Expand Up @@ -46,7 +46,7 @@ fn expand(cx: &mut ExtCtxt,
let trait_def = TraitDef {
span: span,
attributes: vec![],
path: Path::new(vec!["TotalSum"]),
path: Path::new_local("TotalSum"),
additional_bounds: vec![],
generics: LifetimeBounds::empty(),
associated_types: vec![],
Expand Down
Expand Up @@ -8,22 +8,22 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(rustc_private)]
#![no_std]

extern crate serialize as rustc_serialize;

#[derive(RustcEncodable)] //~ ERROR this trait cannot be derived
#[derive(RustcEncodable)]
struct Bar {
x: u32,
}

#[derive(RustcDecodable)] //~ ERROR this trait cannot be derived
#[derive(RustcDecodable)]
struct Baz {
x: u32,
}

fn main() {
Foo { x: 0 };
Bar { x: 0 };
Baz { x: 0 };
}

0 comments on commit 8dbe79a

Please sign in to comment.