Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![feature(macro_rules)]
#![feature(phase)]
#![feature(associated_types)]
#[phase(plugin, link)] extern crate log;

extern crate syntax;
Expand Down
4 changes: 3 additions & 1 deletion src/racer/codecleaner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ pub struct CodeIndicesIter<'a> {
state: State
}

impl<'a> Iterator<(uint, uint)> for CodeIndicesIter<'a> {
impl<'a> Iterator for CodeIndicesIter<'a> {
type Item = (uint, uint);

#[inline]
fn next(&mut self) -> Option<(uint, uint)> {
return match self.state {
Expand Down
4 changes: 3 additions & 1 deletion src/racer/codeiter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ pub struct StmtIndicesIter<'a> {
enddelim: u8
}

impl<'a> Iterator<(uint, uint)> for StmtIndicesIter<'a> {
impl<'a> Iterator for StmtIndicesIter<'a> {
type Item = (uint, uint);

#[inline]
fn next(&mut self) -> Option<(uint, uint)> {
let semicolon: u8 = ";".as_bytes()[0];
Expand Down