Skip to content

Commit 714ce54

Browse files
committed
---
yaml --- r: 232687 b: refs/heads/try c: 19aadd5 h: refs/heads/master i: 232685: be437f6 232683: f27baf6 232679: 6926085 232671: c042537 v: v3
1 parent fc43663 commit 714ce54

File tree

137 files changed

+2193
-1826
lines changed

Some content is hidden

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

137 files changed

+2193
-1826
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: 6887d8cdabbba06b55c2c27206e10d6f0099eee8
4+
refs/heads/try: 19aadd51a89f8d6f706e1eabd746039a748fa9e6
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/doc/trpl/glossary.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ let z = (8, 2, 6);
3838

3939
In the example above `x` and `y` have arity 2. `z` has arity 3.
4040

41+
### DST (Dynamically Sized Type)
42+
43+
A type without a statically known size or alignment. ([more info][link])
44+
45+
[link]: ../nomicon/exotic-sizes.html#dynamically-sized-types-(dsts)
46+
4147
### Expression
4248

4349
In computer programming, an expression is a combination of values, constants,

branches/try/src/liblibc/lib.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,15 @@ pub mod types {
192192
/// C. Use the unit type `()` or omit the return type instead.
193193
///
194194
/// For LLVM to recognize the void pointer type and by extension
195-
/// functions like malloc(), we need to have it represented as i8* in
196-
/// LLVM bitcode. The enum used here ensures this and prevents misuse
197-
/// of the "raw" type by only having private variants.. We need two
198-
/// variants, because the compiler complains about the repr attribute
199-
/// otherwise.
195+
/// functions like malloc(), we need to have it represented as i8*
196+
/// in LLVM bitcode. The enum used here ensures this. We need two
197+
/// variants, because the compiler complains about the `repr`
198+
/// attribute otherwise.
200199
#[repr(u8)]
201200
pub enum c_void {
201+
#[doc(hidden)]
202202
__variant1,
203+
#[doc(hidden)]
203204
__variant2,
204205
}
205206

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::FkFnBlock
194+
visit::FkClosure
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: 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/try/src/librustc/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,13 @@ pub mod middle {
112112
pub mod check_static_recursion;
113113
pub mod check_loop;
114114
pub mod check_match;
115+
pub mod check_no_asm;
115116
pub mod check_rvalues;
116117
pub mod const_eval;
117118
pub mod dataflow;
118119
pub mod dead;
119120
pub mod def;
121+
pub mod def_id;
120122
pub mod dependency_format;
121123
pub mod effect;
122124
pub mod entry;

0 commit comments

Comments
 (0)