Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Commit

Permalink
Merge pull request #138 from farcaller/fix-nightly
Browse files Browse the repository at this point in the history
Fixes for nightly fallout

Reviewed-by: farcaller
  • Loading branch information
hacknbot committed Aug 18, 2014
2 parents be654f4 + ccc0e63 commit 2af9fe6
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
3 changes: 2 additions & 1 deletion ioreg/builder/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use std::gc::GC;
use std::iter::FromIterator;
use syntax::ast;
use syntax::ast::P;
use syntax::ast_util::empty_generics;
use syntax::codemap::{respan, mk_sp};
use syntax::ext::base::ExtCtxt;
use syntax::ext::build::AstBuilder;
Expand Down Expand Up @@ -80,7 +81,7 @@ fn build_field_type<'a>(cx: &'a ExtCtxt, path: &Vec<String>,
let item: P<ast::Item> = box(GC) ast::Item {
ident: name,
id: ast::DUMMY_NODE_ID,
node: ast::ItemEnum(enum_def, utils::no_generics()),
node: ast::ItemEnum(enum_def, empty_generics()),
vis: ast::Public,
attrs: attrs,
span: field.ty.span,
Expand Down
3 changes: 2 additions & 1 deletion ioreg/builder/union.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use std::gc::{Gc, GC};
use std::iter::FromIterator;
use syntax::ast;
use syntax::ast::P;
use syntax::ast_util::empty_generics;
use syntax::codemap::{DUMMY_SP, dummy_spanned};
use syntax::ext::base::ExtCtxt;
use syntax::ext::build::AstBuilder;
Expand Down Expand Up @@ -193,7 +194,7 @@ impl<'a, 'b, 'c> BuildUnionTypes<'a, 'b, 'c> {
ident: self.cx.ident_of(name.node.as_slice()),
attrs: attrs,
id: ast::DUMMY_NODE_ID,
node: ast::ItemStruct(box(GC) struct_def, utils::no_generics()),
node: ast::ItemStruct(box(GC) struct_def, empty_generics()),
vis: ast::Public,
span: name.span,
}
Expand Down
8 changes: 0 additions & 8 deletions ioreg/builder/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,10 @@ use syntax::ast;
use syntax::ast::P;
use syntax::codemap::DUMMY_SP;
use syntax::ext::build::AstBuilder;
use syntax::owned_slice::OwnedSlice;
use syntax::parse::token;

use super::super::node;

pub fn no_generics() -> ast::Generics {
ast::Generics {
lifetimes: Vec::new(),
ty_params: OwnedSlice::empty()
}
}

/// Generate an unsuffixed integer literal expression with a dummy span
pub fn expr_int<'a>(cx: &'a ExtCtxt, n: i64) -> P<ast::Expr> {
let sign = if n < 0 {ast::Minus} else {ast::Plus};
Expand Down
4 changes: 4 additions & 0 deletions macro/platformtree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ fn macro_zinc_task(cx: &mut ExtCtxt, _: Span, _: Gc<ast::MetaItem>,
let new_generics = ast::Generics {
lifetimes: vec!(),
ty_params: OwnedSlice::from_vec(params),
where_clause: ast::WhereClause {
id: ast::DUMMY_NODE_ID,
predicates: vec!(),
}
};
let new_node = ast::ItemFn(new_decl, style, abi, new_generics, block);

Expand Down
4 changes: 4 additions & 0 deletions platformtree/builder/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ fn build_args(builder: &mut Builder, cx: &mut ExtCtxt,
}, ast::Generics {
lifetimes: vec!(cx.lifetime_def(DUMMY_SP, intern("'a"), vec!())),
ty_params: OwnedSlice::from_vec(collected_params),
where_clause: ast::WhereClause {
id: ast::DUMMY_NODE_ID,
predicates: vec!(),
}
}),
vis: ast::Public,
span: DUMMY_SP,
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/chario.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//! Generic char output trait.

use core::str::{Str, StrSlice};
use core::slice::{Vector, ImmutableVector};
use core::slice::{Slice, ImmutableSlice};
use core::collections::Collection;
use core::iter::range;

Expand Down
2 changes: 1 addition & 1 deletion src/drivers/lcd/c12332.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ might be an issue for any other peripheral sharing the same SPI bus.
*/

use core::cell;
use core::slice::ImmutableVector;
use core::slice::ImmutableSlice;
use core::mem::zeroed;
use core::iter::range;

Expand Down

10 comments on commit 2af9fe6

@hacknbot
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity zinc :: lpc17xx Build 10 is now running

@hacknbot
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity zinc :: lpc17xx Build 10 outcome was SUCCESS
Summary: Running Build time: 00:00:31

@hacknbot
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity zinc :: lpc17xx Build 16 is now running

@hacknbot
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity zinc :: lpc17xx Build 16 outcome was SUCCESS
Summary: Running Build time: 00:00:21

@hacknbot
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity zinc :: lpc17xx Build 17 is now running

@hacknbot
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity zinc :: lpc17xx Build 17 outcome was SUCCESS
Summary: Running Build time: 00:00:10

@hacknbot
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity zinc :: lpc17xx Build 21 is now running

@hacknbot
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity zinc :: lpc17xx Build 21 outcome was SUCCESS
Summary: Running Build time: 00:00:07

@hacknbot
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity zinc :: lpc17xx Build 22 is now running

@hacknbot
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity zinc :: lpc17xx Build 22 outcome was SUCCESS
Summary: Running Build time: 00:00:02

Please sign in to comment.