David Tolnay
4dedca740a
Update test suite to nightly-2022-07-08
2022-07-07 21:39:49 -07:00
David Tolnay
15dc970e07
Ignore explicit_auto_deref clippy lint
...
error: deref which would be done by auto-deref
--> src/gen/visit.rs:820:23
|
820 | v.visit_expr(&*(it).1);
| ^^^^^^^ help: try this: `(it).1`
|
= note: `-D clippy::explicit-auto-deref` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:823:19
|
823 | v.visit_expr(&*node.body);
| ^^^^^^^^^^ help: try this: `node.body`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1245:19
|
1245 | v.visit_expr(&*node.left);
| ^^^^^^^^^^ help: try this: `node.left`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1247:19
|
1247 | v.visit_expr(&*node.right);
| ^^^^^^^^^^^ help: try this: `node.right`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1257:19
|
1257 | v.visit_expr(&*node.left);
| ^^^^^^^^^^ help: try this: `node.left`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1259:19
|
1259 | v.visit_expr(&*node.right);
| ^^^^^^^^^^^ help: try this: `node.right`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1283:19
|
1283 | v.visit_expr(&*node.base);
| ^^^^^^^^^^ help: try this: `node.base`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1295:19
|
1295 | v.visit_expr(&*node.left);
| ^^^^^^^^^^ help: try this: `node.left`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1297:19
|
1297 | v.visit_expr(&*node.right);
| ^^^^^^^^^^^ help: try this: `node.right`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1321:19
|
1321 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1336:22
|
1336 | v.visit_expr(&**it);
| ^^^^^ help: try this: `it`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1347:19
|
1347 | v.visit_expr(&*node.func);
| ^^^^^^^^^^ help: try this: `node.func`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1365:19
|
1365 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1367:19
|
1367 | v.visit_type(&*node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1396:19
|
1396 | v.visit_expr(&*node.body);
| ^^^^^^^^^^ help: try this: `node.body`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1419:19
|
1419 | v.visit_expr(&*node.base);
| ^^^^^^^^^^ help: try this: `node.base`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1437:19
|
1437 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1449:19
|
1449 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1460:19
|
1460 | v.visit_expr(&*node.cond);
| ^^^^^^^^^^ help: try this: `node.cond`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1464:23
|
1464 | v.visit_expr(&*(it).1);
| ^^^^^^^ help: try this: `(it).1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1475:19
|
1475 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1477:19
|
1477 | v.visit_expr(&*node.index);
| ^^^^^^^^^^^ help: try this: `node.index`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1490:19
|
1490 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1535:19
|
1535 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1549:19
|
1549 | v.visit_expr(&*node.receiver);
| ^^^^^^^^^^^^^^ help: try this: `node.receiver`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1573:19
|
1573 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1597:22
|
1597 | v.visit_expr(&**it);
| ^^^^^ help: try this: `it`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1601:22
|
1601 | v.visit_expr(&**it);
| ^^^^^ help: try this: `it`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1616:19
|
1616 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1627:19
|
1627 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1629:19
|
1629 | v.visit_expr(&*node.len);
| ^^^^^^^^^ help: try this: `node.len`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1641:22
|
1641 | v.visit_expr(&**it);
| ^^^^^ help: try this: `it`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1665:22
|
1665 | v.visit_expr(&**it);
| ^^^^^ help: try this: `it`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1676:19
|
1676 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1715:19
|
1715 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1717:19
|
1717 | v.visit_type(&*node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1728:19
|
1728 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1753:19
|
1753 | v.visit_expr(&*node.cond);
| ^^^^^^^^^^ help: try this: `node.cond`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1766:22
|
1766 | v.visit_expr(&**it);
| ^^^^^ help: try this: `it`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1798:18
|
1798 | v.visit_pat(&*node.pat);
| ^^^^^^^^^ help: try this: `node.pat`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:1949:19
|
1949 | v.visit_type(&*node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2223:19
|
2223 | v.visit_type(&*node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2225:19
|
2225 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2277:20
|
2277 | v.visit_block(&*node.block);
| ^^^^^^^^^^^ help: try this: `node.block`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2316:19
|
2316 | v.visit_type(&*node.self_ty);
| ^^^^^^^^^^^^^ help: try this: `node.self_ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2387:19
|
2387 | v.visit_type(&*node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2389:19
|
2389 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2477:19
|
2477 | v.visit_type(&*node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2619:23
|
2619 | v.visit_expr(&*(it).1);
| ^^^^^^^ help: try this: `(it).1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2820:18
|
2820 | v.visit_pat(&*node.pat);
| ^^^^^^^^^ help: try this: `node.pat`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2839:22
|
2839 | v.visit_pat(&*(it).1);
| ^^^^^^^ help: try this: `(it).1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2850:19
|
2850 | v.visit_expr(&*node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2902:19
|
2902 | v.visit_expr(&*node.lo);
| ^^^^^^^^ help: try this: `node.lo`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2904:19
|
2904 | v.visit_expr(&*node.hi);
| ^^^^^^^^ help: try this: `node.hi`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:2918:18
|
2918 | v.visit_pat(&*node.pat);
| ^^^^^^^^^ help: try this: `node.pat`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:3004:18
|
3004 | v.visit_pat(&*node.pat);
| ^^^^^^^^^ help: try this: `node.pat`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:3006:19
|
3006 | v.visit_type(&*node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:3105:19
|
3105 | v.visit_type(&*node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:3154:26
|
3154 | v.visit_type(&**_binding_1);
| ^^^^^^^^^^^^^ help: try this: `_binding_1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:3402:19
|
3402 | v.visit_type(&*node.elem);
| ^^^^^^^^^^ help: try this: `node.elem`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:3440:19
|
3440 | v.visit_type(&*node.elem);
| ^^^^^^^^^^ help: try this: `node.elem`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:3523:19
|
3523 | v.visit_type(&*node.elem);
| ^^^^^^^^^^ help: try this: `node.elem`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:3547:19
|
3547 | v.visit_type(&*node.elem);
| ^^^^^^^^^^ help: try this: `node.elem`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:3561:19
|
3561 | v.visit_type(&*node.elem);
| ^^^^^^^^^^ help: try this: `node.elem`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:3569:19
|
3569 | v.visit_type(&*node.elem);
| ^^^^^^^^^^ help: try this: `node.elem`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:3653:23
|
3653 | v.visit_use_tree(&*node.tree);
| ^^^^^^^^^^ help: try this: `node.tree`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit.rs:3736:19
|
3736 | v.visit_path(&*node.path);
| ^^^^^^^^^^ help: try this: `node.path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:821:31
|
821 | v.visit_expr_mut(&mut *(it).1);
| ^^^^^^^ help: try this: `(it).1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:824:27
|
824 | v.visit_expr_mut(&mut *node.body);
| ^^^^^^^^^^ help: try this: `node.body`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1246:27
|
1246 | v.visit_expr_mut(&mut *node.left);
| ^^^^^^^^^^ help: try this: `node.left`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1248:27
|
1248 | v.visit_expr_mut(&mut *node.right);
| ^^^^^^^^^^^ help: try this: `node.right`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1258:27
|
1258 | v.visit_expr_mut(&mut *node.left);
| ^^^^^^^^^^ help: try this: `node.left`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1260:27
|
1260 | v.visit_expr_mut(&mut *node.right);
| ^^^^^^^^^^^ help: try this: `node.right`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1284:27
|
1284 | v.visit_expr_mut(&mut *node.base);
| ^^^^^^^^^^ help: try this: `node.base`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1296:27
|
1296 | v.visit_expr_mut(&mut *node.left);
| ^^^^^^^^^^ help: try this: `node.left`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1298:27
|
1298 | v.visit_expr_mut(&mut *node.right);
| ^^^^^^^^^^^ help: try this: `node.right`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1322:27
|
1322 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1337:26
|
1337 | v.visit_expr_mut(&mut **it);
| ^^^^^^^^^ help: try this: `it`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1348:27
|
1348 | v.visit_expr_mut(&mut *node.func);
| ^^^^^^^^^^ help: try this: `node.func`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1366:27
|
1366 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1368:27
|
1368 | v.visit_type_mut(&mut *node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1397:27
|
1397 | v.visit_expr_mut(&mut *node.body);
| ^^^^^^^^^^ help: try this: `node.body`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1420:27
|
1420 | v.visit_expr_mut(&mut *node.base);
| ^^^^^^^^^^ help: try this: `node.base`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1438:27
|
1438 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1450:27
|
1450 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1461:27
|
1461 | v.visit_expr_mut(&mut *node.cond);
| ^^^^^^^^^^ help: try this: `node.cond`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1465:31
|
1465 | v.visit_expr_mut(&mut *(it).1);
| ^^^^^^^ help: try this: `(it).1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1476:27
|
1476 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1478:27
|
1478 | v.visit_expr_mut(&mut *node.index);
| ^^^^^^^^^^^ help: try this: `node.index`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1491:27
|
1491 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1536:27
|
1536 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1550:27
|
1550 | v.visit_expr_mut(&mut *node.receiver);
| ^^^^^^^^^^^^^^ help: try this: `node.receiver`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1574:27
|
1574 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1598:26
|
1598 | v.visit_expr_mut(&mut **it);
| ^^^^^^^^^ help: try this: `it`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1602:26
|
1602 | v.visit_expr_mut(&mut **it);
| ^^^^^^^^^ help: try this: `it`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1617:27
|
1617 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1628:27
|
1628 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1630:27
|
1630 | v.visit_expr_mut(&mut *node.len);
| ^^^^^^^^^ help: try this: `node.len`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1642:26
|
1642 | v.visit_expr_mut(&mut **it);
| ^^^^^^^^^ help: try this: `it`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1666:26
|
1666 | v.visit_expr_mut(&mut **it);
| ^^^^^^^^^ help: try this: `it`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1677:27
|
1677 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1716:27
|
1716 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1718:27
|
1718 | v.visit_type_mut(&mut *node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1729:27
|
1729 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1754:27
|
1754 | v.visit_expr_mut(&mut *node.cond);
| ^^^^^^^^^^ help: try this: `node.cond`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1767:26
|
1767 | v.visit_expr_mut(&mut **it);
| ^^^^^^^^^ help: try this: `it`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1799:26
|
1799 | v.visit_pat_mut(&mut *node.pat);
| ^^^^^^^^^ help: try this: `node.pat`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:1950:27
|
1950 | v.visit_type_mut(&mut *node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2223:27
|
2223 | v.visit_type_mut(&mut *node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2225:27
|
2225 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2277:28
|
2277 | v.visit_block_mut(&mut *node.block);
| ^^^^^^^^^^^ help: try this: `node.block`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2316:27
|
2316 | v.visit_type_mut(&mut *node.self_ty);
| ^^^^^^^^^^^^^ help: try this: `node.self_ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2387:27
|
2387 | v.visit_type_mut(&mut *node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2389:27
|
2389 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2477:27
|
2477 | v.visit_type_mut(&mut *node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2619:31
|
2619 | v.visit_expr_mut(&mut *(it).1);
| ^^^^^^^ help: try this: `(it).1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2820:26
|
2820 | v.visit_pat_mut(&mut *node.pat);
| ^^^^^^^^^ help: try this: `node.pat`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2839:30
|
2839 | v.visit_pat_mut(&mut *(it).1);
| ^^^^^^^ help: try this: `(it).1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2850:27
|
2850 | v.visit_expr_mut(&mut *node.expr);
| ^^^^^^^^^^ help: try this: `node.expr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2902:27
|
2902 | v.visit_expr_mut(&mut *node.lo);
| ^^^^^^^^ help: try this: `node.lo`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2904:27
|
2904 | v.visit_expr_mut(&mut *node.hi);
| ^^^^^^^^ help: try this: `node.hi`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:2918:26
|
2918 | v.visit_pat_mut(&mut *node.pat);
| ^^^^^^^^^ help: try this: `node.pat`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:3004:26
|
3004 | v.visit_pat_mut(&mut *node.pat);
| ^^^^^^^^^ help: try this: `node.pat`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:3006:27
|
3006 | v.visit_type_mut(&mut *node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:3105:27
|
3105 | v.visit_type_mut(&mut *node.ty);
| ^^^^^^^^ help: try this: `node.ty`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:3154:30
|
3154 | v.visit_type_mut(&mut **_binding_1);
| ^^^^^^^^^^^^^^^^^ help: try this: `_binding_1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:3402:27
|
3402 | v.visit_type_mut(&mut *node.elem);
| ^^^^^^^^^^ help: try this: `node.elem`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:3440:27
|
3440 | v.visit_type_mut(&mut *node.elem);
| ^^^^^^^^^^ help: try this: `node.elem`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:3523:27
|
3523 | v.visit_type_mut(&mut *node.elem);
| ^^^^^^^^^^ help: try this: `node.elem`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:3547:27
|
3547 | v.visit_type_mut(&mut *node.elem);
| ^^^^^^^^^^ help: try this: `node.elem`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:3561:27
|
3561 | v.visit_type_mut(&mut *node.elem);
| ^^^^^^^^^^ help: try this: `node.elem`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:3569:27
|
3569 | v.visit_type_mut(&mut *node.elem);
| ^^^^^^^^^^ help: try this: `node.elem`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:3653:31
|
3653 | v.visit_use_tree_mut(&mut *node.tree);
| ^^^^^^^^^^ help: try this: `node.tree`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
error: deref which would be done by auto-deref
--> src/gen/visit_mut.rs:3736:27
|
3736 | v.visit_path_mut(&mut *node.path);
| ^^^^^^^^^^ help: try this: `node.path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
2022-07-01 20:12:52 -07:00
David Tolnay
3424444c7f
Release 1.0.98
2022-06-18 17:34:26 -07:00
David Tolnay
c592781b4f
Format examples with rustfmt 1.5.0
2022-06-18 17:33:21 -07:00
David Tolnay
0000e6e911
Access non-public group API in a way that makes it more clearly non-public
2022-06-18 17:33:21 -07:00
David Tolnay
19b3f0b535
Release 1.0.97
2022-06-18 13:15:49 -07:00
David Tolnay
c19c64d7d0
Use upstreamed docs.rs icon in docs.rs badge
2022-06-11 10:17:11 -07:00
David Tolnay
1819d386f3
Resolve borrow_deref_ref clippy lint
...
error: deref on an immutable reference
--> tests/debug/mod.rs:90:25
|
90 | Debug::fmt(Lite(&*self.value), formatter)
| ^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `self.value`
|
= note: `-D clippy::borrow-deref-ref` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref
2022-06-06 23:53:03 -07:00
David Tolnay
1d257cacb2
Resolve get_first clippy lint
...
error: accessing first element with `bytes.get(0)`
--> src/lit.rs:1483:23
|
1483 | let start = (*bytes.get(0)? == b'-') as usize;
| ^^^^^^^^^^^^ help: try: `bytes.first()`
|
= note: `-D clippy::get-first` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
2022-06-06 23:51:17 -07:00
David Tolnay
1f8dff24a0
Update outdated deps in all the examples
...
dump-syntax
================
Name Project Compat Latest Kind Platform
---- ------- ------ ------ ---- --------
colored 1.9.3 --- 2.0.0 Normal ---
lazy-static-example
================
Name Project Compat Latest Kind Platform
---- ------- ------ ------ ---- --------
aho-corasick 0.6.10 --- 0.7.18 Normal ---
lazy_static 1.4.0 --- Removed Normal ---
regex 0.2.11 --- 1.5.6 Normal ---
regex-syntax 0.5.6 --- 0.6.26 Normal ---
thread_local 0.3.6 --- Removed Normal ---
ucd-util 0.1.8 --- Removed Normal ---
utf8-ranges 1.0.5 --- Removed Normal ---
2022-06-06 14:57:22 -07:00
David Tolnay
6f518112c8
Check all crates in workspace for outdated deps
2022-06-06 14:39:25 -07:00
David Tolnay
14c01f0bc8
Merge pull request #1184 from dtolnay/workspace
...
Add all examples into top-level workspace
2022-06-06 13:52:27 -07:00
David Tolnay
2cb380eae6
Distinguish examples that have a conflicting package name
...
error: two packages named `example` in this workspace:
- /git/syn/examples/lazy-static/example/Cargo.toml
- /git/syn/examples/trace-var/example/Cargo.toml
2022-06-06 13:21:58 -07:00
David Tolnay
5ea8931523
Add all examples into top-level workspace
2022-06-06 13:21:50 -07:00
David Tolnay
cb8760bcdc
Release 1.0.96
2022-06-02 13:23:41 -07:00
David Tolnay
0f08f63cad
Merge pull request #1183 from dtolnay/punctmut
...
Add syn::punctuated::Pair::punct_mut
2022-06-02 13:22:52 -07:00
David Tolnay
45b10cbb6a
Add example of using pair.punct_mut()
2022-06-02 13:05:20 -07:00
David Tolnay
f6ab69cc48
Add syn::punctuated::Pair::punct_mut
2022-06-02 13:02:29 -07:00
David Tolnay
ded67c8920
Merge pull request #1181 from kianmeng/fix-typo
...
Fix typo
2022-05-30 08:20:53 -07:00
Kian-Meng Ang
e39a2045bf
Fix typo
2022-05-30 18:58:59 +08:00
David Tolnay
f14a5721eb
Fix stmt_expr_attributes test
2022-05-25 08:31:45 -07:00
David Tolnay
952b1679a9
Categorize test exclusions from nightly-2022-05-24
2022-05-23 22:19:33 -07:00
David Tolnay
f4e9c62c55
Update the rust-lang/rust commit used for parser tests
2022-05-23 22:13:09 -07:00
David Tolnay
396aa225e8
Switch to imports_granularity=Item style for test rustc_ast imports
...
This avoids this large block of imports getting rewrapped every time
imports change, which made it hard to see what was being added/removed.
2022-05-23 22:08:09 -07:00
David Tolnay
9ccdbf1e7d
Update test suite to nightly-2022-05-24
2022-05-23 22:04:38 -07:00
David Tolnay
5b0adb164f
Merge lint lists
...
Lints move back and forth from pedantic to non-pedantic all the time, so
whatever is here is definitely out of date and not particularly
meaningful.
2022-05-21 19:55:20 -07:00
David Tolnay
6234202d22
Remove clippy lint allows that no longer trigger
2022-05-21 19:54:42 -07:00
David Tolnay
4951e8e87c
Use new name of eval order dependence lint
...
warning: lint `clippy::eval_order_dependence` has been renamed to `clippy::mixed_read_write_in_expression`
--> src/lib.rs:261:5
|
261 | clippy::eval_order_dependence,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::mixed_read_write_in_expression`
|
= note: `#[warn(renamed_and_removed_lints)]` on by default
2022-05-21 19:46:11 -07:00
David Tolnay
0910d57f5a
Update test suite to nightly-2022-05-21
2022-05-20 21:57:02 -07:00
David Tolnay
7c9f307a71
Fix needless_borrow lint in test
...
error: this expression creates a reference which is immediately dereferenced by the compiler
--> tests/common/eq.rs:572:38
|
572 | is_escaped_literal_token(&token, unescaped) && trees.next().is_none()
| ^^^^^^ help: change this to: `token`
|
= note: `-D clippy::needless-borrow` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
2022-05-19 21:16:47 -07:00
David Tolnay
e077055f48
Update test suite to nightly-2022-05-20
...
error[E0277]: the trait bound `&rustc_ast::tokenstream::TokenTree: SpanlessEq` is not satisfied
--> tests/common/eq.rs:510:16
|
510 | if SpanlessEq::eq(&this, &other) {
| ^^^^^^^^^^^^^^ the trait `SpanlessEq` is not implemented for `&rustc_ast::tokenstream::TokenTree`
|
= help: the trait `SpanlessEq` is implemented for `rustc_ast::tokenstream::TokenTree`
error[E0271]: type mismatch resolving `<CursorRef<'_> as Iterator>::Item == rustc_ast::tokenstream::TokenTree`
--> tests/common/eq.rs:519:25
|
519 | doc_comment(*style, *symbol, &mut other_trees)
| ^^^^^^^^^^^ expected enum `rustc_ast::tokenstream::TokenTree`, found `&rustc_ast::tokenstream::TokenTree`
|
note: required by a bound in `doc_comment`
--> tests/common/eq.rs:537:31
|
534 | fn doc_comment(
| ----------- required by a bound in this
...
537 | trees: &mut impl Iterator<Item = TokenTree>,
| ^^^^^^^^^^^^^^^^ required by this bound in `doc_comment`
error[E0271]: type mismatch resolving `<CursorRef<'_> as Iterator>::Item == rustc_ast::tokenstream::TokenTree`
--> tests/common/eq.rs:522:25
|
522 | doc_comment(*style, *symbol, &mut this_trees)
| ^^^^^^^^^^^ expected enum `rustc_ast::tokenstream::TokenTree`, found `&rustc_ast::tokenstream::TokenTree`
|
note: required by a bound in `doc_comment`
--> tests/common/eq.rs:537:31
|
534 | fn doc_comment(
| ----------- required by a bound in this
...
537 | trees: &mut impl Iterator<Item = TokenTree>,
| ^^^^^^^^^^^^^^^^ required by this bound in `doc_comment`
error[E0277]: can't compare `&Symbol` with `Symbol`
--> tests/common/eq.rs:560:23
|
560 | })) if symbol == sym::doc => {}
| ^^ no implementation for `&Symbol == Symbol`
|
= help: the trait `PartialEq<Symbol>` is not implemented for `&Symbol`
= help: the trait `PartialEq` is implemented for `Symbol`
2022-05-19 20:59:53 -07:00
David Tolnay
50805a96c5
Fix new broken_intra_doc_links warnings
...
warning: unresolved link to `parse_macro_input`
--> src/error.rs:28:37
|
28 | /// When parsing macro input, the [`parse_macro_input!`] macro handles the
| ^^^^^^^^^^^^^^^^^^ no item named `parse_macro_input` in scope
|
= note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
= note: `macro_rules` named `parse_macro_input` exists in this crate, but it is not in scope at this link's location
warning: unresolved link to `parse_macro_input`
--> src/parse.rs:246:13
|
246 | /// - The [`parse_macro_input!`] macro if parsing input of a procedural macro;
| ^^^^^^^^^^^^^^^^^^ no item named `parse_macro_input` in scope
|
= note: `macro_rules` named `parse_macro_input` exists in this crate, but it is not in scope at this link's location
warning: unresolved link to `parse_macro_input`
--> src/error.rs:190:15
|
190 | /// The [`parse_macro_input!`] macro provides a convenient way to invoke
| ^^^^^^^^^^^^^^^^^^ no item named `parse_macro_input` in scope
|
= note: `macro_rules` named `parse_macro_input` exists in this crate, but it is not in scope at this link's location
2022-05-16 22:01:12 -07:00
David Tolnay
f8acab5518
Release 1.0.95
2022-05-16 15:38:18 -07:00
David Tolnay
be107389d4
Replace unicode-xid with unicode-ident crate
2022-05-16 15:30:15 -07:00
David Tolnay
fd1a51c69f
Release 1.0.94
2022-05-12 22:26:58 -07:00
David Tolnay
f1396f5480
Yet another unused macro rules lint
...
warning: 1st rule of macro `generate_to_tokens` is never used
--> src/macros.rs:120:5
|
120 | (do_not_generate_to_tokens $($foo:tt)*) => ();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_macro_rules)]` on by default
warning: 2nd rule of macro `generate_to_tokens` is never used
--> src/macros.rs:122:5
|
122 | / (
123 | | ($($arms:tt)*) $tokens:ident $name:ident {
124 | | $(#[cfg $cfg_attr:tt])*
125 | | $(#[doc $($doc_attr:tt)*])*
... |
128 | | }
129 | | ) => {
| |_____^
2022-05-12 22:17:49 -07:00
David Tolnay
209165eac4
Merge unknown_lints + unused_macro_rules attribute
2022-05-12 22:04:35 -07:00
David Tolnay
2fc9b71c38
Format with rustfmt 1.4.38
2022-05-12 22:03:49 -07:00
David Tolnay
accffbff8b
Fix unused macro rule in no-default-features mode
...
warning: 1st rule of macro `ast_struct` is never used
--> src/macros.rs:2:5
|
2 | / (
3 | | [$($attrs_pub:tt)*]
4 | | struct $name:ident #full $($rest:tt)*
5 | | ) => {
| |_____^
|
= note: `#[warn(unused_macro_rules)]` on by default
2022-05-12 22:03:19 -07:00
David Tolnay
e3798ce02c
Fix obsolete rule in ast_enum_of_structs
...
warning: 1st rule of macro `ast_enum_of_structs` is never used
--> src/macros.rs:56:5
|
56 | / (
57 | | $(#[$enum_attr:meta])*
58 | | $pub:ident $enum:ident $name:ident #$tag:ident $body:tt
59 | | $($remaining:tt)*
60 | | ) => {
| |_____^
|
= note: `#[warn(unused_macro_rules)]` on by default
2022-05-12 21:48:52 -07:00
David Tolnay
16315f531f
Fix obsolete rule in check_keyword_matches
...
warning: 1st rule of macro `check_keyword_matches` is never used
--> src/macros.rs:176:5
|
176 | (struct struct) => {};
| ^^^^^^^^^^^^^^^
2022-05-12 21:46:24 -07:00
David Tolnay
189c60c649
Ignore unused_macro_rules warning in test macros
...
warning: 2nd rule of macro `snapshot_impl` is never used
--> tests/macros/mod.rs:44:5
|
44 | (($($expr:tt)*) as $t:ty, @$snapshot:literal) => {{
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_macro_rules)]` on by default
warning: 1st rule of macro `snapshot_impl` is never used
--> tests/macros/mod.rs:37:5
|
37 | (($expr:ident) as $t:ty, @$snapshot:literal) => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: 3rd rule of macro `snapshot_impl` is never used
--> tests/macros/mod.rs:52:5
|
52 | (($($expr:tt)*) , @$snapshot:literal) => {{
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: 2nd rule of macro `spanless_eq_enum` is never used
--> tests/common/eq.rs:225:5
|
225 | / {
226 | | $($name:ident)::+;
227 | | $([$($variant:ident)::+; $($fields:tt)*])*
228 | | $next:ident [$([$($named:tt)*])* $(![$ignore:tt])*] (!$i:tt $($field:tt)*)
229 | | $($rest:tt)*
230 | | } => {
| |_____^
|
= note: `#[warn(unused_macro_rules)]` on by default
2022-05-12 21:45:06 -07:00
David Tolnay
11b4a93da6
Remove doc(hidden) attribute that is being phased out
...
warning: `#[doc(hidden)]` is ignored on trait impl items
--> src/parse.rs:1220:5
|
1220 | #[doc(hidden)]
| ^^^^^^^^^^^^^^ help: remove this attribute
|
= note: `#[warn(unused_attributes)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> src/parse.rs:1236:5
|
1236 | #[doc(hidden)]
| ^^^^^^^^^^^^^^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
2022-05-09 19:06:46 -07:00
David Tolnay
2e505a8471
Release 1.0.93
2022-05-09 18:45:02 -07:00
David Tolnay
16ef95e38a
Merge pull request #1171 from zakarumych/fix-some
...
Use Some from $crate
2022-05-09 18:44:23 -07:00
Zakarum
2775d48f41
Use Some from $crate
2022-05-09 19:16:48 +04:00
David Tolnay
63f6c9f768
Run miri in stricter miri-strict-provenance mode
2022-05-06 04:01:35 -07:00
David Tolnay
ca511d1ec8
Update test suite to nightly-2022-05-05
2022-05-04 20:10:41 -07:00
David Tolnay
fc09072fa9
Update test suite to nightly-2022-05-02
2022-05-01 20:40:14 -07:00
David Tolnay
995144555b
Resolve type_repetition_in_bounds clippy lint
...
error: this type has already been used as a bound predicate
--> src/punctuated.rs:815:5
|
815 | I: DoubleEndedIterator<Item = &'a T> + ExactSizeIterator<Item = &'a T> + Clone,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::type-repetition-in-bounds` implied by `-D clippy::pedantic`
= help: consider combining the bounds: `I: DoubleEndedIterator<Item = &'a T> + ExactSizeIterator<Item = &'a T> + Clone`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds
error: this type has already been used as a bound predicate
--> src/punctuated.rs:898:5
|
898 | I: DoubleEndedIterator<Item = &'a mut T> + ExactSizeIterator<Item = &'a mut T>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider combining the bounds: `I: DoubleEndedIterator<Item = &'a mut T> + ExactSizeIterator<Item = &'a mut T>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds
2022-04-30 20:42:39 -07:00