Skip to content

Commit 0986052

Browse files
committed
---
yaml --- r: 233686 b: refs/heads/beta c: 19aadd5 h: refs/heads/master v: v3
1 parent 73cb6a8 commit 0986052

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
@@ -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: 6887d8cdabbba06b55c2c27206e10d6f0099eee8
26+
refs/heads/beta: 19aadd51a89f8d6f706e1eabd746039a748fa9e6
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/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/beta/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/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: 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)