Skip to content

Commit 330a1af

Browse files
author
Jakub Bukaj
committed
Fix compilation and tests after the roll-up
1 parent 9673365 commit 330a1af

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/libcore/borrow.rs

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
use clone::Clone;
4848
use kinds::Sized;
4949
use ops::Deref;
50+
use self::Cow::*;
5051

5152
/// A trait for borrowing data.
5253
pub trait BorrowFrom<Sized? Owned> for Sized? {

src/libgraphviz/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ r#"digraph syntax_tree {
836836

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

846846
#[test]
847847
fn badly_formatted_id() {
848-
let id2 = dot::Id::new("Weird { struct : ure } !!!");
848+
let id2 = Id::new("Weird { struct : ure } !!!");
849849
match id2 {
850850
Ok(_) => panic!("graphviz id suddenly allows spaces, brackets and stuff"),
851851
Err(_) => {;}

src/librustc/middle/stability.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ impl<'v> Visitor<'v> for Annotator {
7979
}
8080
}
8181

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

0 commit comments

Comments
 (0)