Skip to content

Commit 4331880

Browse files
committed
---
yaml --- r: 227915 b: refs/heads/try c: b1931e4 h: refs/heads/master i: 227913: 5858c82 227911: 1468e4b v: v3
1 parent 27a29a1 commit 4331880

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 9a26e49459b4069650dd23e5ba35acd5eb868f2e
4+
refs/heads/try: b1931e48a01b418b4b1ba6c747f2c99a5b10d96f
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
% The Rust Pointer Guide
1+
% The (old) Rust Pointer Guide
22

3-
This content has been removed, with no direct replacement. Rust only
4-
has two built-in pointer types now,
5-
[references](book/references-and-borrowing.html) and [raw
6-
pointers](book/raw-pointers.html). Older Rusts had many more pointer
7-
types, they’re gone now.
3+
This content has moved into
4+
[the Rust Programming Language book](book/pointers.html).

branches/try/src/librustc_lint/builtin.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,8 +1973,13 @@ impl LintPass for UnconditionalRecursion {
19731973
fn_id: ast::NodeId,
19741974
_: ast::Ident,
19751975
id: ast::NodeId) -> bool {
1976-
tcx.def_map.borrow().get(&id)
1977-
.map_or(false, |def| def.def_id() == local_def(fn_id))
1976+
match tcx.map.get(id) {
1977+
ast_map::NodeExpr(&ast::Expr { node: ast::ExprCall(ref callee, _), .. }) => {
1978+
tcx.def_map.borrow().get(&callee.id)
1979+
.map_or(false, |def| def.def_id() == local_def(fn_id))
1980+
}
1981+
_ => false
1982+
}
19781983
}
19791984

19801985
// check if the method call `id` refers to method `method_id`

branches/try/src/test/compile-fail/lint-unconditional-recursion.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,8 @@ impl Baz {
6363
}
6464
}
6565

66+
fn all_fine() {
67+
let _f = all_fine;
68+
}
69+
6670
fn main() {}

0 commit comments

Comments
 (0)