Remove XXX notes
diff --git a/src/data.rs b/src/data.rs
index 1b1b928..c30f56c 100644
--- a/src/data.rs
+++ b/src/data.rs
@@ -380,7 +380,7 @@
fn to_tokens(&self, tokens: &mut TokenStream) {
self.pub_token.to_tokens(tokens);
self.paren_token.surround(tokens, |tokens| {
- // XXX: If we have a path which is not "self" or "super" or
+ // TODO: If we have a path which is not "self" or "super" or
// "crate", automatically add the "in" token.
self.in_token.to_tokens(tokens);
self.path.to_tokens(tokens);
diff --git a/src/expr.rs b/src/expr.rs
index 709baa6..59e1edf 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -1335,7 +1335,6 @@
}
}
- // XXX: This duplication is ugly
#[cfg(not(feature = "full"))]
fn unary_expr(input: ParseStream, allow_struct: AllowStruct) -> Result<Expr> {
let ahead = input.fork();
@@ -1457,7 +1456,6 @@
Ok(e)
}
- // XXX: Duplication == ugly
#[cfg(not(feature = "full"))]
fn trailer_expr(input: ParseStream, allow_struct: AllowStruct) -> Result<Expr> {
let mut e = atom_expr(input, allow_struct)?;
@@ -3686,8 +3684,6 @@
#[cfg(feature = "full")]
impl ToTokens for PatSlice {
fn to_tokens(&self, tokens: &mut TokenStream) {
- // XXX: This is a mess, and it will be so easy to screw it up. How
- // do we make this correct itself better?
self.bracket_token.surround(tokens, |tokens| {
self.front.to_tokens(tokens);
diff --git a/src/path.rs b/src/path.rs
index 464c6fb..ff7e754 100644
--- a/src/path.rs
+++ b/src/path.rs
@@ -587,7 +587,6 @@
qself.lt_token.to_tokens(tokens);
qself.ty.to_tokens(tokens);
- // XXX: Gross.
let pos = if qself.position > 0 && qself.position >= self.1.segments.len() {
self.1.segments.len() - 1
} else {