Skip to content

Experimental: #6413

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 451 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
451 commits
Select commit Hold shift + click to select a range
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
35214d3
configure: CFG_ADB for adb added
yichoi May 3, 2013
9ecb97a
mk: install.mk directory argument pass for install-runtime-target
yichoi May 3, 2013
84bdd05
compiletest: fix decision rule to run and cleanup
yichoi 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
24cda9f
Remove pub from core::{unicode,cmath,stackwalk,rt}
alexcrichton 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
5681571
compiletest: remove --host and cleanup
yichoi 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
cb918e1
Allow non-literal static range pattern for match arms
youknowone 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
58c0df2
add #[non_owned] and #[mutable] attributes
thestinger May 5, 2013
66842c8
mark Cell as non-Const with #[mutable]
thestinger May 5, 2013
bc52224
factor out the has_attr checks
thestinger May 5, 2013
e7f6c4c
compile-fail tests for #[non_owned] and #[mutable]
thestinger May 5, 2013
7b36e34
Fix two more write guard failures
nikomatsakis May 6, 2013
24de5bb
core: Remove a call to `breakpoint` from a test
brson May 6, 2013
44c1e46
Improve lifetimes on foldl/foldr and lift the Copy requirement
alexcrichton May 5, 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
b20eb97
libsyntax: extend generic deriving code to handle almost all possible…
huonw May 6, 2013
1cf2108
libsyntax: convert #[deriving(IterBytes)] to generic deriving
huonw May 6, 2013
5e1d6c2
libsyntax: add #[deriving(Rand, ToStr)].
huonw May 6, 2013
4a43c1b
testsuite: tests for deriving changes and additions
huonw May 6, 2013
b6dea9d
auto merge of #6263 : bjz/rust/approx-eq, r=erickt
bors May 6, 2013
1cbf0a8
Step one for 'proper' pub condition: support pub keyword in form.
pnkfelix 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
3cafe90
std: Workaround bustage on incoming. #6122
brson Apr 30, 2013
de80712
Move core::run tests of process killing into standalone run-pass tests
brson May 3, 2013
2e4790c
Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-…
nikomatsakis May 6, 2013
bd5fd6e
auto merge of #6150 : yichoi/rust/arm-test-pull, r=brson
bors May 6, 2013
3d526d1
add task-local reference counted smart pointers
thestinger May 4, 2013
d0827e3
Add a test for issue 5517
alexcrichton May 6, 2013
8b32bde
add rust_take_task_borrow_list and rust_set_task_borrow_list to rustr…
nikomatsakis May 7, 2013
ce45f39
Remove debug_mem since @graydon said it conflicted with GC changes
nikomatsakis May 7, 2013
cd164cf
Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-…
nikomatsakis May 7, 2013
39a1190
appease the tidy gods with respect to a FIXME
nikomatsakis May 7, 2013
05460fc
auto merge of #6286 : nikomatsakis/rust/issue-5910-dyna-freeze, r=nik…
bors May 7, 2013
4f436a8
Enable test for #3707
brson May 7, 2013
4b6864f
auto merge of #6226 : alexcrichton/rust/issue-6199, r=brson
bors May 7, 2013
d2f0235
auto merge of #6228 : brson/rust/run-destroy, r=brson
bors May 7, 2013
ebe35f3
remove borrowck workarounds from the containers
thestinger May 7, 2013
d800147
minor automatic whitespace fixes
thestinger May 7, 2013
bf748e5
auto merge of #6241 : thestinger/rust/rc, r=pcwalton
bors May 7, 2013
dfe608d
renamed tests
sonwow May 7, 2013
393a409
Add pop() and swap() to the Map trait
alexcrichton May 4, 2013
3225870
auto merge of #6236 : alexcrichton/rust/more-map-methods, r=thestinger
bors May 7, 2013
db38ab9
mk: rt.mk regression patch for mingw32 after #6176
yichoi May 7, 2013
930908a
mk: target.mk host.mk fix for duplicated rules of mingw32 after #6235
yichoi May 7, 2013
7b2020f
auto merge of #6245 : youknowone/rust/match-range-static, r=graydon
bors May 7, 2013
7455f98
Make lint_table static
sammykim May 7, 2013
bdb52e5
auto merge of #6251 : thestinger/rust/non_owned, r=pcwalton
bors May 7, 2013
9b09dce
Switch to using 'ln' for the natural logarithm and 'log' for arbitrar…
brendanzab May 6, 2013
06c5e7f
Implement exp_m1 and ln_1p as methods for Float
brendanzab May 6, 2013
314b485
Fix order of methods
brendanzab May 7, 2013
a9ac2b9
Add abs_sub method to Signed trait
brendanzab May 7, 2013
387d6c5
Lift restriction on calling extern C functions, and propagate
nikomatsakis Mar 19, 2013
4023f54
auto merge of #6255 : brson/rust/nobreakpoint, r=graydon
bors May 7, 2013
cc51186
Add is_normal and classify methods to Float trait
brendanzab May 7, 2013
154f3b0
auto merge of #6271 : pnkfelix/rust/issue6009-condition-pub-priv-vari…
bors May 7, 2013
38a6a7a
auto merge of #6276 : brson/rust/issue-6122, r=graydon
bors May 7, 2013
8e0c6fa
Port IRBuilder::CreateVectorSplat
sanxiyn May 2, 2013
f3217a5
Check SIMD vector types
sanxiyn May 2, 2013
c5a7be6
Add core::simd and define SIMD vector types
sanxiyn May 2, 2013
0e052f5
Add SIMD vector type tests
sanxiyn May 3, 2013
11f7cb2
When autoborrowing a fn in trans, adjust the type of the datum to be …
nikomatsakis May 7, 2013
6af447a
Add test for #4666, which didn't *quite* seem to be covered by
nikomatsakis May 7, 2013
784e836
Remove trailing whitespace
sanxiyn May 7, 2013
7b3e036
auto merge of #6282 : alexcrichton/rust/issue-5517-add-test, r=thesti…
bors May 7, 2013
43165b5
rc: remove the managed pointer workaround
thestinger May 7, 2013
96eb1e5
arc: mark RWARC as non-Const
thestinger May 7, 2013
0ed4495
Generate LLVM SIMD vector types
sanxiyn May 7, 2013
19d2ba3
auto merge of #6254 : alexcrichton/rust/issues-5311-4490-better-foldl…
bors May 7, 2013
5063928
auto merge of #6290 : brson/rust/issue-3707, r=thestinger
bors May 7, 2013
4cd51c4
rt: Move win32_require out of the rust_kernel type
brson May 6, 2013
21aaa7f
rt: Eliminate the dependency on rust_kernel from rust_rng
brson May 7, 2013
3b6a32d
core::rt: Add a test that rng works with new tasks
brson May 7, 2013
452817b
auto merge of #6292 : thestinger/rust/cleanup, r=brson
bors May 7, 2013
6bcc3a6
Add some tests for local data + borrowed pointers
brson May 7, 2013
45ae340
auto merge of #6294 : sonwow/rust/renamed-test, r=thestinger
bors May 7, 2013
db1a274
io: handle fread() errors
indutny May 7, 2013
398cd18
core: Replace Durable with 'static
brson May 7, 2013
3a34e93
auto merge of #6295 : yichoi/rust/pull-mingw32, r=brson
bors May 7, 2013
ccc4c1a
std: Replace Durable with 'static
brson May 7, 2013
d8ef723
rustc: Replace Durable with 'static
brson May 7, 2013
0addefa
Improved vim indent file for rust
May 6, 2013
80b2926
General fixes for vim
May 6, 2013
847552f
auto merge of #6301 : bjz/rust/numeric-traits, r=pcwalton
bors May 7, 2013
d35eb6e
auto merge of #6302 : nikomatsakis/rust/issue-6141-leaking-owned-fn, …
bors May 8, 2013
1755eec
test: Replace Durable with 'static
brson May 8, 2013
3df7ed1
Remove Durable from the language
brson May 8, 2013
356ebe8
extranous thing is removed
sammykim May 8, 2013
3c4b32c
auto merge of #6259 : Aatch/rust/vimfile, r=bstrie
bors May 8, 2013
5a1afaf
auto merge of #6303 : nikomatsakis/rust/issue-4666-test, r=nikomatsakis
bors May 8, 2013
1813ab5
testsuite: update a test for #4350
ILyoan May 8, 2013
eb5fa06
Move core::simd to core::unstable::simd
sanxiyn May 8, 2013
80061ec
rt: Remove rust_call_nullary_fn
brson May 8, 2013
86500fb
auto merge of #6297 : sammykim/rust/static-lint-table, r=luqmana
bors May 8, 2013
625e518
auto merge of #6305 : thestinger/rust/rc, r=nikomatsakis
bors May 8, 2013
dc48a55
Show lint names
sammykim May 8, 2013
e6529c3
auto merge of #6307 : brson/rust/rng2, r=brson
bors May 8, 2013
1d7a136
auto merge of #6309 : nikomatsakis/rust/issue-3678-type-of-extern-fns…
bors May 8, 2013
3532350
Add #[cfg(debug)] flag to rust suite compilation. Closes #3068
z0w0 May 8, 2013
83838aa
auto merge of #6311 : indutny/rust/fix/handle-io-fread-errors, r=z0w0
bors May 8, 2013
cb66d89
Remove #[cfg(notest)] and use #[cfg(not(test))] to cooincide with #[c…
z0w0 May 8, 2013
b6f9295
auto merge of #6317 : brson/rust/durable, r=z0w0
bors May 8, 2013
37becd8
auto merge of #6321 : ILyoan/rust/test4350, r=z0w0
bors May 8, 2013
08c8054
testsuite: xfail tests for windows
huonw May 7, 2013
ad5ee00
libstd: convert chained ifs to a match in base64.
huonw May 8, 2013
8f94ac6
auto merge of #6267 : huonw/rust/syntax-deriving-generaliseder, r=nik…
bors May 8, 2013
b21f37c
auto merge of #6323 : brson/rust/nullary, r=thestinger
bors May 8, 2013
270b508
auto merge of #6326 : z0w0/rust/cfg-debug, r=yichoi
bors May 8, 2013
bd4ee7c
Fix typos
seanmoon May 8, 2013
3970d02
rustc: Fix the logic for finding the Android main function
brson May 7, 2013
65ded84
auto merge of #6119 : brson/rust/main, r=brson
bors May 8, 2013
044abef
fix incorrect region code based on the old 'self
thestinger May 8, 2013
5a65f51
auto merge of #6214 : sanxiyn/rust/simd-2, r=graydon
bors May 8, 2013
0c02d0f
rename iter::iter_to_vec to iter::to_vec
thestinger May 8, 2013
da2ac90
libstd: Remove mutable fields from fileinput and net_tcp
pcwalton May 3, 2013
92d2ec4
libstd: Remove mutable fields from flatpipes and io_util
pcwalton May 3, 2013
bba0680
libstd: Remove mutable fields from future and par
pcwalton May 3, 2013
ee78d81
libstd: Start warning about mutable fields, now that they only exist …
pcwalton May 3, 2013
b2d1ac1
libcore: Remove mutable fields from rand.
pcwalton May 3, 2013
2961997
libcore: Remove mutable fields from os and ptr
pcwalton May 3, 2013
4dc1c29
libcore: Remove mutable fields from hash
pcwalton May 3, 2013
226ee7d
libcore: Remove mutable fields from task::spawn
pcwalton May 3, 2013
803a4f4
libcore: Remove mutable fields from the task builder API
pcwalton May 3, 2013
6a44482
libcore: Remove mutable fields from pipes
pcwalton May 3, 2013
5650779
libcore: Remove mutable fields from repr
pcwalton May 3, 2013
8919f32
Remove mutable fields from comm by using casts. Also mark the cast in…
pcwalton May 3, 2013
d12d255
libcore: Remove more mutable fields from comm
pcwalton May 4, 2013
c752241
libstd: Remove some residual mutable fields
pcwalton May 4, 2013
db4573a
librustc: Remove mutable fields from the language.
pcwalton May 4, 2013
278b487
test: Fix tests and the pipe compiler
pcwalton May 7, 2013
99daec6
librustc: Fix merge fallout.
pcwalton May 7, 2013
49a66a5
librustc: Stop parsing modes and remove them entirely from the language
pcwalton May 7, 2013
16a0125
libcore: Fix tests.
pcwalton May 8, 2013
9d011eb
test: Fix tests.
pcwalton May 8, 2013
3affc6e
librustc: Fix merge fallout.
pcwalton May 8, 2013
7286845
libcore: Fix more merge fallout.
pcwalton May 8, 2013
36fbf71
llvm: Unrevert change
pcwalton May 8, 2013
85d9409
test: Fix broken test
pcwalton May 8, 2013
d20e63a
test: Fix modes in the benchmarks.
pcwalton May 9, 2013
d82d987
auto merge of #6232 : pcwalton/rust/demuting, r=pcwalton
bors May 9, 2013
3bbbb31
auto merge of #6327 : z0w0/rust/rm-notest, r=brson
bors May 9, 2013
1b4e375
Add space
sammykim May 9, 2013
101d4bf
auto merge of #6332 : huonw/rust/std-base64-match, r=nikomatsakis
bors May 9, 2013
9a292b3
libcore: rename vec::each(variable) to variable.each
recrack May 8, 2013
472d9f3
librustdoc: rename vec::each(var) to var.each
recrack May 8, 2013
d4fa0f1
libstd: rename vec::each(var) to var.each
recrack May 8, 2013
841f4ce
libsyntax: rename vec::each(var) to var.each
recrack May 8, 2013
c02064d
librustc: rename vec::each(var) to var.each
recrack May 8, 2013
936c07d
auto merge of #6328 : recrack/rust/rename_cleanup, r=sanxiyn
bors May 9, 2013
fda176b
auto merge of #6337 : thestinger/rust/fix_region, r=thestinger
bors May 9, 2013
c2bf9bf
improve MIPS backend and implement segmented stacks
crabtw May 7, 2013
5617916
auto merge of #6343 : thestinger/rust/new_iter, r=brson
bors May 9, 2013
050c744
Add uninit intrinsic
May 9, 2013
f5ab112
Replace init() with uninit() where appropriate
May 9, 2013
ca95e7f
auto merge of #6345 : seanmoon/rust/fix-typos, r=sanxiyn
bors May 9, 2013
5750970
Make staged versions of the functions that use uninit
May 9, 2013
414970c
Add intrinsic declaration where I missed them
May 9, 2013
d6efbad
Mark c_vec functions as unsafe again
alexcrichton May 8, 2013
1393c3a
Use a specialized string interner to reduce the need for owned strings
dotdash May 2, 2013
e323033
back-ticks
May 9, 2013
4757a58
auto merge of #6359 : kud1ing/rust/fixes, r=bstrie
bors May 9, 2013
dc2ca9d
Refactor representation of bounds to separate out BuiltinBounds into
nikomatsakis May 7, 2013
7a4c6e5
auto merge of #6325 : sammykim/rust/lint-name, r=graydon
bors May 9, 2013
2bc1263
remove vecs_implicitly_copyable from libstd/libcore
thestinger May 9, 2013
ce9c022
auto merge of #6349 : thestinger/rust/explicit_copy, r=thestinger
bors May 9, 2013
7675856
auto merge of #6354 : Aatch/rust/uninit-intrinsic, r=graydon
bors May 9, 2013
15164cc
Issue the correct deref count for the implicit deref that occurs
nikomatsakis May 9, 2013
e18ed77
Remove remnants of mutable fields from mem_categorization, borrowck.
nikomatsakis May 9, 2013
d3ca9c6
Better error message for certain classes of unresolved imports
emberian May 9, 2013
fa5baf3
Tweak error message
emberian May 9, 2013
7852086
rustc: Add EnumSet tests
nikomatsakis May 8, 2013
f547a67
auto merge of #6373 : nikomatsakis/rust/issue-6355-perf-regression, r…
bors May 9, 2013
0afcd34
compile-fail test for new unresolved import error
emberian May 9, 2013
9cbab89
fix formating and tests
emberian May 9, 2013
ad8e236
auto merge of #6336 : nikomatsakis/rust/issue-6308-closure-bounds, r=…
bors May 10, 2013
c8e93ed
Move core::task::local_data to core::local_data
sonwow May 8, 2013
3e106cf
auto merge of #6339 : alexcrichton/rust/unsafe-cvec, r=catamorphism
bors May 10, 2013
f04eb37
auto merge of #6347 : cmr/rust/unknown_module_resolve_error, r=catamo…
bors May 10, 2013
4400bbd
A test file is fixed
sonwow May 10, 2013
e9d0018
auto merge of #6356 : dotdash/rust/strinterner, r=pcwalton
bors May 10, 2013
6da2c98
auto merge of #6329 : sonwow/rust/issue-6306, r=ILyoan
bors May 10, 2013
fdf601e
auto merge of #6358 : crabtw/rust/mips-segstk, r=brson
bors May 10, 2013
d807f00
Add to_str() for HashMaps, and some basic tests as well.
samebchase May 10, 2013
fd5a352
Removed test_hashmap() for the time, being. All tests pass with make …
samebchase May 10, 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.

7 changes: 5 additions & 2 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ endif

ifdef CFG_ENABLE_DEBUG
$(info cfg: enabling more debugging (CFG_ENABLE_DEBUG))
CFG_RUSTC_FLAGS +=
CFG_RUSTC_FLAGS += --cfg debug
CFG_GCCISH_CFLAGS += -DRUST_DEBUG
else
CFG_GCCISH_CFLAGS += -DRUST_NDEBUG
Expand All @@ -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
4 changes: 4 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@ then
probe CFG_ZCAT zcat
fi

step_msg "looking for target specific programs"

probe CFG_ADB adb

if [ ! -z "$CFG_PANDOC" ]
then
PV_MAJOR_MINOR=$(pandoc --version | grep '^pandoc ' |
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.

25 changes: 11 additions & 14 deletions doc/tutorial-ffi.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,43 +150,40 @@ 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> {
priv ptr: *mut T
}

pub impl<'self, T: Owned> Unique<T> {
pub impl<T: Owned> Unique<T> {
fn new(value: T) -> 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}
}
}

// the 'self lifetime results in the same semantics as `&*x` with ~T
fn borrow(&self) -> &'self T {
unsafe { cast::transmute(self.ptr) }
// the 'r lifetime results in the same semantics as `&*x` with ~T
fn borrow<'r>(&'r self) -> &'r T {
unsafe { cast::copy_lifetime(self, &*self.ptr) }
}

// the 'self lifetime results in the same semantics as `&mut *x` with ~T
fn borrow_mut(&mut self) -> &'self mut T {
unsafe { cast::transmute(self.ptr) }
// the 'r lifetime results in the same semantics as `&mut *x` with ~T
fn borrow_mut<'r>(&'r mut self) -> &'r mut T {
unsafe { cast::copy_mut_lifetime(self, &mut *self.ptr) }
}
}

#[unsafe_destructor]
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