Skip to content

Commit 5fccf03

Browse files
committed
---
yaml --- r: 233670 b: refs/heads/beta c: b74ec4c h: refs/heads/master v: v3
1 parent 1fafbe7 commit 5fccf03

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+1125
-1070
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: f266f12f3066c02cfef6116202e624443f919dff
26+
refs/heads/beta: b74ec4c847388a5d34688186347eb9ebb3d6115b
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 370fe2786109360f7c35b8ba552b83b773dd71d6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/librustc/ast_map/blocks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl<'a> FnLikeNode<'a> {
191191
visit::FkItemFn(p.ident, p.generics, p.unsafety, p.constness, p.abi, p.vis)
192192
};
193193
let closure = |_: ClosureParts| {
194-
visit::FkFnBlock
194+
visit::FkClosure
195195
};
196196
let method = |_, ident, sig: &'a ast::MethodSig, vis, _, _| {
197197
visit::FkMethod(ident, sig, vis)

branches/beta/src/librustc/ast_map/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use self::MapEntry::*;
1414

1515
use metadata::inline::InlinedItem;
1616
use metadata::inline::InlinedItem as II;
17+
use middle::def_id::DefId;
1718
use syntax::abi;
1819
use syntax::ast::*;
1920
use syntax::ast_util;
@@ -378,7 +379,7 @@ impl<'ast> Map<'ast> {
378379
match self.find_entry(parent) {
379380
Some(RootInlinedParent(&InlinedParent {ii: II::TraitItem(did, _), ..})) => did,
380381
Some(RootInlinedParent(&InlinedParent {ii: II::ImplItem(did, _), ..})) => did,
381-
_ => ast_util::local_def(parent)
382+
_ => DefId::local(parent)
382383
}
383384
}
384385

@@ -591,7 +592,7 @@ impl<'ast> Map<'ast> {
591592
}
592593

593594
pub fn def_id_span(&self, def_id: DefId, fallback: Span) -> Span {
594-
if def_id.krate == LOCAL_CRATE {
595+
if def_id.is_local() {
595596
self.opt_span(def_id.node).unwrap_or(fallback)
596597
} else {
597598
fallback

branches/beta/src/librustc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ pub mod middle {
118118
pub mod dataflow;
119119
pub mod dead;
120120
pub mod def;
121+
pub mod def_id;
121122
pub mod dependency_format;
122123
pub mod effect;
123124
pub mod entry;

0 commit comments

Comments
 (0)