Skip to content

Use passing by-value in gmtime, mktime #6765

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

Closed
wants to merge 332 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
332 commits
Select commit Hold shift + click to select a range
6742f91
Create tuple element accessor traits
brendanzab May 18, 2013
96cb0dc
use n{0..11} instead of _{0..12} for accessor method names
brendanzab May 18, 2013
c1eb539
Use assert_eq! instead of assert!
brendanzab May 18, 2013
5242464
Merge trait and impl macros by using an inner module
brendanzab May 18, 2013
4b13895
Remove trailing whitespaces
May 18, 2013
b6038b7
Return a reference to the tuple elements instead of copying
brendanzab May 18, 2013
eb0e2f4
auto merge of #6591 : bjz/rust/tuple-elements, r=thestinger
bors May 18, 2013
3a323c1
auto merge of #6565 : osaut/rust/futures, r=thestinger
bors May 18, 2013
ce1e211
Adapt the getter macro to implement Clone, Eq and Ord for n-ary tuples
brendanzab May 18, 2013
ee4d11f
Use match instead of intermediate variable
brendanzab May 18, 2013
db453ec
Replace Tuple{2..12} trait with CloneableTuple{2..12} and ImmutableTu…
brendanzab May 18, 2013
d9eec66
Fix Ord implementation to use lexical ordering
brendanzab May 18, 2013
7103c39
Move tuple tests into submodule
brendanzab May 18, 2013
d73f31b
Create Char trait
brendanzab May 18, 2013
efe6564
Code modernisation and cleanup
brendanzab May 18, 2013
f687b9d
Use `///` style doc-comments and add missing headings
brendanzab May 18, 2013
8daa5ec
xfail-fast run-pass/core-rt-smoke
brson May 18, 2013
24c2be3
auto merge of #6597 : bjz/rust/core-char, r=brson
bors May 19, 2013
3ee479f
auto merge of #6577 : brson/rust/io-upstream, r=pcwalton
bors May 19, 2013
9b6b0e1
fix stage0 compile
thestinger May 19, 2013
1789174
minor automated whitespace fixes
thestinger May 19, 2013
ccf6353
auto merge of #6589 : thestinger/rust/iterator, r=thestinger
bors May 19, 2013
d1e091a
Add Ptr::to_option method
brendanzab May 19, 2013
20ef423
reduce the usage of explicit version markers
thestinger May 19, 2013
aa82783
auto merge of #6606 : thestinger/rust/vers, r=brson
bors May 19, 2013
99c7750
auto merge of #6603 : thestinger/rust/whitespace, r=thestinger
bors May 19, 2013
3a11ddb
Correct tuple Ord impl, add Total{Eq,Ord} impls and add some tests.
huonw May 19, 2013
3acf378
auto merge of #6595 : bjz/rust/core-tuple, r=thestinger
bors May 19, 2013
cc57ca0
Use assert_eq! rather than assert! where possible
emberian May 19, 2013
5cbdc53
auto merge of #6601 : cmr/rust/assert_eq, r=Aatch
bors May 19, 2013
9f67169
auto merge of #6106 : thestinger/rust/iter, r=bstrie
bors May 19, 2013
e0b1bdc
Add additional documentation in core::io.
steveklabnik May 19, 2013
a389d86
Add docs for stdin in core::io.
steveklabnik May 19, 2013
929050d
Added note about prelude inclusion.
steveklabnik May 19, 2013
1065a92
Elaborate a bit in the Reader docs regarding stream position.
steveklabnik May 19, 2013
ebdb0de
auto merge of #6620 : steveklabnik/rust/stdin_docs, r=brson
bors May 19, 2013
5877727
Fix trailing whitespace
steveklabnik May 19, 2013
e02716e
Reexport static trait methods on traits in the same module.
thomaslee May 12, 2013
cac97d7
Remove unused variable.
thomaslee May 12, 2013
e3a91f6
Explain an odd conditional check.
thomaslee May 19, 2013
7396f7f
auto merge of #6432 : thomaslee/rust/issue-4202-02, r=catamorphism
bors May 20, 2013
9283dfe
auto merge of #6619 : steveklabnik/rust/stdout_docs, r=thestinger
bors May 20, 2013
b1e8056
Add a better introduction for the io module.
steveklabnik May 20, 2013
e42fcb9
Implement unimplemented const binops
emberian May 19, 2013
b976427
Fix LLVMConst{I,F}Cmp
emberian May 20, 2013
808c5b8
Test fixes, use LLVMConstFCmp in ConstFCmp
emberian May 20, 2013
91d3e7f
Fix wording per feedback
steveklabnik May 20, 2013
06d196a
Removing some warnings from logging.rs
steveklabnik May 20, 2013
cab9249
auto merge of #6625 : cmr/rust/constops, r=Aatch
bors May 20, 2013
dc57d15
Remove more warnings.
steveklabnik May 20, 2013
0b39bc2
auto merge of #6624 : steveklabnik/rust/io_prelude, r=catamorphism
bors May 20, 2013
d3f70b1
Fix many warnings.
steveklabnik May 20, 2013
dcc2879
Add a few 'function's.
steveklabnik May 20, 2013
3a481c0
auto merge of #6627 : steveklabnik/rust/remove_warnings, r=thestinger…
bors May 20, 2013
d019e14
auto merge of #6621 : steveklabnik/rust/expand_reader_docs, r=thestinger
bors May 20, 2013
66319b0
Register snapshots
brson May 20, 2013
ea06407
auto merge of #6629 : steveklabnik/rust/remove_uvio_warnings, r=catam…
bors May 20, 2013
ab46a38
auto merge of #6632 : steveklabnik/rust/remove_more_warnings, r=thest…
bors May 20, 2013
2e6cda2
auto merge of #6635 : brson/rust/snapshot, r=brson
bors May 20, 2013
a9c7d3f
Typo corrected and updated copyright years
May 20, 2013
3f232bc
Add ARC::get method and implements the function from it. Add an examp…
May 20, 2013
09efd47
Remove outdated function transmute_for_stage0
dotdash May 20, 2013
eef03c3
Update to stop unsolicited copying and mark methods as unsafe
brendanzab May 20, 2013
f323b0c
auto merge of #6640 : dotdash/rust/hash_perf, r=bstrie
bors May 20, 2013
17dfebf
Remove legacy_modes
sanxiyn May 20, 2013
eb3f47a
Remove two warnings about unneccesary safe blocks.
steveklabnik May 20, 2013
84233c0
auto merge of #6643 : sanxiyn/rust/legacy-modes, r=bstrie
bors May 20, 2013
b5be7d8
Avoid range checks in HashMap::each()
dotdash May 20, 2013
f3b458b
auto merge of #6644 : steveklabnik/rust/remove_unsafe_warning, r=bstrie
bors May 20, 2013
19dc728
Optimize the lookup of traits containing a given method
dotdash May 20, 2013
15f97ac
Correctly track the source of imports with the same name
alexcrichton May 20, 2013
975f264
refactoring test functions
jbclements May 17, 2013
05ab83e
parser comment
jbclements Apr 29, 2013
b621820
detect unused attrs in one more place, allow parsing to continue for all
jbclements Apr 30, 2013
fc4f304
hygiene infrastructure.
jbclements May 17, 2013
999f692
getting rid of interner_key! macro
jbclements May 7, 2013
b71a1ec
added and rewrote text for 'do' and 'for' loops
jbclements May 3, 2013
26babaa
auto merge of #6559 : jbclements/rust/hygiene-fns-and-cleanup, r=jbcl…
bors May 20, 2013
074799b
Implement a lint mode to detect unnecessary allocations
alexcrichton May 18, 2013
82fa001
Remove all unnecessary allocations (as flagged by lint)
alexcrichton May 19, 2013
7bd4217
Replace all uses of rust-intrinsic ABI with calls to unstable::intrin…
brson May 9, 2013
54eafc0
auto merge of #6639 : osaut/rust/arc-clean, r=brson
bors May 20, 2013
7ffd523
core: Update clone docs
brson May 16, 2013
f03c9bd
core::rt: Rename WorkQueue methods, remove extra push method
brson May 18, 2013
ee06ed2
core::rt: Put a lock on the work queue
brson May 18, 2013
d2a1378
core::rt: Add MessageQueue type
brson May 18, 2013
fa18a86
core::rt: Queues MessageQueue and WorkQueue are cloneable
brson May 18, 2013
b0722c5
core:rt:: Rename LocalServices to Task
brson May 19, 2013
43c6f32
core::rt: Add Local trait
brson May 19, 2013
f59fcd5
core::rt: Store Task as a ~ pointer
brson May 19, 2013
86ba457
rt: Rename rust_initialize_global_state to rust_initialize_rt_tls_key
brson May 19, 2013
97c2fd1
core::rt: Move some TLS functions from local_sched to local_ptr
brson May 19, 2013
71aa6b6
core::rt: Move more TLS functionality into local_ptr
brson May 19, 2013
18fab45
core::rt: Make local_sched a wrapper around Local
brson May 19, 2013
06f1a64
core::rt: Convert users of local_sched to Local trait
brson May 19, 2013
2f99fb8
core::rt: Remove local_sched module
brson May 19, 2013
2042696
core::rt: Implement Local for Task
brson May 19, 2013
a246e8f
core::rt: Convert unsafe_borrow_io to a Local impl
brson May 20, 2013
6d48456
auto merge of #6372 : brson/rust/intrinsics, r=catamorphism
bors May 20, 2013
2460967
auto merge of #6528 : brson/rust/docs, r=brson
bors May 20, 2013
474d998
rustllvm: Use target alignment for atomic load/store
brson May 21, 2013
32e30aa
auto merge of #6576 : nikomatsakis/rust/issue-5362-tuple-indices, r=g…
bors May 21, 2013
6c0a469
auto merge of #6649 : brson/rust/atomic-load-align, r=graydon
bors May 21, 2013
adaae45
auto merge of #6604 : bjz/rust/ptr-to-option, r=brson
bors May 21, 2013
d86a32b
fix mips stack alignment
crabtw May 21, 2013
7abcc14
auto merge of #6626 : brson/rust/io-upstream, r=graydon
bors May 21, 2013
d49a9db
auto merge of #6646 : dotdash/rust/method_lookup, r=brson
bors May 21, 2013
5a3e320
auto merge of #6647 : alexcrichton/rust/unnecessary-alloc, r=graydon
bors May 21, 2013
329d8e2
auto merge of #6648 : alexcrichton/rust/issue-6633, r=graydon
bors May 21, 2013
dc7b83d
auto merge of #6650 : crabtw/rust/mips-rt, r=sanxiyn
bors May 21, 2013
9390cda
Correct span for expr_vec
sanxiyn May 21, 2013
258d20e
Correct span for unused_import
sanxiyn May 21, 2013
808aada
auto merge of #6654 : sanxiyn/rust/accurate-span-2, r=bstrie
bors May 21, 2013
8e9eba8
syntax/ext: remove the ~str dependence of the deriving code.
huonw May 17, 2013
d543354
Remove unnecessary allocations flagged by lint from rustdoc
sanxiyn May 21, 2013
d4724c1
Remove unnecessary allocations flagged by lint from rustpkg
sanxiyn May 21, 2013
eea265e
syntax/ext: Remove the trait-object indirection of the ext_ctxt object.
huonw May 17, 2013
4045da9
syntax/ext: modernise ext_ctxt to be CamelCase and use new.
huonw May 17, 2013
8c15a0e
syntax/ext: collect the ast building traits into a single trait.
huonw May 17, 2013
70222b7
Remove unnecessary allocations flagged by lint from fuzzer
sanxiyn May 21, 2013
6e50515
syntax/ext: migrate build.rs functions to AstBuilder methods.
huonw May 17, 2013
a59bec4
syntax/ext: convert all AstBuilder methods to a uniform syntax.
huonw May 19, 2013
6b525ec
Take string slices
sanxiyn May 21, 2013
64963d6
auto merge of #6611 : huonw/rust/syntax-ext-no-dup, r=jbclements
bors May 21, 2013
743e4b0
Use static strings
sanxiyn May 21, 2013
73597a5
auto merge of #6657 : sanxiyn/rust/allocation, r=thestinger
bors May 21, 2013
0252c30
auto merge of #6658 : sanxiyn/rust/static-string-2, r=thestinger
bors May 21, 2013
b6cf84f
testsuite: Test for #4780
catamorphism May 21, 2013
1fadb97
testsuite: Update test for #2478. Still xfailed
catamorphism May 21, 2013
1df8a54
testsuite: Add xfailed test cases
catamorphism May 21, 2013
8c68c4a
rustc: Don't generate code for unreachable expressions
catamorphism May 21, 2013
02c59bc
auto merge of #6662 : catamorphism/rust/issue-4780, r=catamorphism
bors May 21, 2013
799f281
auto merge of #6664 : catamorphism/rust/issue-3796, r=catamorphism
bors May 21, 2013
15e4438
auto merge of #6665 : catamorphism/rust/issue-5741, r=nikomatsakis
bors May 21, 2013
499b022
fix arm stack alignment
crabtw May 21, 2013
f8af2b5
fix issue #6209
yjh0502 May 21, 2013
8a4bffc
auto merge of #6667 : crabtw/rust/arm-rt, r=brson
bors May 22, 2013
da94580
"Type :help for help", similar to ghci
May 22, 2013
6c33f50
Fix #6342
yjh0502 May 22, 2013
b6a0d40
auto merge of #6671 : kud1ing/rust/patch-1, r=z0w0
bors May 22, 2013
06685ba
add smallintset
yjh0502 May 22, 2013
5a42481
declare that "///" is still a doc comment, just not "////+" (fixes #5…
ben0x539 May 22, 2013
e643396
Implement static_assert attribute
emberian May 22, 2013
acf920f
Add static_assert doc blurb
emberian May 22, 2013
3d82a0a
auto merge of #6670 : cmr/rust/static_assert, r=graydon
bors May 22, 2013
4bbbae6
auto merge of #6672 : yjh0502/rust/fix_6342, r=graydon
bors May 22, 2013
fd94bd9
testsuite: Add passing test for #4107
catamorphism May 14, 2013
1aae163
testsuite: Make main fn public
catamorphism May 22, 2013
b17b3f9
auto merge of #6483 : catamorphism/rust/issue-4107, r=catamorphism
bors May 22, 2013
ee1b419
revert no-longer-required workaround for mystery bug, close #3396
graydon May 22, 2013
7ccc97e
Fix ICE in macros
emberian May 22, 2013
5118d2f
Add test
emberian May 22, 2013
f517ed0
auto merge of #6686 : cmr/rust/fix-6596, r=catamorphism
bors May 22, 2013
1d3e84c
auto merge of #6669 : yjh0502/rust/fix_6209, r=graydon
bors May 23, 2013
2915187
auto merge of #6677 : yjh0502/rust/smallintset, r=graydon
bors May 23, 2013
ca9bb2d
librustc: Disallow `use` from reaching into impls or traits.
pcwalton May 13, 2013
08e561a
librustc: Disable borrow check debugging even when rustc is compiled …
pcwalton May 15, 2013
db518ef
test: Fix tests.
pcwalton May 15, 2013
211d038
librustc: Make `~Trait` two words by storing the type descriptor in t…
pcwalton May 16, 2013
565942b
librustc: Fix privacy checking for cross-crate variants
pcwalton May 16, 2013
0c820d4
libstd: Rename libcore to libstd and libstd to libextra; update makef…
pcwalton May 17, 2013
ebfc2b8
librustc: Rename core injection to std injection
pcwalton May 17, 2013
f3723cf
libextra: Rename the actual metadata names of libcore to libstd and l…
pcwalton May 17, 2013
c532e03
librustc: Change `std` to `extra` throughout libsyntax and librustc
pcwalton May 18, 2013
d5055f4
librustc: Make `std_inject` inject the name `std`, not `core`
pcwalton May 18, 2013
b8be7e8
libfuzzer: Rename `std` to `extra`.
pcwalton May 19, 2013
14be4c2
librustdoc: Rename `std` to `extra`.
pcwalton May 19, 2013
9200237
fuzzer: Change `core` to `std` in the fuzzer
pcwalton May 20, 2013
c10e0cb
syntax: Change syntax extensions to expand to `std::foo` instead of `…
pcwalton May 20, 2013
1be40be
test: Update tests to use the new syntax.
pcwalton May 21, 2013
ee52865
test: Update tests and import the prelude in some more places.
pcwalton May 22, 2013
18df18c
libstd: Fix merge fallout.
pcwalton May 22, 2013
3a66d73
libsyntax: Fix more merge fallout.
pcwalton May 22, 2013
a5ca58a
libextra: Allow unnecessary allocations
pcwalton May 23, 2013
18fca3e
librustc: Add some missing `use core::prelude::*;` in the test cases
pcwalton May 23, 2013
be01109
etc: Fix test combiner for core->std/std->extra change. rs=burningtree
pcwalton May 23, 2013
6e2b082
libextra: Add missing core::prelude import. rs=burningtree
pcwalton May 23, 2013
34cfd21
more testing fallout from core->std/std->extra move
tedhorst May 23, 2013
d213443
rustc: Check for null before dropping ~objects. #5192
brson May 23, 2013
d49d0f8
auto merge of #6704 : tedhorst/rust/rename_lib_fixes, r=graydon
bors May 23, 2013
7f642f3
rustc: Give glue symbols meaningful names
brson May 23, 2013
4bbc13d
auto merge of #6705 : brson/rust/issue-5192, r=catamorphism
bors May 24, 2013
1965d72
core: remove iter_bytes helper functions
erickt May 23, 2013
dc970c1
cleanup warnings from libstd
erickt May 23, 2013
609a9e6
cleanup warnings from libextra
erickt May 23, 2013
a4df35f
cleanup warnings from libsyntax
erickt May 23, 2013
9635b30
cleanup warnings from librustc
erickt May 23, 2013
50f6198
cleanup warnings from librusti
erickt May 23, 2013
d7e43aa
cleanup warnings from librustdoc
erickt May 23, 2013
88a1219
cleanup warnings from compiletest
erickt May 23, 2013
21c3cf0
cleanup warnings from librustpkg
erickt May 24, 2013
cc4fabc
Fix some std/extra language in the tutorial
erickt May 24, 2013
a776d65
auto merge of #6690 : erickt/rust/cleanup-warnings, r=brson
bors May 24, 2013
5ba5865
swap_ptr: rm equality check
thestinger May 24, 2013
7d2f836
add memcpy intrinsic to mirror memmove
thestinger May 24, 2013
a7f450a
indentation fix
thestinger May 24, 2013
abb2823
make arm register definition consistent with rt
crabtw May 22, 2013
7bff028
optimize util::swap, &mut pointers never alias
thestinger May 24, 2013
248a669
docs: Don't mention obsolete move operator, as per #5700
catamorphism May 24, 2013
7c0cc9c
auto merge of #6684 : crabtw/rust/arm, r=ILyoan
bors May 24, 2013
212d6a2
auto merge of #6710 : thestinger/rust/swap, r=catamorphism
bors May 24, 2013
0629ef1
use deriving for DeepClone
thestinger May 24, 2013
ed9a793
auto merge of #6706 : brson/rust/glue, r=catamorphism
bors May 24, 2013
e69e809
Define _RUST_STAGEN when building rustrt.
thomaslee May 24, 2013
5787bf3
auto merge of #6711 : catamorphism/rust/issue-5700, r=thestinger
bors May 24, 2013
2f69bb9
auto merge of #6712 : thestinger/rust/derive, r=catamorphism
bors May 24, 2013
b5ab101
auto merge of #6680 : ben0x539/rust/slashslashslash, r=graydon
bors May 24, 2013
1009c21
show options for -W help and -W
May 24, 2013
ec8fb88
Remove usage of the #[merge] hack with int modules
alexcrichton May 13, 2013
03ae629
Remove the #[merge] hack from the parser
alexcrichton May 20, 2013
9a40c5c
auto merge of #6714 : thomaslee/rust/rustrt-stage, r=brson
bors May 24, 2013
264c84b
Make rust {test, run} exit with appropriate code.
hjr3 May 24, 2013
f212543
Remove the get function
May 24, 2013
ff28bb7
Remove the clone function for the method
May 24, 2013
ac6c15a
Actually filter view_items in blocks
alexcrichton May 24, 2013
5f90f1c
auto merge of #6723 : osaut/rust/arc-remove-get, r=brson
bors May 25, 2013
876ce10
Update the linenoise library
alexcrichton May 24, 2013
af27e17
Set the USE_UTF8 flag for linenoise to handle utf8-input
alexcrichton May 24, 2013
0628c92
auto merge of #6726 : alexcrichton/rust/filter-blocks, r=z0w0
bors May 25, 2013
d930b2c
auto merge of #6730 : hjr3/rust/exit_code, r=z0w0
bors May 25, 2013
bf4d372
Fix compilation errors with linenoise
alexcrichton May 25, 2013
5233604
Add basic atomic types
May 25, 2013
b238a08
auto merge of #6728 : alexcrichton/rust/update-linenoise, r=Aatch
bors May 25, 2013
257192c
Ignore the generated docs for libextra
huonw May 25, 2013
6e65a3f
auto merge of #6734 : huonw/rust/gitignore, r=thestinger
bors May 25, 2013
6c62d77
Use an enum for keywords and intern them to improve parser performance
dotdash May 25, 2013
9d37d03
auto merge of #6737 : dotdash/rust/static_keywords, r=pcwalton
bors May 25, 2013
2706271
auto merge of #6732 : Aatch/rust/atomic-types, r=brson
bors May 25, 2013
e2f8b51
auto merge of #6722 : alexcrichton/rust/issue-4219-no-merge-hack, r=b…
bors May 25, 2013
196851c
core: Fail with a better error message when list_dir gets an empty path
catamorphism May 22, 2013
a243ea3
testsuite: Add a test for listing the root directory...
catamorphism May 23, 2013
510d0f2
auto merge of #6687 : catamorphism/rust/list_dir_empty, r=catamorphism
bors May 26, 2013
2c2346e
Mark &mut parameters as noalias
May 26, 2013
d89a6ce
rustdoc: properly nest markup within enum variant lists (fixes #6605)
ben0x539 May 23, 2013
f254d11
auto merge of #6742 : Aatch/rust/mut-noalias, r=thestinger
bors May 26, 2013
9bb8077
Add documentation for libstd/bool.rs.
steveklabnik May 26, 2013
1f8c4b0
auto merge of #6700 : ben0x539/rust/nestvariantdocs, r=thestinger
bors May 26, 2013
f5d4ea8
auto merge of #6748 : steveklabnik/rust/bool_docs, r=thestinger
bors May 26, 2013
998cbbd
update ctags define
ILyoan May 27, 2013
fa67e09
auto merge of #6719 : kud1ing/rust/rustc_w, r=bstrie
bors May 27, 2013
a6b05b3
auto merge of #6761 : ILyoan/rust/ctags, r=thestinger
bors May 27, 2013
d577eaf
auto merge of #6688 : graydon/rust/issue-3396-mystery-bug-in-metadata…
bors May 27, 2013
76c3121
Refactor core::run in order to address many of the issues
May 12, 2013
49a1ab8
Make test_change_working_directory change the current
May 14, 2013
04a3935
Rename unwrap_input/unwrap_output as suggested by
May 14, 2013
b7294e1
auto merge of #6433 : Dretch/rust/run-refactor, r=thestinger
bors May 27, 2013
e2fcb92
Fix docs to use std instead of core.
steveklabnik May 27, 2013
3941f78
auto merge of #6763 : steveklabnik/rust/core_to_std, r=thestinger
bors May 27, 2013
3794605
Use passing by-value in gmtime, mktime
fdr May 27, 2013
c6f3577
Increment copyright year of time.rs
fdr May 27, 2013
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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ src/.DS_Store
/doc/html
/doc/latex
/doc/std
/doc/extra
/nd/
/llvm/
version.md
Expand All @@ -81,7 +82,6 @@ keywords.md
x86_64-apple-darwin/
x86_64-unknown-linux-gnu/
i686-unknown-linux-gnu/
doc/core/
tmp.*.rs
config.stamp
.DS_Store
Expand Down
54 changes: 29 additions & 25 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ endif
ifdef TRACE
CFG_RUSTC_FLAGS += -Z trace
endif
ifndef DEBUG_BORROWS
RUSTFLAGS_STAGE1 += -Z no-debug-borrows
RUSTFLAGS_STAGE2 += -Z no-debug-borrows
endif

# platform-specific auto-configuration
include $(CFG_SRC_DIR)mk/platform.mk
Expand Down Expand Up @@ -201,8 +205,8 @@ define DEF_LIBS

CFG_RUNTIME_$(1) :=$(call CFG_LIB_NAME_$(1),rustrt)
CFG_RUSTLLVM_$(1) :=$(call CFG_LIB_NAME_$(1),rustllvm)
CFG_CORELIB_$(1) :=$(call CFG_LIB_NAME_$(1),core)
CFG_STDLIB_$(1) :=$(call CFG_LIB_NAME_$(1),std)
CFG_EXTRALIB_$(1) :=$(call CFG_LIB_NAME_$(1),extra)
CFG_LIBRUSTC_$(1) :=$(call CFG_LIB_NAME_$(1),rustc)
CFG_LIBSYNTAX_$(1) :=$(call CFG_LIB_NAME_$(1),syntax)
CFG_LIBFUZZER_$(1) :=$(call CFG_LIB_NAME_$(1),fuzzer)
Expand All @@ -211,17 +215,17 @@ CFG_LIBRUSTDOC_$(1) :=$(call CFG_LIB_NAME_$(1),rustdoc)
CFG_LIBRUSTI_$(1) :=$(call CFG_LIB_NAME_$(1),rusti)
CFG_LIBRUST_$(1) :=$(call CFG_LIB_NAME_$(1),rust)

EXTRALIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),extra)
STDLIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),std)
CORELIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),core)
LIBRUSTC_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rustc)
LIBSYNTAX_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),syntax)
LIBFUZZER_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),fuzzer)
LIBRUSTPKG_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rustpkg)
LIBRUSTDOC_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rustdoc)
LIBRUSTI_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rusti)
LIBRUST_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rust)
EXTRALIB_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),extra)
STDLIB_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),std)
CORELIB_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),core)
LIBRUSTC_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustc)
LIBSYNTAX_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),syntax)
LIBFUZZER_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),fuzzer)
Expand All @@ -236,19 +240,19 @@ $(foreach target,$(CFG_TARGET_TRIPLES),\
$(eval $(call DEF_LIBS,$(target))))

######################################################################
# Core library variables
# Standard library variables
######################################################################

CORELIB_CRATE := $(S)src/libcore/core.rc
CORELIB_INPUTS := $(wildcard $(addprefix $(S)src/libcore/, \
STDLIB_CRATE := $(S)src/libstd/core.rc
STDLIB_INPUTS := $(wildcard $(addprefix $(S)src/libstd/, \
core.rc *.rs */*.rs */*/*rs */*/*/*rs))

######################################################################
# Standard library variables
# Extra library variables
######################################################################

STDLIB_CRATE := $(S)src/libstd/std.rc
STDLIB_INPUTS := $(wildcard $(addprefix $(S)src/libstd/, \
EXTRALIB_CRATE := $(S)src/libextra/std.rc
EXTRALIB_INPUTS := $(wildcard $(addprefix $(S)src/libextra/, \
std.rc *.rs */*.rs))

######################################################################
Expand Down Expand Up @@ -340,33 +344,33 @@ TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/rustc/$(2)
TBIN$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/bin
TLIB$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/$$(CFG_LIBDIR)

# The name of the core and standard libraries used by rustc
# The name of the standard and extra libraries used by rustc
ifdef CFG_DISABLE_SHAREDSTD
HCORELIB_DEFAULT$(1)_H_$(3) = \
$$(HLIB$(1)_H_$(3))/libcore.rlib
TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
$$(TLIB$(1)_T_$(2)_H_$(3))/libcore.rlib

HSTDLIB_DEFAULT$(1)_H_$(3) = \
$$(HLIB$(1)_H_$(3))/libstd.rlib
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
$$(TLIB$(1)_T_$(2)_H_$(3))/libstd.rlib

HEXTRALIB_DEFAULT$(1)_H_$(3) = \
$$(HLIB$(1)_H_$(3))/libextra.rlib
TEXTRALIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
$$(TLIB$(1)_T_$(2)_H_$(3))/libextra.rlib

HLIBRUSTC_DEFAULT$(1)_H_$(3) = \
$$(HLIB$(1)_H_$(3))/librustc.rlib
TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3) = \
$$(TLIB$(1)_T_$(2)_H_$(3))/librustc.rlib
else
HCORELIB_DEFAULT$(1)_H_$(3) = \
$$(HLIB$(1)_H_$(3))/$(CFG_CORELIB_$(3))
TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_CORELIB_$(2))

HSTDLIB_DEFAULT$(1)_H_$(3) = \
$$(HLIB$(1)_H_$(3))/$(CFG_STDLIB_$(3))
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2))

HEXTRALIB_DEFAULT$(1)_H_$(3) = \
$$(HLIB$(1)_H_$(3))/$(CFG_EXTRALIB_$(3))
TEXTRALIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_EXTRALIB_$(2))

HLIBRUSTC_DEFAULT$(1)_H_$(3) = \
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTC_$(3))
TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3) = \
Expand All @@ -378,8 +382,8 @@ HSREQ$(1)_H_$(3) = \
$$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
$$(HLIB$(1)_H_$(3))/$(CFG_RUNTIME_$(3)) \
$$(HLIB$(1)_H_$(3))/$(CFG_RUSTLLVM_$(3)) \
$$(HCORELIB_DEFAULT$(1)_H_$(3)) \
$$(HSTDLIB_DEFAULT$(1)_H_$(3)) \
$$(HEXTRALIB_DEFAULT$(1)_H_$(3)) \
$$(HLIBSYNTAX_DEFAULT$(1)_H_$(3)) \
$$(HLIBRUSTC_DEFAULT$(1)_H_$(3)) \
$$(MKFILE_DEPS)
Expand All @@ -393,8 +397,8 @@ TSREQ$(1)_T_$(2)_H_$(3) = \
# Prerequisites for a working stageN compiler and libraries, for a specific target
SREQ$(1)_T_$(2)_H_$(3) = \
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_CORELIB_$(2)) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2))
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2)) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_EXTRALIB_$(2))

# Prerequisites for a working stageN compiler and libraries, for a specific target
CSREQ$(1)_T_$(2)_H_$(3) = \
Expand All @@ -409,8 +413,8 @@ CSREQ$(1)_T_$(2)_H_$(3) = \
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTDOC_$(3)) \
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTI_$(3)) \
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUST_$(3)) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_CORELIB_$(2)) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2)) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2)) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_EXTRALIB_$(2)) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBSYNTAX_$(2)) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTC_$(2)) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBFUZZER_$(2)) \
Expand Down
16 changes: 10 additions & 6 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ fi
step_msg "making directories"

for i in \
doc doc/core doc/std \
doc doc/std doc/extra \
dl tmp
do
make_dir $i
Expand All @@ -665,12 +665,16 @@ make_dir rt
for t in $CFG_TARGET_TRIPLES
do
make_dir rt/$t
for i in \
isaac linenoise sync test \
arch/i386 arch/x86_64 arch/arm arch/mips \
libuv libuv/src/ares libuv/src/eio libuv/src/ev
for s in 0 1 2 3
do
make_dir rt/$t/$i
make_dir rt/$t/stage$s
for i in \
isaac linenoise sync test \
arch/i386 arch/x86_64 arch/arm arch/mips \
libuv libuv/src/ares libuv/src/eio libuv/src/ev
do
make_dir rt/$t/stage$s/$i
done
done
done

Expand Down
Loading