Skip to content
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

Issue 5910 dyna freeze #6277

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
265 commits
Select commit Hold shift + click to select a range
f9069ba
core::rt: Add LocalServices for thread-local language services
brson Apr 21, 2013
2fe118b
rt: Don't make memory_region depend on rust_env
brson Apr 22, 2013
d7f5e43
core::rt: Add the local heap to newsched tasks
brson Apr 22, 2013
d0786fd
core::rt Wire up task-local storage to the new scheduler
brson Apr 22, 2013
e5d21b9
core::rt: Make I/O constructors return Option instead of Result
brson Apr 22, 2013
6644a03
core::rt: Move the definition of Listener to rt::io
brson Apr 22, 2013
fe13b86
Make conditions public. #6009
brson Apr 22, 2013
5fbb094
core::rt: Add implementations of Reader, Writer, and Listener for Option
brson Apr 22, 2013
42c0f88
core::rt: Add unwinding to newsched tasks
brson Apr 23, 2013
a292d51
mk: Pass CFLAGS to the uv build
brson Apr 23, 2013
8a2f9ca
core::rt: Fix a use after free in uv 'write'
brson Apr 23, 2013
f4af40a
mk: core has another level of directories with rt/io/net
brson Apr 23, 2013
2a819ae
core::rt: Tasks to not require an unwinder
brson Apr 23, 2013
e944c7d
Merge remote-tracking branch 'brson/io'
brson Apr 23, 2013
6373861
core: Convert reinterpret_cast to transmute in TLS. #6039
brson Apr 24, 2013
c0e734d
core::rt: Add more I/O docs
brson Apr 24, 2013
354460e
Tidy
brson Apr 24, 2013
34f7255
mk: reorganize doc build to fix dependencies. #6042
brson Apr 24, 2013
1962803
core: Warning police
brson Apr 24, 2013
08659f5
core: Turn off rtdebug logging
brson Apr 24, 2013
436657b
Rename cleanup_task_local_map_ to cleanup_task_local_map_extern_cb
brson Apr 24, 2013
28ab152
Merge remote-tracking branch 'brson/io'
brson Apr 25, 2013
abc49fd
rt: abort doesn't take an argument
brson Apr 25, 2013
00ede34
Add `--linker` option to pass flags to the linker
Apr 29, 2013
edc11a9
rustc: Suppress derived pattern-match-checking errors
catamorphism Apr 18, 2013
e75203c
Adds '--print-link-args' that outputs linker arguments that would be …
Apr 29, 2013
c1fdace
core: Replace uses of 'drop' in task module with 'finally'. #5379
brson Apr 29, 2013
d8024e2
rustc: Change At to Managed and Uniq to Owned
catamorphism Apr 29, 2013
6818e24
core: Turn off the local heap in newsched in stage0 to work around wi…
brson Apr 29, 2013
9ddcf1c
test: Remove run-pass/too-much-recursion.rs
brson Apr 30, 2013
c2b8f98
librustc: Fix drop finalizer not running for newtype structs.
luqmana Apr 30, 2013
849f814
rustc / test: Fix error message
catamorphism Apr 30, 2013
2deefbe
Change flags to -Z print-link-args and --link-args
Apr 30, 2013
84e97d5
I modified the doc of from_elem, from_fn, I think it returns an owned…
sammykim Apr 30, 2013
202b8dc
adapt to snapshot
nikomatsakis Apr 17, 2013
b5a7e8b
desnapshot
nikomatsakis Apr 22, 2013
a896440
new borrow checker (mass squash)
nikomatsakis Mar 15, 2013
7fed480
char: fix unused import warning
thestinger Apr 30, 2013
6f18bb5
iter: add a find function
thestinger Apr 30, 2013
229ebf0
deleted two tests intended to test RUST_CC_ZEAL, an apparently defunc…
jbclements Apr 18, 2013
5d8db6f
remove (non-parsing) test related to impl d for d feature
jbclements Apr 18, 2013
78942a2
this issue is a dup of another one that has a correct test case
jbclements Apr 18, 2013
77da055
This test case is obsolete for two reasons
jbclements Apr 18, 2013
9455eaf
changed to impl trait for type stx
jbclements Apr 18, 2013
aa48a17
dataflow: fix flow of information through pattern variants
nikomatsakis Apr 30, 2013
7a0c1ea
correct used_mut annotations for args, inherited case
nikomatsakis Apr 30, 2013
545d51c
rustc: remove modes
nikomatsakis Apr 30, 2013
70b9ad1
rustc: work around issue with default-method-simple, fix some rebase
nikomatsakis Apr 30, 2013
418f991
allover: numerous unused muts etc
nikomatsakis Apr 30, 2013
a6eaa3b
iter: add max and min functions
thestinger Apr 30, 2013
97109aa
Remove mach_sty
sanxiyn Apr 30, 2013
8408012
The null case of a nullable-poiner enum might not be nullary.
jld Apr 30, 2013
41d06db
Reverse accidental src/llvm reversion in 876483dcf, and add test.
jld Apr 30, 2013
4701716
Revert "doc: XFAIL mysterious failure on bots"
jld Apr 30, 2013
9b54fbd
auto merge of #6118 : brson/rust/too-much-recursion, r=thestinger
bors Apr 30, 2013
9d966ae
auto merge of #6134 : jld/rust/issue-6117, r=catamorphism
bors Apr 30, 2013
dc21dae
borrowck: fix critical bug prevent us from ever using write guards :)
nikomatsakis Apr 30, 2013
f236b85
remove some unused mut decls
nikomatsakis Apr 30, 2013
0b377e5
clear *everything* from the tmp directory
thestinger Apr 30, 2013
9329bd6
auto merge of #6136 : jld/rust/simplifycfg-unrevert, r=thestinger
bors Apr 30, 2013
4493cf4
Fix error messages harder
catamorphism Apr 30, 2013
dd310d6
Got test cases to pass, after some major surgery
jbclements Apr 18, 2013
325263f
this test still doesn't pass, but at least it parses...
jbclements Apr 18, 2013
7e89a51
This test case now parses
jbclements Apr 18, 2013
add60bb
Test now passes
jbclements Apr 18, 2013
cc4e018
added test case for issue 5927
jbclements Apr 18, 2013
d6bb587
with syntax fixes, this test case now appears to pass
jbclements Apr 18, 2013
178305f
fixed up issue-2185, but now it has a trait failure
jbclements Apr 18, 2013
3a5361a
more commits on issue 2185
jbclements Apr 30, 2013
527f771
after syntax fixes, these tests appear to pass
jbclements Apr 18, 2013
3931ce4
fixed the test case, hope it's still testing something
jbclements Apr 19, 2013
d1921fb
fixed this test case too
jbclements Apr 19, 2013
89bb02a
typestate is not planned for upcoming versions of rust....
jbclements Apr 19, 2013
c75b763
renamed issue-2185 to issue-3429
jbclements Apr 30, 2013
fc66107
fixed up syntax
jbclements Apr 19, 2013
ab1d8ea
fixed pattern, moved test to compile-fail
jbclements Apr 30, 2013
4a4646f
Merge remote-tracking branch 'brson/io'
brson Apr 30, 2013
7a85767
auto merge of #6103 : catamorphism/rust/nonfatal-errors, r=catamorphism
bors May 1, 2013
9847428
mk: Fix pdf build
brson May 1, 2013
782e06e
core/std: Fix race condition in os::mkdir_recursive tests
catamorphism May 1, 2013
cb527bf
auto merge of #6105 : Aatch/rust/linker-improv, r=pcwalton
bors May 1, 2013
c1ea72d
auto merge of #6113 : brson/rust/task-drop, r=graydon
bors May 1, 2013
89f4193
auto merge of #6115 : jbclements/rust/test-case-fixes, r=jbclements
bors May 1, 2013
db24514
auto merge of #6131 : thestinger/rust/new_iter, r=graydon
bors May 1, 2013
ee26c7c
Revert rename of Div to Quot
brendanzab May 1, 2013
17ca136
auto merge of #6139 : thestinger/rust/tmp, r=graydon
bors May 1, 2013
bfccfdc
auto merge of #6144 : catamorphism/rust/mkdir_recursive-breakage, r=t…
bors May 1, 2013
f67239f
auto merge of #6147 : bjz/rust/numeric-traits, r=brson
bors May 1, 2013
5ab33a2
correct incorrect handling of overloaded operators, exposing various …
nikomatsakis May 1, 2013
d96c65a
keep old sort for stage0
nikomatsakis May 1, 2013
8486110
rustc: print out filename/line-number when a borrow fails
nikomatsakis May 1, 2013
4af2d90
add an option to debug borrows (RUST_DEBUG_BORROW) so you can
nikomatsakis May 1, 2013
5d79f94
core: Remove use of deprecated `drop`
erickt May 1, 2013
7d6d002
syntax: remove parsing destructors
erickt May 1, 2013
c2e1f47
rustc: remove the rest of drop
erickt May 1, 2013
3e3e2f0
allow parsing attributes on struct fields
erickt May 1, 2013
5fee324
syntax: remove parse::token::{dtor,literally_dtor}
erickt May 1, 2013
e9688fc
remove some warnings
erickt May 1, 2013
e7a3bbd
rustdoc: Remove a now invalid test
erickt May 1, 2013
7c9d089
pipes: use finally to fix pipes::try_recv
erickt May 1, 2013
3159335
avoid broken += operator, bogus use of const
nikomatsakis May 1, 2013
55fbc47
auto merge of #6148 : erickt/rust/remove-drop, r=pcwalton
bors May 1, 2013
38f93f2
wip---work on making rooting work properly
nikomatsakis May 1, 2013
08dd625
compiletest: stop ignoring all tests.
graydon May 1, 2013
046a285
libstd: impl Clone for BigUint/BigInt and replace `copy` with `.clone()`
gifnksm Apr 30, 2013
c64471a
Add trait object field types to back/abi.rs, and use them
Sodel-the-Vociferous May 1, 2013
0583462
libc bindings for glob.h
doy Apr 10, 2013
685baed
add a higher level glob() function to os
doy Apr 10, 2013
ed81e33
glob_t should be public on all platforms
doy May 1, 2013
1eb5efc
libcore: add N(0,1) and Exp(1) distributions to core::rand.
huonw Apr 28, 2013
9411547
auto merge of #6161 : graydon/rust/glob-retry, r=graydon
bors May 1, 2013
14bf5c4
rustc: adjust total number of lang items
nikomatsakis May 2, 2013
ef6b24d
rustc: fix the fact that trans_lvalue rooted twice
nikomatsakis May 2, 2013
d231c42
core: add more debugging printouts to borrowing
nikomatsakis May 2, 2013
d3e7c74
auto merge of #6162 : graydon/rust/random-retry, r=graydon
bors May 2, 2013
0c34cab
Take string slices
sanxiyn Apr 30, 2013
4294aed
Use static strings
sanxiyn Apr 30, 2013
b4bdc3f
auto merge of #6127 : gifnksm/rust/impl-clone-for-bigint, r=graydon
bors May 2, 2013
6210de9
lang: fix code for maintaining borrow list
nikomatsakis May 2, 2013
fbaf839
rustc: more fix for trans_lvalue rooted twice
nikomatsakis May 2, 2013
5f88634
syntax: fix up dynamic borrow errors in libsyntax
nikomatsakis May 2, 2013
1bd3184
Add error if RED_ZONE_SIZE doesn't get defined
May 2, 2013
8a28970
libcore: Make `ChainIterator` take two different-typed `Iterator`s.
gifnksm May 2, 2013
d6697e7
pass along CFLAGS/LINK_FLAGS to libuv
thestinger May 2, 2013
a64aa28
auto merge of #6173 : sammykim/rust/doc-vec, r=yichoi
bors May 2, 2013
e596128
Remove 'Local Variable' comments
brendanzab May 1, 2013
c1de90c
rustc: remove ty::LegacyDtor
erickt May 2, 2013
efcabc4
auto merge of #6151 : bjz/rust/local-variable-cleanup, r=brson
bors May 2, 2013
b42ea7f
auto merge of #6174 : sanxiyn/rust/static-string, r=brson
bors May 2, 2013
5458d7d
auto merge of #6175 : Aatch/rust/red-zone-warn, r=sanxiyn
bors May 2, 2013
5f1a90e
Issue 4391: rustc should not silently skip tests with erroneous signa…
pnkfelix Apr 29, 2013
c14aa7e
mod items need to be marked with `cfg(test)` not `test`.
pnkfelix Apr 30, 2013
880e300
mod items need to be marked with `cfg(test)` not `test`.
pnkfelix Apr 30, 2013
46c2b5b
Lets see if changing `span_fatal` to `span_err` gets me further throu…
pnkfelix May 1, 2013
a636f51
More cases of [cfg(test)] instead of [test].
pnkfelix May 1, 2013
9862cf7
More cases of [cfg(test)] instead of [test].
pnkfelix May 2, 2013
d1f7220
auto merge of #6111 : pnkfelix/rust/issue4391-rustc-should-not-silent…
bors May 2, 2013
afcb9e9
core: inlining on common functions
huonw May 2, 2013
5714e2c
libcore: optimize string joining routines.
huonw May 2, 2013
6487cb2
Explain that the source code was generated by this script
May 2, 2013
18c46b8
The following code was generated by "src/etc/unicode.py"
May 2, 2013
cff6aba
libcore: Export core::from_str::FromStr from core::prelude
gifnksm May 2, 2013
6883814
Remove codes related to modes
sanxiyn May 2, 2013
326d966
auto merge of #6177 : gifnksm/rust/iter-chain, r=thestinger
bors May 2, 2013
89377ea
auto merge of #6176 : thestinger/rust/libuv_optimize, r=thestinger
bors May 2, 2013
1c64f7a
auto merge of #6178 : erickt/rust/remove-drop, r=graydon
bors May 2, 2013
69316f0
auto merge of #6182 : huonw/rust/core-str-opts, r=nikomatsakis
bors May 2, 2013
35b91e2
Use static strings
youknowone May 2, 2013
7aa10e6
make link_args use spaces as separators
thestinger May 2, 2013
b698884
auto merge of #6125 : luqmana/rust/newtype-drop, r=pcwalton
bors May 2, 2013
a0d8873
More accurate spans
sanxiyn May 2, 2013
544ac62
Convert most of rust_run_program.cpp to rust (issue #2674).
Apr 30, 2013
23e97ae
Remove errant trailing whitespace.
May 1, 2013
ec9c7c3
auto merge of #6184 : kud1ing/rust/master, r=sanxiyn
bors May 2, 2013
88ec89d
fix numerous dynamic borrow failures
nikomatsakis May 2, 2013
cce97ab
Add test for drop for newtype structs.
luqmana May 2, 2013
cdf604f
auto merge of #6193 : youknowone/rust/static-string, r=sanxiyn
bors May 2, 2013
bd979c1
Fix some issues with test_destroy_actually_kills:
May 2, 2013
4999d44
trans: fix borrow violation
nikomatsakis May 2, 2013
cc62680
free the borrow list propertly instead of crashing
nikomatsakis May 2, 2013
32ebaac
re-xfail some tests that fail on x86
graydon May 2, 2013
ba84251
auto merge of #6197 : graydon/rust/re-xfail, r=graydon
bors May 2, 2013
6f2e429
libstd: De-mut arena
pcwalton Apr 29, 2013
31599fe
auto merge of #6172 : Sodel-the-Vociferous/rust/rm_trt_obj_magic_nums…
bors May 2, 2013
79a2b2e
auto merge of #6192 : thestinger/rust/link_args, r=catamorphism
bors May 2, 2013
dc5df61
librustc: Update the serializer to work properly with INHTWAMA, remov…
pcwalton May 2, 2013
73733c9
auto merge of #6195 : luqmana/rust/newtype-drop, r=catamorphism
bors May 3, 2013
9bded76
move @mut into scope_info
nikomatsakis May 3, 2013
c0f587d
librustc: Make uninhabited enums not castable to int
pcwalton May 3, 2013
db6a62c
rustc: Drop the visitor object from the visitor glue
brson May 3, 2013
f8dffc6
core: Wire up the unwinder to newsched again
brson May 3, 2013
baa1c18
auto merge of #6140 : Dretch/rust/run-with-rust, r=brson
bors May 3, 2013
b37a685
auto merge of #6201 : pcwalton/rust/inhtwama-serializer, r=graydon
bors May 3, 2013
6c478c7
Merge remote-tracking branch 'brson/io' into incoming
brson May 3, 2013
87c46b5
auto merge of #6206 : sanxiyn/rust/mach-sty, r=thestinger
bors May 3, 2013
76f7207
std: xfail test_serializing_pipes
brson May 3, 2013
2ae44a0
auto merge of #6212 : brson/rust/xfail-flatpipes, r=brson
bors May 3, 2013
f45c6b8
Add a brief description to show up in http://static.rust-lang.org/doc…
May 3, 2013
e34a7ec
Remove extra `#[cfg(stage0)]`
gifnksm May 3, 2013
984180c
auto merge of #6204 : pcwalton/rust/uninhabited-enum-cast, r=catamorp…
bors May 3, 2013
02889f7
Add core::cmp::Equiv to prelude
Sodel-the-Vociferous May 3, 2013
213f7b2
auto merge of #6207 : sanxiyn/rust/tc-big, r=thestinger
bors May 3, 2013
47050c4
FIX: Export to_bytes::ToBytes
Sodel-the-Vociferous May 3, 2013
3402435
Change borrow debugging so it is disabled by -O
nikomatsakis May 3, 2013
2e3e0c0
Avoid needless creation of unique strings in fmt!()
dotdash May 3, 2013
d9c7d0b
auto merge of #6185 : gifnksm/rust/prelude-from_str, r=graydon
bors May 3, 2013
79aeb52
auto merge of #6046 : brson/rust/io, r=graydon
bors May 3, 2013
e7d9693
Correct mismatch between the way that pattern ids and expression ids …
nikomatsakis May 3, 2013
4dd0fa6
Make build products depend on their target directories.
pnkfelix May 3, 2013
9a31cdb
auto merge of #6213 : kud1ing/rust/patch-1, r=graydon
bors May 3, 2013
4332f81
auto merge of #6216 : Sodel-the-Vociferous/rust/dralston-6146, r=graydon
bors May 3, 2013
f3a6ea2
lang: um, actually set locking bits! this code got lost.
nikomatsakis May 3, 2013
832f7b7
librustc: Add argument to allow choosing "linker"
luqmana May 2, 2013
bfd3cd8
auto merge of #6217 : Sodel-the-Vociferous/rust/export-ToBytes, r=gra…
bors May 3, 2013
13df2ea
rustc: Handle struct patterns where the expected type is an enum
catamorphism May 2, 2013
32b3d3e
tidy
catamorphism May 3, 2013
c15fa3a
Be more careful about the order in which we read the next field
nikomatsakis Apr 29, 2013
be08c3e
rustc: add rooting, write-guards to slices etc
nikomatsakis May 3, 2013
517bfc9
auto merge of #6200 : catamorphism/rust/issue-5358, r=catamorphism
bors May 3, 2013
4d4cabf
rustpkg: Implement install command
catamorphism May 2, 2013
376a552
tidy
catamorphism May 2, 2013
c42f121
rustpkg: Handle sysroot more correctly
catamorphism May 3, 2013
5fb5a94
core: Warning police
catamorphism May 3, 2013
18bf9bd
std: Warning police
catamorphism May 3, 2013
1a5f11a
syntax: Warning police
catamorphism May 3, 2013
2df8799
rustc: Warning police
catamorphism May 3, 2013
86efd97
add gitattributes and fix whitespace issues
thestinger May 3, 2013
9f76ca6
rustpkg: Make code actually compile
catamorphism May 4, 2013
7d9c638
auto merge of #6124 : catamorphism/rust/rustpkg, r=catamorphism
bors May 4, 2013
5bf7e8b
auto merge of #6198 : luqmana/rust/linker-arg, r=graydon
bors May 4, 2013
0ff8200
factor code for write guards into its own module; add neglected resol…
nikomatsakis May 4, 2013
821979f
auto merge of #6219 : dotdash/rust/fmt, r=graydon
bors May 4, 2013
c3ab74b
auto merge of #6227 : graydon/rust/issue-6112-box-annihilator, r=graydon
bors May 4, 2013
a47e4cb
auto merge of #6229 : catamorphism/rust/warning-police, r=catamorphism
bors May 4, 2013
7ac6571
rt: glob, globfree dummy function for android
yichoi May 4, 2013
1f65e4a
auto merge of #6230 : thestinger/rust/whitespace, r=catamorphism
bors May 4, 2013
495bceb
Fix syntax: had to use escaped $$ to have an effect after first expan…
pnkfelix May 4, 2013
175a5ee
Fix another goof: consistently use parent directory of target for rule.
pnkfelix May 4, 2013
e5ca35d
Reduce code bloat from managed allocations
dotdash May 4, 2013
bf2d3c7
improve DEBUG_BORROW printouts
nikomatsakis May 4, 2013
ccf2f7b
make asm_comments something that you opt in to
nikomatsakis May 4, 2013
989d008
separate out write_guard code into its own module
nikomatsakis May 4, 2013
b872900
auto merge of #6237 : dotdash/rust/reduce_bloat, r=brson
bors May 4, 2013
8081e8d
Register snapshots
brson May 4, 2013
d74ac9e
auto merge of #6240 : brson/rust/snapshots, r=brson
bors May 4, 2013
8f2d71a
small fix to the tutorial-ffi destructor example
thestinger May 5, 2013
987ad9c
rt: rust_android_dummy.cpp fix for make tidy
yichoi May 5, 2013
29a2a1e
auto merge of #6234 : yichoi/rust/glob-dummy-pull, r=thestinger
bors May 5, 2013
3b299e8
auto merge of #6244 : thestinger/rust/ffi, r=z0w0
bors May 5, 2013
6806900
disable lang debug for perf
nikomatsakis May 5, 2013
063851f
auto merge of #6235 : pnkfelix/rust/issue-3326-play-with-directory-or…
bors May 5, 2013
0b0b801
add warning for #6248 and remove instances of it
nikomatsakis May 5, 2013
6cb273e
Address all FIXMEs from #5562
nikomatsakis May 5, 2013
aca2a00
Fix span tests
sanxiyn May 5, 2013
6e6a4be
auto merge of #6208 : sanxiyn/rust/accurate-span, r=sanxiyn
bors May 5, 2013
4300d4d
Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-…
nikomatsakis May 5, 2013
7b36e34
Fix two more write guard failures
nikomatsakis May 6, 2013
4dc62df
do not run regionck if there have been type errors
nikomatsakis May 6, 2013
e235f6c
remove some unused mut decls and vars
nikomatsakis May 6, 2013
0211833
Move FuzzyEq trait into core::cmp and rename it to 'ApproxEq'
brendanzab May 6, 2013
0e2242f
Add assert_approx_eq! macro
brendanzab May 6, 2013
2ea52a3
refinement to technique used to not run regionck
nikomatsakis May 6, 2013
6c0c3a4
Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-…
nikomatsakis May 6, 2013
84f7ecc
Adust arena test: can no longer allocate recursively
nikomatsakis May 6, 2013
502817a
Fix cross-crate packed structs
sanxiyn May 6, 2013
c50a9d5
Use rust_try_get_task for compat with new rt, and strenghten assumpti…
nikomatsakis May 6, 2013
b6dea9d
auto merge of #6263 : bjz/rust/approx-eq, r=erickt
bors May 6, 2013
0ef4e86
Replace NOTE with FIXME
nikomatsakis May 6, 2013
a5891be
auto merge of #6265 : sanxiyn/rust/xc-packed, r=nikomatsakis
bors May 6, 2013
2e4790c
Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-…
nikomatsakis May 6, 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
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[attr]rust text eol=lf whitespace=tab-in-indent,trailing-space,tabwidth=4

* text=auto
*.cpp rust
*.h rust
*.rs rust
src/rt/msvc/* -whitespace
src/rt/vg/* -whitespace
src/rt/linenoise/* -whitespace
1 change: 0 additions & 1 deletion COPYRIGHT
Original file line number Diff line number Diff line change
Expand Up @@ -367,4 +367,3 @@ their own copyright notices and license terms:
has chosen for the collective work, enumerated at the top
of this file. The only difference is the retention of
copyright itself, held by the contributor.

5 changes: 4 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ endif
ifdef SAVE_TEMPS
CFG_RUSTC_FLAGS += --save-temps
endif
ifdef ASM_COMMENTS
CFG_RUSTC_FLAGS += -z asm-comments
endif
ifdef TIME_PASSES
CFG_RUSTC_FLAGS += -Z time-passes
endif
Expand Down Expand Up @@ -238,7 +241,7 @@ $(foreach target,$(CFG_TARGET_TRIPLES),\

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

######################################################################
# Standard library variables
Expand Down
6 changes: 3 additions & 3 deletions RELEASES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Version 0.3 (July 2012)
* Slices and fixed-size, interior-allocated vectors
* #!-comments for lang versioning, shell execution
* Destructors and iface implementation for classes;
type-parameterized classes and class methods
type-parameterized classes and class methods
* 'const' type kind for types that can be used to implement
shared-memory concurrency patterns

Expand All @@ -261,7 +261,7 @@ Version 0.3 (July 2012)
'crust', 'native' (now 'extern'), 'cont' (now 'again')

* Constructs: do-while loops ('do' repurposed), fn binding,
resources (replaced by destructors)
resources (replaced by destructors)

* Compiler reorganization
* Syntax-layer of compiler split into separate crate
Expand All @@ -276,7 +276,7 @@ Version 0.3 (July 2012)
* Extensive work on libuv interface
* Much vector code moved to libraries
* Syntax extensions: #line, #col, #file, #mod, #stringify,
#include, #include_str, #include_bin
#include, #include_str, #include_bin

* Tool improvements
* Cargo automatically resolves dependencies
Expand Down
6 changes: 3 additions & 3 deletions doc/README
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The markdown docs are only generated by make when node is installed (use
`make doc`). If you don't have node installed you can generate them yourself.
Unfortunately there's no real standard for markdown and all the tools work
`make doc`). If you don't have node installed you can generate them yourself.
Unfortunately there's no real standard for markdown and all the tools work
differently. pandoc is one that seems to work well.

To generate an html version of a doc do something like:
Expand All @@ -10,4 +10,4 @@ The syntax for pandoc flavored markdown can be found at:
http://johnmacfarlane.net/pandoc/README.html#pandocs-markdown

A nice quick reference (for non-pandoc markdown) is at:
http://kramdown.rubyforge.org/quickref.html
http://kramdown.rubyforge.org/quickref.html
9 changes: 4 additions & 5 deletions doc/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -1467,8 +1467,8 @@ A complete list of the built-in language items follows:
: Elements can be subtracted.
`mul`
: Elements can be multiplied.
`quot`
: Elements have a quotient operation.
`div`
: Elements have a division operation.
`rem`
: Elements have a remainder operation.
`neg`
Expand Down Expand Up @@ -1857,7 +1857,7 @@ The default meaning of the operators on standard types is given here.
Calls the `mul` method on the `core::ops::Mul` trait.
`/`
: Quotient.
Calls the `quot` method on the `core::ops::Quot` trait.
Calls the `div` method on the `core::ops::Div` trait.
`%`
: Remainder.
Calls the `rem` method on the `core::ops::Rem` trait.
Expand Down Expand Up @@ -2393,7 +2393,7 @@ variables in the arm's block, and control enters the block.
An example of an `match` expression:


~~~~ {.xfail-test}
~~~~
# fn process_pair(a: int, b: int) { }
# fn process_ten() { }

Expand Down Expand Up @@ -3351,4 +3351,3 @@ Additional specific influences can be seen from the following languages:
* The typeclass system of Haskell.
* The lexical identifier rule of Python.
* The block syntax of Ruby.

11 changes: 4 additions & 7 deletions doc/tutorial-ffi.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,7 @@ wrapping `malloc` and `free`:

~~~~
use core::libc::{c_void, size_t, malloc, free};

#[abi = "rust-intrinsic"]
extern "rust-intrinsic" mod rusti {
fn init<T>() -> T;
}
use core::unstable::intrinsics;

// a wrapper around the handle returned by the foreign code
pub struct Unique<T> {
Expand All @@ -166,7 +162,8 @@ pub impl<'self, T: Owned> Unique<T> {
unsafe {
let ptr = malloc(core::sys::size_of::<T>() as size_t) as *mut T;
assert!(!ptr::is_null(ptr));
*ptr = value;
// `*ptr` is uninitialized, and `*ptr = value` would attempt to destroy it
intrinsics::move_val_init(&mut *ptr, value);
Unique{ptr: ptr}
}
}
Expand All @@ -186,7 +183,7 @@ pub impl<'self, T: Owned> Unique<T> {
impl<T: Owned> Drop for Unique<T> {
fn finalize(&self) {
unsafe {
let mut x = rusti::init(); // dummy value to swap in
let mut x = intrinsics::init(); // dummy value to swap in
x <-> *self.ptr; // moving the object out is needed to call the destructor
free(self.ptr as *c_void)
}
Expand Down
1 change: 0 additions & 1 deletion doc/tutorial-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,4 +402,3 @@ tricky. Invoking the `log_syntax!` macro can help elucidate intermediate
states, invoking `trace_macros!(true)` will automatically print those
intermediate states out, and passing the flag `--pretty expanded` as a
command-line argument to the compiler will show the result of expansion.

1 change: 0 additions & 1 deletion doc/tutorial-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -511,4 +511,3 @@ The parent task first calls `DuplexStream` to create a pair of bidirectional
endpoints. It then uses `task::spawn` to create the child task, which captures
one end of the communication channel. As a result, both parent and child can
send and receive data to and from the other.

8 changes: 4 additions & 4 deletions doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -1006,9 +1006,9 @@ let mut d = @mut 5; // mutable variable, mutable box
d = @mut 15;
~~~~

A mutable variable and an immutable variable can refer to the same box, given
that their types are compatible. Mutability of a box is a property of its type,
however, so for example a mutable handle to an immutable box cannot be
A mutable variable and an immutable variable can refer to the same box, given
that their types are compatible. Mutability of a box is a property of its type,
however, so for example a mutable handle to an immutable box cannot be
assigned a reference to a mutable box.

~~~~
Expand Down Expand Up @@ -1041,7 +1041,7 @@ let y = x.clone(); // y is a newly allocated box
let z = x; // no new memory allocated, x can no longer be used
~~~~

Since in owned boxes mutability is a property of the owner, not the
Since in owned boxes mutability is a property of the owner, not the
box, mutable boxes may become immutable when they are moved, and vice-versa.

~~~~
Expand Down
1 change: 0 additions & 1 deletion doc/version_info.html.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
</center>

</div>

2 changes: 1 addition & 1 deletion mk/clean.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ clean-misc:
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
$(Q)rm -Rf $(DOCS)
$(Q)rm -Rf $(GENERATED)
$(Q)rm -f tmp/*.log tmp/*.rc tmp/*.rs tmp/*.ok
$(Q)rm -f tmp/*
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
$(Q)rm -Rf $(foreach ext, \
html aux cp fn ky log pdf pg toc tp vr cps, \
Expand Down
74 changes: 35 additions & 39 deletions mk/docs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,8 @@ DOCS :=


######################################################################
# Pandoc (reference-manual related)
# Docs, from pandoc, rustdoc (which runs pandoc), and node
######################################################################
ifeq ($(CFG_PANDOC),)
$(info cfg: no pandoc found, omitting doc/rust.pdf)
else

ifeq ($(CFG_NODE),)
$(info cfg: no node found, omitting doc/tutorial.html)
else

doc/rust.css: rust.css
@$(call E, cp: $@)
Expand All @@ -34,6 +27,18 @@ doc/manual.css: manual.css
@$(call E, cp: $@)
$(Q)cp -a $< $@ 2> /dev/null

ifeq ($(CFG_PANDOC),)
$(info cfg: no pandoc found, omitting docs)
NO_DOCS = 1
endif

ifeq ($(CFG_NODE),)
$(info cfg: no node found, omitting docs)
NO_DOCS = 1
endif

ifneq ($(NO_DOCS),1)

DOCS += doc/rust.html
doc/rust.html: rust.md doc/version_info.html doc/rust.css doc/manual.css
@$(call E, pandoc: $@)
Expand All @@ -47,19 +52,8 @@ doc/rust.html: rust.md doc/version_info.html doc/rust.css doc/manual.css
--css=manual.css \
--include-before-body=doc/version_info.html \
--output=$@
endif

ifeq ($(CFG_PDFLATEX),)
$(info cfg: no pdflatex found, omitting doc/rust.pdf)
else
ifeq ($(CFG_XETEX),)
$(info cfg: no xetex found, disabling doc/rust.pdf)
else
ifeq ($(CFG_LUATEX),)
$(info cfg: lacking luatex, disabling pdflatex)
else

DOCS += doc/rust.pdf
DOCS += doc/rust.tex
doc/rust.tex: rust.md doc/version.md
@$(call E, pandoc: $@)
$(Q)$(CFG_NODE) $(S)doc/prep.js $< | \
Expand All @@ -70,17 +64,6 @@ doc/rust.tex: rust.md doc/version.md
--from=markdown --to=latex \
--output=$@

doc/rust.pdf: doc/rust.tex
@$(call E, pdflatex: $@)
$(Q)$(CFG_PDFLATEX) \
-interaction=batchmode \
-output-directory=doc \
$<

endif
endif
endif

DOCS += doc/rustpkg.html
doc/rustpkg.html: rustpkg.md doc/version_info.html doc/rust.css doc/manual.css
@$(call E, pandoc: $@)
Expand All @@ -95,13 +78,6 @@ doc/rustpkg.html: rustpkg.md doc/version_info.html doc/rust.css doc/manual.css
--include-before-body=doc/version_info.html \
--output=$@

######################################################################
# Node (tutorial related)
######################################################################
ifeq ($(CFG_NODE),)
$(info cfg: no node found, omitting doc/tutorial.html)
else

DOCS += doc/tutorial.html
doc/tutorial.html: tutorial.md doc/version_info.html doc/rust.css
@$(call E, pandoc: $@)
Expand Down Expand Up @@ -153,9 +129,29 @@ doc/tutorial-tasks.html: tutorial-tasks.md doc/version_info.html doc/rust.css
--include-before-body=doc/version_info.html \
--output=$@

ifeq ($(CFG_PDFLATEX),)
$(info cfg: no pdflatex found, omitting doc/rust.pdf)
else
ifeq ($(CFG_XETEX),)
$(info cfg: no xetex found, disabling doc/rust.pdf)
else
ifeq ($(CFG_LUATEX),)
$(info cfg: lacking luatex, disabling pdflatex)
else

DOCS += doc/rust.pdf
doc/rust.pdf: doc/rust.tex
@$(call E, pdflatex: $@)
$(Q)$(CFG_PDFLATEX) \
-interaction=batchmode \
-output-directory=doc \
$<

endif
endif
endif
endif

endif # No pandoc / node

######################################################################
# LLnextgen (grammar analysis from refman)
Expand Down
Loading