Skip to content

Commit 45480f1

Browse files
committed
---
yaml --- r: 234986 b: refs/heads/stable c: b1931e4 h: refs/heads/master v: v3
1 parent 797aba3 commit 45480f1

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
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 9a26e49459b4069650dd23e5ba35acd5eb868f2e
32+
refs/heads/stable: b1931e48a01b418b4b1ba6c747f2c99a5b10d96f
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e
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/stable/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/stable/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)