1
Fork 0

rustdoc: unbox closures used in let bindings

This commit is contained in:
Jorge Aparicio 2014-12-30 20:59:47 -05:00
parent e9ddd825ba
commit fb14dad4d6
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ fn doit(sess: &parse::ParseSess, mut lexer: lexer::StringReader,
loop {
let next = lexer.next_token();
let snip = |sp| sess.span_diagnostic.cm.span_to_snippet(sp).unwrap();
let snip = |&: sp| sess.span_diagnostic.cm.span_to_snippet(sp).unwrap();
if next.tok == token::Eof { break }