Skip to content

Commit 6da5a47

Browse files
committed
---
yaml --- r: 232669 b: refs/heads/try c: b61fdde h: refs/heads/master i: 232667: 65721ba v: v3
1 parent d169940 commit 6da5a47

Some content is hidden

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

107 files changed

+1085
-1126
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: edeb4f1c86cbf6af8ef9874d4b3af50f721ea1b8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 797d0ba59c3d11a61bdfca52b79d511580309713
4+
refs/heads/try: b61fddebb09f33c52cf97f66c797f8d5401096ec
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/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::FkClosure
194+
visit::FkFnBlock
195195
};
196196
let method = |_, ident, sig: &'a ast::MethodSig, vis, _, _| {
197197
visit::FkMethod(ident, sig, vis)

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

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

1515
use metadata::inline::InlinedItem;
1616
use metadata::inline::InlinedItem as II;
17-
use middle::def_id::DefId;
1817
use syntax::abi;
1918
use syntax::ast::*;
2019
use syntax::ast_util;
@@ -379,7 +378,7 @@ impl<'ast> Map<'ast> {
379378
match self.find_entry(parent) {
380379
Some(RootInlinedParent(&InlinedParent {ii: II::TraitItem(did, _), ..})) => did,
381380
Some(RootInlinedParent(&InlinedParent {ii: II::ImplItem(did, _), ..})) => did,
382-
_ => DefId::local(parent)
381+
_ => ast_util::local_def(parent)
383382
}
384383
}
385384

@@ -592,7 +591,7 @@ impl<'ast> Map<'ast> {
592591
}
593592

594593
pub fn def_id_span(&self, def_id: DefId, fallback: Span) -> Span {
595-
if def_id.is_local() {
594+
if def_id.krate == LOCAL_CRATE {
596595
self.opt_span(def_id.node).unwrap_or(fallback)
597596
} else {
598597
fallback

branches/try/src/librustc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ pub mod middle {
118118
pub mod dataflow;
119119
pub mod dead;
120120
pub mod def;
121-
pub mod def_id;
122121
pub mod dependency_format;
123122
pub mod effect;
124123
pub mod entry;

0 commit comments

Comments
 (0)