Skip to content

Rollup of 6 pull requests #30782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 325 commits into from
Jan 9, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
325 commits
Select commit Hold shift + click to select a range
a3d81c6
update valgrind suppressions
tamird Dec 13, 2015
3150ddd
Auto merge of #30558 - jonas-schievink:delete-ast, r=nrc
bors Dec 25, 2015
0cf5083
Fix link that is currently broken due to bad markup
fhartwig Dec 25, 2015
0fcf471
Fix links in docs for std::io
fhartwig Dec 25, 2015
1fe2a77
Fix some links in str docs
fhartwig Dec 26, 2015
7b68b5f
Also fix MIRification of unit enum variants
nagisa Dec 26, 2015
d6d949a
book: Fix typo
salty-horse Dec 26, 2015
eaa94c5
Fix links in char docs
fhartwig Dec 26, 2015
0c7c94e
Auto merge of #30562 - nagisa:mir-unit-enums, r=luqmana
bors Dec 26, 2015
2ced149
Auto merge of #30566 - salty-horse:doc_typo, r=apasel422
bors Dec 27, 2015
68c0f02
Change the typo 'that' to 'than' in the book error-handling chapter.
jswalden Dec 27, 2015
575f690
Fix `auto_ref()` for fat pointers
dotdash Dec 27, 2015
ded10f4
Auto merge of #30575 - jswalden:error-handling-typo, r=apasel422
bors Dec 27, 2015
efc4575
rewrite the method-receiver matching code
Dec 27, 2015
c00b5dc
remove hack in region inference
Dec 27, 2015
b4707eb
Auto merge of #30582 - arielb1:self-test, r=eddyb
bors Dec 27, 2015
0e9f6ec
Auto merge of #30579 - dotdash:30478, r=arielb1
bors Dec 28, 2015
3989f65
Auto merge of #30547 - mmcco:cfg, r=sanxiyn
bors Dec 28, 2015
8975307
Auto merge of #30570 - fhartwig:dead-doc-links, r=steveklabnik
bors Dec 28, 2015
b2c3703
Rename ExplicitSelfCategory's variants and stop re-exporting them.
Ms2ger Dec 28, 2015
e7cab13
[MIR] Fix setting discriminant for unit enums
nagisa Dec 28, 2015
27a1834
Auto merge of #30588 - nagisa:mir-unit-enums-again, r=eddyb
bors Dec 28, 2015
fa2a741
Use a more efficient encoding for opaque data in RBML.
michaelwoerister Dec 25, 2015
34dc0e0
Link with ld.gold by default
brson Aug 8, 2015
e137c2a
[MIR] Translate ConstVal::Function
nagisa Dec 28, 2015
9007d63
Auto merge of #30548 - mmcco:linux-syscall, r=brson
bors Dec 28, 2015
9000ecf
Rewrite MIR graphviz printing and improve MIR debug printing.
solson Dec 19, 2015
e69713d
Add comments and simplify MIR graphviz code.
solson Dec 19, 2015
992feab
Add a hint when given --extern with an indeterminate type
emberian Dec 29, 2015
e27cbef
Fix warnings when compiling stdlib with --test
fhahn Dec 18, 2015
0c6c34d
Remove "Learn Rust" from TRPL.
steveklabnik Dec 28, 2015
d6275b3
Correct the documentation of debug_assert_eq
steveklabnik Dec 29, 2015
43ab6c7
AsRef and related conversions for CString
arcnmx Dec 29, 2015
feab2ae
Implement `as` casting (Misc cast kind)
nagisa Nov 5, 2015
8e127ee
Rollup merge of #30253 - Manishearth:diag-401-improve, r=steveklabnik
steveklabnik Dec 29, 2015
2493fbf
Rollup merge of #30390 - mitaa:patch-1, r=steveklabnik
steveklabnik Dec 29, 2015
ccaa7e5
Rollup merge of #30405 - durka:patch-12, r=steveklabnik
steveklabnik Dec 29, 2015
bfa36c9
Rollup merge of #30549 - mitaa:doc_dstruct, r=brson
steveklabnik Dec 29, 2015
9ef4030
Rollup merge of #30603 - cmr:extern-failure-error-message, r=Manishearth
steveklabnik Dec 29, 2015
5a02d22
Rollup merge of #30610 - steveklabnik:gh30600, r=sfackler
steveklabnik Dec 29, 2015
e8e6492
book: Replace "an &mut" with "a mut". Fixes #30568
salty-horse Dec 29, 2015
f88c808
Process candidates for match in the same order as written in the source.
luqmana Dec 29, 2015
c1035b3
Auto merge of #30619 - steveklabnik:rollup, r=steveklabnik
bors Dec 29, 2015
6e2a64b
Auto merge of #29974 - brson:gold, r=alexcrichton
bors Dec 30, 2015
253a1ce
Structured diagnostics
nrc Dec 18, 2015
95dc7ef
use structured errors
nrc Dec 20, 2015
aaa02b3
Refactoring
nrc Dec 23, 2015
04d9729
Rebasing and review comments
nrc Dec 23, 2015
4b605e4
Use longer names for MIR variable names.
solson Dec 30, 2015
31578f5
Fix MIR var names and keep them in sync.
solson Dec 30, 2015
b652774
Fix argument indices in MIR for closures.
solson Dec 30, 2015
a06bb97
Auto merge of #30458 - fhahn:fix-warnings-tests-stdlib, r=sanxiyn
bors Dec 30, 2015
6d388da
doc: add some links for io::stdio
tshepang Dec 24, 2015
a4da9ac
doc: add graves
tshepang Dec 30, 2015
176ee34
Auto merge of #30542 - nrc:errs-base, r=nagisa
bors Dec 30, 2015
f8b6134
Refactor MIR building for arguments.
solson Dec 30, 2015
85fb3b6
Auto merge of #30526 - Ms2ger:PathParameters, r=brson
bors Dec 30, 2015
d1f854a
Rollup merge of #30373 - ChrisBuchholz:master, r=steveklabnik
steveklabnik Dec 30, 2015
f37e69e
Rollup merge of #30502 - Luke-Nukem:master, r=steveklabnik
steveklabnik Dec 30, 2015
8e98120
Rollup merge of #30511 - defyrlt:issue_30507, r=steveklabnik
steveklabnik Dec 30, 2015
9579a08
Rollup merge of #30546 - tshepang:add-links, r=steveklabnik
steveklabnik Dec 30, 2015
31edbad
Rollup merge of #30556 - nodakai:patch-1, r=brson
steveklabnik Dec 30, 2015
a73df6b
Rollup merge of #30620 - salty-horse:an_mut, r=brson
steveklabnik Dec 30, 2015
66a12f5
Custom help message for people trying to make macro public
est31 Dec 28, 2015
f4eb44e
whitespace after colon, not before
est31 Dec 29, 2015
1bbcceb
Move pub-macro-rules.rs test to parse-fail directory
est31 Dec 29, 2015
94434f1
Move pub-{item,methd}-macro.rs to the parse-fail subdir as well
est31 Dec 29, 2015
40a9481
Limit line length to below 100 chars
est31 Dec 30, 2015
efb5a9a
Auto merge of #30640 - steveklabnik:rollup, r=steveklabnik
bors Dec 30, 2015
8a83409
Use built-in comparisons for range matching in MIR.
solson Dec 30, 2015
78526fc
Add test for MIR range matching.
solson Dec 30, 2015
f813b06
Fixes #30521 and #30627 by adding new snapshots
Dec 30, 2015
2cff12e
Small refactoring to make this code more clear
steveklabnik Dec 28, 2015
7097baf
doc: fix typo
tshepang Dec 30, 2015
2a7b683
doc: fix grammar
tshepang Dec 30, 2015
c779e7b
doc: missed these in a4da9ac
tshepang Dec 30, 2015
682cfc5
Auto merge of #30467 - shahn:master, r=brson
bors Dec 30, 2015
0bd29f8
Merge pull request #30643 from dhuseby/snaps_2015-12-18-3391630
Dec 30, 2015
2370d46
Auto merge of #30375 - aaronkeen:issue_28777, r=eddyb
bors Dec 30, 2015
5892852
Auto merge of #30585 - Ms2ger:ExplicitSelfCategory, r=brson
bors Dec 31, 2015
9023c65
Cut out a bunch of Result and panictry! boilerplate from libsyntax.
nrc Dec 30, 2015
19a351c
Auto merge of #30586 - nagisa:mir-cast, r=arielb1
bors Dec 31, 2015
f73c0a8
Auto merge of #30598 - est31:macro_export_help_note, r=Manishearth
bors Dec 31, 2015
7f3201d
Auto merge of #30641 - tsion:match-range, r=eddyb
bors Dec 31, 2015
8aee582
Auto merge of #30593 - steveklabnik:small_rc_refactoring, r=Gankro
bors Dec 31, 2015
e3c8994
Forward attributes of translated function/closure to trans_fn/trans_c…
michaelwoerister Dec 31, 2015
3b6a851
Auto merge of #30644 - tshepang:typo, r=steveklabnik
bors Dec 31, 2015
ff93fc8
Deactivate one test in mir_trans_calls.rs since it fails now that it …
michaelwoerister Dec 31, 2015
ad3371a
Rollup merge of #30365 - tamird:update-valgrind, r=pnkfelix
nagisa Dec 31, 2015
23d24ff
Rollup merge of #30565 - michaelwoerister:opaque_encoder, r=brson
nagisa Dec 31, 2015
1aa4abd
Rollup merge of #30590 - nagisa:mir-constval-function, r=luqmana
nagisa Dec 31, 2015
7448f48
Rollup merge of #30630 - tsion:mir-closure-args, r=nagisa
nagisa Dec 31, 2015
53cd573
Auto merge of #30660 - nagisa:rollup, r=steveklabnik
bors Dec 31, 2015
7d95433
Auto merge of #28469 - DenisKolodin:master, r=steveklabnik
bors Dec 31, 2015
965556d
impl From<&CStr> for CString
arcnmx Dec 31, 2015
53878e7
CStr impl stability
arcnmx Dec 31, 2015
c9fd3d4
Make `LinkedList` and its read-only iterators covariant
apasel422 Dec 31, 2015
b9075d6
Auto merge of #30616 - arcnmx:cstr-asref, r=aturon
bors Dec 31, 2015
8c897ee
Avoid adding drops for types w/ no dtor in MIR construction
wesleywiser Dec 31, 2015
9c53c92
Auto merge of #30645 - tshepang:grammar, r=steveklabnik
bors Dec 31, 2015
d5c8f62
Update copyright date
panzarino Jan 1, 2016
bfb4212
Auto merge of #30648 - tshepang:missing-graves, r=steveklabnik
bors Jan 1, 2016
9a7e232
Added comment in which direction operation happens
emoon Jan 1, 2016
f962432
In the middle of the implementation
ubsan Jan 1, 2016
add7410
Fix equality checks in matches
nagisa Dec 30, 2015
88e819f
Auto merge of #30663 - apasel422:ll, r=bluss
bors Jan 1, 2016
5446139
Auto merge of #30670 - emoon:fs-copy-comment, r=steveklabnik
bors Jan 1, 2016
335298e
Show similar trait implementations if no matching impl is found
fhahn Nov 20, 2015
c921abf
Stabilise f32::to_{degrees,radians} to match f64
nagisa Jan 1, 2016
d4b67cd
Auto merge of #30672 - nagisa:to-degrad-stab, r=sfackler
bors Jan 1, 2016
55955f5
Add E0463 error explanation
GuillaumeGomez Dec 8, 2015
7f36a18
Added platform notes to std::fs public functions.
nathansizemore Nov 10, 2015
66e842b
Links and punctionaction fixes.
nathansizemore Nov 10, 2015
3e9d5fe
Adjusted heading and created dedicated section in std::io docs
nathansizemore Dec 1, 2015
877d55c
Grammar fixes
jimmantooth Jan 2, 2016
56343cd
Add 'mut' to temporary vars in MIR graphviz output.
solson Jan 2, 2016
44f0208
Auto merge of #30675 - jimmantooth:master, r=apasel422
bors Jan 2, 2016
4744472
Auto merge of #30264 - GuillaumeGomez:patch-5, r=Manishearth
bors Jan 2, 2016
2c52cb4
Limit displaying relevant trait impls to 4
fhahn Nov 28, 2015
6093ea8
Add more tests
fhahn Nov 28, 2015
ba24fbd
Manually check trait implementations
fhahn Dec 17, 2015
25e4389
Use for_each_impl
fhahn Dec 28, 2015
8b398ed
Fix off-by-one in String::remove
diwic Jan 2, 2016
cd3aa31
Finish test implementation
ubsan Jan 2, 2016
a8d6070
Refactor candidate selection
fhahn Jan 2, 2016
402259d
Take out Op<T>/OpAssign<T> for Wrapping<T>
ubsan Jan 2, 2016
4dee31c
Rustdoc - Specify max-image size
wesleywiser Jan 3, 2016
e5a846e
Correct formatting use of tab instead of spaces
lawrencewoodman Jan 3, 2016
cae9267
Auto merge of #29949 - fhahn:issue-21659-show-relevant-trait-impls, r…
bors Jan 3, 2016
8f11a9e
Auto merge of #30677 - diwic:master, r=bluss
bors Jan 3, 2016
6e68cdf
Add test for "malformed macro lhs" and change back span_bug to span_f…
GuillaumeGomez Jan 4, 2016
99e59de
Auto merge of #29732 - nathansizemore:master, r=steveklabnik
bors Jan 4, 2016
191ff2d
Auto merge of #30651 - nagisa:mir-fix-equality-checks, r=eddyb
bors Jan 4, 2016
0c3d6b4
Add missing use statements
lawrencewoodman Jan 4, 2016
15d32ff
Feature-gate defaulted type parameters outside of types.
nikomatsakis Dec 15, 2015
543bb03
Auto merge of #30690 - LawrenceWoodman:patch-2, r=steveklabnik
bors Jan 4, 2016
b622891
Auto merge of #30553 - luqmana:mir-match-arm-guards, r=nikomatsakis
bors Jan 4, 2016
ff3ebfa
Mention that Sync/Send are automatically derived
steveklabnik Jan 4, 2016
33f3c52
Make float parsing "." return Err
Jan 3, 2016
6c8dd52
Add mention of warnings lint group to help message
athaeryn Jan 4, 2016
5e8cb38
Auto merge of #30523 - ubsan:wrapping_op_assign, r=eddyb
bors Jan 4, 2016
723ead6
Mention that structs can contain &mut Ts
steveklabnik Jan 4, 2016
badc23b
Auto merge of #30602 - tsion:mir-graphviz-display, r=nikomatsakis
bors Jan 4, 2016
ae96ce3
doc: these examples do not need Copy and Clone traits
tshepang Jan 4, 2016
41611ba
Auto merge of #30661 - michaelwoerister:trans_fn_attrs, r=nrc
bors Jan 4, 2016
661976c
Add a human-readable textual form for MIR.
solson Dec 30, 2015
5a0c1b3
Print BasicBlock names in lowercase.
solson Dec 30, 2015
9db76f3
Use fmt::Result instead of Result<(), Error>.
solson Jan 1, 2016
5223544
Pretty-print aggregates more prettily in MIR.
solson Jan 1, 2016
6a33221
Improve pretty-printing of references in MIR.
solson Jan 1, 2016
19a50e4
Pretty-print static lvalues in MIR as just their path.
solson Jan 2, 2016
c9a7171
Pretty-print ReturnPointer as 'return' in MIR.
solson Jan 2, 2016
080994a
Add 'mut' to MIR temp variable debug output.
solson Jan 2, 2016
d5e2290
Auto merge of #30681 - Toby-S:master, r=bluss
bors Jan 4, 2016
e2d6494
Auto merge of #30707 - tsion:mir-text, r=nikomatsakis
bors Jan 5, 2016
803c3e2
Auto merge of #30595 - steveklabnik:remove_learn_rust, r=gankro
bors Jan 5, 2016
dbacacd
Auto merge of #30708 - GuillaumeGomez:malformed_macro, r=sanxiyn
bors Jan 5, 2016
3a6c6c8
Auto merge of #30680 - wesleywiser:rustdoc_image_max_width, r=stevekl…
bors Jan 5, 2016
5253294
Auto merge of #30702 - tshepang:derives-not-needed, r=steveklabnik
bors Jan 5, 2016
bd58fd8
Auto merge of #30665 - zachpanz88:new-year, r=nrc
bors Jan 5, 2016
cd4bf34
Fix the spelling of "hexadecimal"
kraai Jan 5, 2016
011a23e
Update MinGW details in the README
steveklabnik Jan 4, 2016
04b6c49
[MIR] Handle overloaded call expressions during HIR -> HAIR translation.
michaelwoerister Jan 4, 2016
7d35719
[MIR] Implement calling of closures and add missing monomorphization …
michaelwoerister Jan 5, 2016
e281509
[MIR] Add test case for translation of closure calls.
michaelwoerister Jan 5, 2016
7d6d39b
Clarify What LIFO Is
BChip Jan 5, 2016
535282b
Cancel an error before it panics
nrc Jan 5, 2016
27d6b9d
improve visibility of future-incompatibilities (mildly, at least)
nikomatsakis Jan 5, 2016
6dd3f61
convert from hard error to future-incompatible lint
nikomatsakis Jan 5, 2016
ce6baa7
Clarify how Rust treats backslashes at end of line in string literals
tbu- Jan 5, 2016
c785802
Boring whitespace cleanup.
solson Jan 5, 2016
4ea84fc
Remove irrelevant comment
huonw Jan 6, 2016
dc1f442
Auto merge of #30492 - wesleywiser:fix_extra_drops, r=pnkfelix
bors Jan 6, 2016
c77cd48
Introduce the DepGraph and DepTracking map abstractions,
nikomatsakis Jan 5, 2016
aa26586
Add DepGraph to tcx.
nikomatsakis Jan 5, 2016
005fa14
Annotate the compiler with information about what it is doing when.
nikomatsakis Dec 22, 2015
75c4f39
Strip the trait-def phase from collect, which has no function.
nikomatsakis Dec 22, 2015
5d9dd7c
Refactor overlap checker so that it walks the HIR instead of poking into
nikomatsakis Dec 22, 2015
d48f48f
Refactor compiler to make use of dep-tracking-maps. Also, in cases where
nikomatsakis Dec 22, 2015
8b22ed8
Add assert-dep-graph testing mechanism and tests
nikomatsakis Dec 22, 2015
11c671b
Workaround stage0 bug
nikomatsakis Dec 22, 2015
b2903d8
Improve pretty-printing for ConstVals in MIR.
solson Jan 6, 2016
14e1e2a
Fix a breaking change in #30523
ubsan Jan 6, 2016
5038d4e
std::cmp::max -> max
athaeryn Jan 6, 2016
7312e0a
Auto merge of #30692 - michaelwoerister:mir-overloaded-fn-calls, r=ni…
bors Jan 6, 2016
eb30c66
heap::deallocate expects a *mut u8 but here a *mut T is given. The fi…
Jan 6, 2016
893a66d
Split Call into Call and DivergingCall
nagisa Dec 14, 2015
6f18b55
Generate DivergingCall terminator
nagisa Dec 15, 2015
ecf4d0e
Add Resume Terminator which corresponds to resume
nagisa Dec 15, 2015
5b34690
Remove the Panic block terminator
nagisa Dec 18, 2015
4e86dcd
Remove diverge terminator
nagisa Dec 18, 2015
a1e1398
Have a cached unreachable block inside MIR state
nagisa Dec 19, 2015
924bb1e
Refine call terminator translation
nagisa Dec 19, 2015
20ec53a
Fix ReturnPointer generation for void return types
nagisa Dec 19, 2015
cef6aee
Don’t generate landing-pads if -Z no-landing-pads
nagisa Dec 20, 2015
5010703
Add tests
nagisa Dec 21, 2015
d1c644c
Merge Call and DivergingCall diffs into CallKind
nagisa Dec 21, 2015
f981424
panic/panic_bounds_check to destructure tys
nagisa Dec 22, 2015
36b3951
Create personality slot when translating Resume
nagisa Jan 1, 2016
d5ac1a1
Auto merge of #30481 - nagisa:mir-calls-2, r=nikomatsakis
bors Jan 6, 2016
a9d7e36
Fix numerous typos, renamings, and minor nits raised by mw.
nikomatsakis Jan 6, 2016
21b025f
Auto merge of #30733 - ubsan:wrapping_op_assign, r=eddyb
bors Jan 6, 2016
0c8ee65
Use `memoized` helper more often.
nikomatsakis Jan 6, 2016
b043ded
finish enabling -C rpath by default in rustc. See #30353.
pnkfelix Jan 6, 2016
876de6e
Fix tidy errors
nikomatsakis Jan 6, 2016
93996b1
Fix dependency graph test cases to have correct commments and use -Z …
nikomatsakis Jan 6, 2016
e8c337b
Auto merge of #30532 - nikomatsakis:cross-item-dependencies, r=mw
bors Jan 6, 2016
b7fa37d
Fix pretty-printing for empty tuples in MIR.
solson Jan 6, 2016
5daa753
Auto merge of #30654 - nrc:panictry, r=brson
bors Jan 6, 2016
9039085
Reenable MIR test
nagisa Jan 6, 2016
7205d6b
Fix error in example code
andgra2 Jan 6, 2016
4c90f5d
Rollup merge of #30683 - LawrenceWoodman:patch-1, r=steveklabnik
steveklabnik Jan 6, 2016
9239b64
Rollup merge of #30698 - steveklabnik:gh29649, r=brson
steveklabnik Jan 6, 2016
ba41e3c
Rollup merge of #30699 - steveklabnik:gh30254, r=apasel422
steveklabnik Jan 6, 2016
48e9d19
Rollup merge of #30700 - steveklabnik:gh28581, r=brson
steveklabnik Jan 6, 2016
23c88ff
Rollup merge of #30716 - kraai:fix-hexicdecimal, r=apasel422
steveklabnik Jan 6, 2016
eb41060
Rollup merge of #30720 - BChip:patch-1, r=steveklabnik
steveklabnik Jan 6, 2016
fcb1ccf
Rollup merge of #30727 - tbu-:pr_doc_escaped_newline, r=steveklabnik
steveklabnik Jan 6, 2016
d91518b
Rollup merge of #30729 - huonw:delete-bad-comment, r=sanxiyn
steveklabnik Jan 6, 2016
e78de13
Rollup merge of #30735 - jonastepe:nomicon_vec_dealloc_pointer_type, …
steveklabnik Jan 6, 2016
6cca775
Rollup merge of #30749 - andgra2:patch-1, r=steveklabnik
steveklabnik Jan 6, 2016
43403b4
Auto merge of #30750 - steveklabnik:rollup, r=steveklabnik
bors Jan 6, 2016
022c9c7
Add std::panic::propagate
sfackler Dec 25, 2015
e22ceea
Explain surprising new syntax appearing in example code
datagrok Jan 6, 2016
3557e69
Link to references section when they first appear
datagrok Jan 7, 2016
936678a
Link to section on references when we use the term prior to defining it
datagrok Jan 7, 2016
3a6dbb3
Be consistent about what is a "chapter" versus a "section"
datagrok Jan 7, 2016
f9808ea
Create a visitor for `TypeFoldable`s and use it to implement RegionEs…
jseyfried Nov 18, 2015
76021d8
Refactor away extension traits RegionEscape and HasTypeFlags
jseyfried Dec 18, 2015
6327563
Rename fold_subitems_with to super_fold_with
jseyfried Jan 6, 2016
3ed6e9e
Auto merge of #30557 - sfackler:panic-propagate, r=aturon
bors Jan 7, 2016
4406717
Auto merge of #30723 - nrc:macro-err-bug, r=Manishearth
bors Jan 7, 2016
91b27ec
Auto merge of #30724 - nikomatsakis:feature-gate-defaulted-type-param…
bors Jan 7, 2016
2edb1d9
Auto merge of #30728 - athaeryn:mention-warning-lint-group, r=Manishe…
bors Jan 7, 2016
8f51188
Factor mir::[Mut]Visitor implementations into a common macro.
michaelwoerister Jan 7, 2016
a073100
len needs to be prefixed by self for this to work. The final code in …
Jan 7, 2016
1e83503
Auto merge of #30317 - jseyfried:refactor_type_folder, r=nikomatsakis
bors Jan 7, 2016
03f4950
Auto merge of #30734 - tsion:mir-pretty, r=nikomatsakis
bors Jan 7, 2016
cdbf2d6
Move os_str docs to OsString in order to be visible in HTML (fixes #3…
birkenfeld Jan 7, 2016
25d1f4b
Auto merge of #30739 - pnkfelix:finish-enable-rpath-by-default, r=dot…
bors Jan 7, 2016
05874de
Link Nomicon in PhantomData's docs
steveklabnik Jan 7, 2016
fcc3563
Remove extraneous [], replace accidental removed link to heap section
datagrok Jan 7, 2016
5c92010
Auto merge of #30748 - tsion:mir-tuple-fix, r=eddyb
bors Jan 7, 2016
64a8ffe
Auto merge of #30757 - michaelwoerister:mir-visitor-cleanup, r=jroesch
bors Jan 7, 2016
c518664
Rollup merge of #30584 - GuillaumeGomez:new_handles, r=pnkfelix
steveklabnik Jan 8, 2016
27df1ec
Rollup merge of #30747 - nagisa:mir-reenable-test, r=nikomatsakis
steveklabnik Jan 8, 2016
0b5f794
Rollup merge of #30755 - datagrok:master, r=steveklabnik
steveklabnik Jan 8, 2016
3836578
Rollup merge of #30758 - birkenfeld:fix-30743, r=steveklabnik
steveklabnik Jan 8, 2016
2908385
Rollup merge of #30760 - jonastepe:nomicon_vec_insert_remove_len, r=a…
steveklabnik Jan 8, 2016
926eb83
Rollup merge of #30769 - steveklabnik:gh30069, r=apasel422
steveklabnik Jan 8, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
url = https://github.com/rust-lang/jemalloc.git
[submodule "src/rust-installer"]
path = src/rust-installer
url = https://github.com/rust-lang/rust-installer
url = https://github.com/rust-lang/rust-installer.git
[submodule "src/liblibc"]
path = src/liblibc
url = https://github.com/rust-lang/libc
url = https://github.com/rust-lang-nursery/libc.git
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ are:
* Don't be afraid to ask! The Rust community is friendly and helpful.

[gdfrustc]: http://manishearth.github.io/rust-internals-docs/rustc/
[gsearchdocs]: https://www.google.de/search?q=site:doc.rust-lang.org+your+query+here
[gsearchdocs]: https://www.google.com/search?q=site:doc.rust-lang.org+your+query+here
[rif]: http://internals.rust-lang.org
[rr]: https://doc.rust-lang.org/book/README.html
[tlgba]: http://tomlee.co/2014/04/03/a-more-detailed-tour-of-the-rust-compiler/
Expand Down
2 changes: 1 addition & 1 deletion COPYRIGHT
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ terms.

Longer version:

The Rust Project is copyright 2015, The Rust Project
The Rust Project is copyright 2016, The Rust Project
Developers (given in the file AUTHORS.txt).

Licensed under the Apache License, Version 2.0
Expand Down
2 changes: 1 addition & 1 deletion LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015 The Rust Project Developers
Copyright (c) 2016 The Rust Project Developers

Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
Expand Down
44 changes: 30 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ Read ["Installing Rust"] from [The Book].

### Building on Windows

There are two prominent ABIs in use on Windows: the native (MSVC) ABI used by
Visual Studio, and the GNU ABI used by the GCC toolchain. Which version of Rust
you need depends largely on what C/C++ libraries you want to interoperate with:
for interop with software produced by Visual Studio use the MSVC build of Rust;
for interop with GNU software built using the MinGW/MSYS2 toolchain use the GNU
build.


#### MinGW

[MSYS2](http://msys2.github.io/) can be used to easily build Rust on Windows:

1. Grab the latest MSYS2 installer and go through the installer.
Expand All @@ -63,12 +73,15 @@ Read ["Installing Rust"] from [The Book].
```sh
# Update package mirrors (may be needed if you have a fresh install of MSYS2)
$ pacman -Sy pacman-mirrors
```

# Choose one based on platform:
# *** see the note below ***
$ pacman -S mingw-w64-i686-toolchain
$ pacman -S mingw-w64-x86_64-toolchain
Download [MinGW from
here](http://mingw-w64.org/doku.php/download/mingw-builds), and choose the
`threads=win32,exceptions=dwarf/seh` flavor when installing. After installing,
add its `bin` directory to your `PATH`. This is due to #28260, in the future,
installing from pacman should be just fine.

```
# Make git available in MSYS2 (if not already available on path)
$ pacman -S git

Expand All @@ -84,16 +97,19 @@ Read ["Installing Rust"] from [The Book].
$ ./configure
$ make && make install
```
> ***Note:*** gcc versions >= 5 currently have issues building LLVM on Windows
> resulting in a segmentation fault when building Rust. In order to avoid this
> it may be necessary to obtain an earlier version of gcc such as 4.9.x.
> Msys's `pacman` will install the latest version, so for the time being it is
> recommended to skip gcc toolchain installation step above and use [Mingw-Builds]
> project's installer instead. Be sure to add gcc `bin` directory to the path
> before running `configure`.
> For more information on this see issue #28260.

[Mingw-Builds]: http://sourceforge.net/projects/mingw-w64/

#### MSVC

MSVC builds of Rust additionally require an installation of Visual Studio 2013
(or later) so `rustc` can use its linker. Make sure to check the “C++ tools”
option. In addition, `cmake` needs to be installed to build LLVM.

With these dependencies installed, the build takes two steps:

```sh
$ ./configure
$ make && make install
```

## Building Documentation

Expand Down
19 changes: 11 additions & 8 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -521,15 +521,18 @@ then
# if configure is running in an interactive bash shell. /usr/bin/env
# exists *everywhere*.
BIN_TO_PROBE="$SHELL"
if [ -z "$BIN_TO_PROBE" -a -e "/usr/bin/env" ]; then
BIN_TO_PROBE="/usr/bin/env"
if [ ! -r "$BIN_TO_PROBE" ]; then
if [ -r "/usr/bin/env" ]; then
BIN_TO_PROBE="/usr/bin/env"
else
warn "Cannot check if the userland is i686 or x86_64"
fi
fi
file -L "$BIN_TO_PROBE" | grep -q "x86[_-]64"
if [ $? != 0 ]; then
msg "i686 userland on x86_64 Linux kernel"
CFG_CPUTYPE=i686
fi
if [ -n "$BIN_TO_PROBE" ]; then
file -L "$BIN_TO_PROBE" | grep -q "x86[_-]64"
if [ $? != 0 ]; then
CFG_CPUTYPE=i686
fi
fi
fi


Expand Down
2 changes: 1 addition & 1 deletion mk/main.mk
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ endif
ifdef TRACE
CFG_RUSTC_FLAGS += -Z trace
endif
ifdef CFG_ENABLE_RPATH
ifndef CFG_DISABLE_RPATH
CFG_RUSTC_FLAGS += -C rpath
endif

Expand Down
10 changes: 7 additions & 3 deletions mk/platform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,18 @@ define DEF_GOOD_VALGRIND
ifeq ($(OSTYPE_$(1)),unknown-linux-gnu)
GOOD_VALGRIND_$(1) = 1
endif
ifneq (,$(filter $(OSTYPE_$(1)),darwin freebsd))
ifeq (HOST_$(1),x86_64)
ifneq (,$(filter $(OSTYPE_$(1)),apple-darwin freebsd))
ifeq ($(HOST_$(1)),x86_64)
GOOD_VALGRIND_$(1) = 1
endif
endif
ifdef GOOD_VALGRIND_$(t)
$$(info cfg: have good valgrind for $(t))
else
$$(info cfg: no good valgrind for $(t))
endif
endef
$(foreach t,$(CFG_TARGET),$(eval $(call DEF_GOOD_VALGRIND,$(t))))
$(foreach t,$(CFG_TARGET),$(info cfg: good valgrind for $(t) is $(GOOD_VALGRIND_$(t))))

ifneq ($(findstring linux,$(CFG_OSTYPE)),)
ifdef CFG_PERF
Expand Down
14 changes: 4 additions & 10 deletions src/doc/book/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,25 @@ Even then, Rust still allows precise control like a low-level language would.

[rust]: https://www.rust-lang.org

“The Rust Programming Language” is split into eight sections. This introduction
“The Rust Programming Language” is split into chapters. This introduction
is the first. After this:

* [Getting started][gs] - Set up your computer for Rust development.
* [Learn Rust][lr] - Learn Rust programming through small projects.
* [Effective Rust][er] - Higher-level concepts for writing excellent Rust code.
* [Tutorial: Guessing Game][gg] - Learn some Rust with a small project.
* [Syntax and Semantics][ss] - Each bit of Rust, broken down into small chunks.
* [Effective Rust][er] - Higher-level concepts for writing excellent Rust code.
* [Nightly Rust][nr] - Cutting-edge features that aren’t in stable builds yet.
* [Glossary][gl] - A reference of terms used in the book.
* [Bibliography][bi] - Background on Rust's influences, papers about Rust.

[gs]: getting-started.html
[lr]: learn-rust.html
[gg]: guessing-game.html
[er]: effective-rust.html
[ss]: syntax-and-semantics.html
[nr]: nightly-rust.html
[gl]: glossary.html
[bi]: bibliography.html

After reading this introduction, you’ll want to dive into either ‘Learn Rust’ or
‘Syntax and Semantics’, depending on your preference: ‘Learn Rust’ if you want
to dive in with a project, or ‘Syntax and Semantics’ if you prefer to start
small, and learn a single concept thoroughly before moving onto the next.
Copious cross-linking connects these parts together.

### Contributing

The source files from which this book is generated can be found on
Expand Down
5 changes: 1 addition & 4 deletions src/doc/book/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# Summary

* [Getting Started](getting-started.md)
* [Learn Rust](learn-rust.md)
* [Guessing Game](guessing-game.md)
* [Dining Philosophers](dining-philosophers.md)
* [Rust Inside Other Languages](rust-inside-other-languages.md)
* [Tutorial: Guessing Game](guessing-game.md)
* [Syntax and Semantics](syntax-and-semantics.md)
* [Variable Bindings](variable-bindings.md)
* [Functions](functions.md)
Expand Down
4 changes: 2 additions & 2 deletions src/doc/book/choosing-your-guarantees.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,11 @@ With the former, the `RefCell<T>` is wrapping the `Vec<T>`, so the `Vec<T>` in i
mutable. At the same time, there can only be one mutable borrow of the whole `Vec` at a given time.
This means that your code cannot simultaneously work on different elements of the vector from
different `Rc` handles. However, we are able to push and pop from the `Vec<T>` at will. This is
similar to an `&mut Vec<T>` with the borrow checking done at runtime.
similar to a `&mut Vec<T>` with the borrow checking done at runtime.

With the latter, the borrowing is of individual elements, but the overall vector is immutable. Thus,
we can independently borrow separate elements, but we cannot push or pop from the vector. This is
similar to an `&mut [T]`[^3], but, again, the borrow checking is at runtime.
similar to a `&mut [T]`[^3], but, again, the borrow checking is at runtime.

In concurrent programs, we have a similar situation with `Arc<Mutex<T>>`, which provides shared
mutability and ownership.
Expand Down
2 changes: 1 addition & 1 deletion src/doc/book/closures.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ different.

Rust’s implementation of closures is a bit different than other languages. They
are effectively syntax sugar for traits. You’ll want to make sure to have read
the [traits chapter][traits] before this one, as well as the chapter on [trait
the [traits][traits] section before this one, as well as the section on [trait
objects][trait-objects].

[traits]: traits.html
Expand Down
Loading