Skip to content

Commit

Permalink
Fix compilation and tests after the roll-up
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Bukaj committed Nov 18, 2014
1 parent 9673365 commit 330a1af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/libcore/borrow.rs
Expand Up @@ -47,6 +47,7 @@
use clone::Clone;
use kinds::Sized;
use ops::Deref;
use self::Cow::*;

/// A trait for borrowing data.
pub trait BorrowFrom<Sized? Owned> for Sized? {
Expand Down
4 changes: 2 additions & 2 deletions src/libgraphviz/lib.rs
Expand Up @@ -836,7 +836,7 @@ r#"digraph syntax_tree {

#[test]
fn simple_id_construction() {
let id1 = dot::Id::new("hello");
let id1 = Id::new("hello");
match id1 {
Ok(_) => {;},
Err(_) => panic!("'hello' is not a valid value for id anymore")
Expand All @@ -845,7 +845,7 @@ r#"digraph syntax_tree {

#[test]
fn badly_formatted_id() {
let id2 = dot::Id::new("Weird { struct : ure } !!!");
let id2 = Id::new("Weird { struct : ure } !!!");
match id2 {
Ok(_) => panic!("graphviz id suddenly allows spaces, brackets and stuff"),
Err(_) => {;}
Expand Down
4 changes: 2 additions & 2 deletions src/librustc/middle/stability.rs
Expand Up @@ -79,8 +79,8 @@ impl<'v> Visitor<'v> for Annotator {
}
}

fn visit_fn(&mut self, fk: FnKind<'v>, fd: &'v FnDecl,
b: &'v Block, s: Span, _: NodeId) {
fn visit_fn(&mut self, fk: FnKind<'v>, _: &'v FnDecl,
_: &'v Block, _: Span, _: NodeId) {
match fk {
FkMethod(_, _, meth) => {
// Methods are not already annotated, so we annotate it
Expand Down

5 comments on commit 330a1af

@bors
Copy link
Contributor

@bors bors commented on 330a1af Nov 18, 2014

Choose a reason for hiding this comment

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

@bors
Copy link
Contributor

@bors bors commented on 330a1af Nov 18, 2014

Choose a reason for hiding this comment

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

merging jakub-/rust/roll-up = 330a1af into auto

@bors
Copy link
Contributor

@bors bors commented on 330a1af Nov 18, 2014

Choose a reason for hiding this comment

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

jakub-/rust/roll-up = 330a1af merged ok, testing candidate = 9c96a79

@bors
Copy link
Contributor

@bors bors commented on 330a1af Nov 18, 2014

Choose a reason for hiding this comment

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

@bors
Copy link
Contributor

@bors bors commented on 330a1af Nov 18, 2014

Choose a reason for hiding this comment

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

fast-forwarding master to auto = 9c96a79

Please sign in to comment.