-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
note that some of these cases may actually be fixes to latent bugs, in some sense (depending on what our guarantees are about e.g. what a hashmap should be allowed to access in its own destructor).
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,8 @@ fn parent() { | |
} | ||
|
||
fn child() { | ||
for line in io::stdin().lock().lines() { | ||
let mut stdin = io::stdin(); | ||
for line in stdin.lock().lines() { | ||
println!("{}", line.unwrap()); | ||
} | ||
}; | ||
This comment has been minimized.
Sorry, something went wrong.
nikomatsakis
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,5 +29,5 @@ impl Bar { | |
|
||
fn main() { | ||
let b = RefCell::new(Bar); | ||
b.borrow().foo() | ||
b.borrow().foo(); | ||
} |
1 comment
on commit 56c39ae
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. hmm, not bad, all things considered. The need to occasionally throw in a semicolon is prob ok but I woner how obvious it is from the error messages?
oh dear me what a chain!