Skip to content

Supress all 'cond' errors in valgrind #6076

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 573 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
573 commits
Select commit Hold shift + click to select a range
2793e49
gitignore: Add build/ subdirectory
catamorphism Apr 17, 2013
c01c3d9
rustpkg: Fail when crate inference fails; inject link attributes
catamorphism Apr 17, 2013
e6c3c37
rustpkg: Add a few tests
catamorphism Apr 17, 2013
a5ddc00
rustc: Use an out pointer to return structs in x86 C ABI. #5347
brson Apr 2, 2013
82765a0
rustpkg: Implement clean; replace boolean result flags with fail!()
catamorphism Apr 17, 2013
68dea75
auto merge of #5725 : jdm/rust/muttrait, r=nikomatsakis
bors Apr 18, 2013
fdb4ef3
auto merge of #5726 : brson/rust/struct-return, r=brson
bors Apr 18, 2013
c98f0cb
vec: add an external iterator
thestinger Apr 17, 2013
35f3b63
rustpkg: Remove bogus .rc file
catamorphism Apr 18, 2013
a2761ac
rustpkg: Change this example to show how to do a custom build
catamorphism Apr 18, 2013
e2d947d
rustpkg: Don't execute the standard build logic if there is a pkg.rs
catamorphism Apr 18, 2013
958189d
rustpkg: Add a list of rustpkg commands that should pass
catamorphism Apr 18, 2013
128e95b
rustpkg: Add more tests
catamorphism Apr 18, 2013
a089c6f
auto merge of #5908 : jbclements/rust/add-hygiene-machinery, r=graydon
bors Apr 18, 2013
16652c9
auto merge of #5909 : brson/rust/rt4, r=graydon
bors Apr 18, 2013
3b48063
auto merge of #5912 : Dretch/rust/issue-2626, r=graydon
bors Apr 18, 2013
acf8887
auto merge of #5916 : danluu/rust/debug_tutorial, r=catamorphism
bors Apr 18, 2013
d4daee4
auto merge of #5918 : catamorphism/rust/Warnings, r=catamorphism
bors Apr 18, 2013
3499a37
auto merge of #5919 : catamorphism/rust/gitignore, r=catamorphism
bors Apr 18, 2013
6030e39
Errors with the same span print the span once
recrack Apr 18, 2013
d32d4d1
auto merge of #5923 : thestinger/rust/iterator, r=graydon
bors Apr 18, 2013
5dda8ab
sketch: Make rust sketch barf output prettier
intgr Apr 18, 2013
a35376e
Small typos, year date and URL of the fbuild system for reference.
Apr 18, 2013
0ff568a
libcore: add an EnumerateIterator, like Python's `enumerate`.
huonw Apr 18, 2013
d29ef7a
auto merge of #5927 : huonw/rust/core-enumerate-iterator, r=thestinger
bors Apr 18, 2013
f43fc5f
libcore: make spawn_supervised documentation reflect its behaviour.
huonw Apr 18, 2013
d2a81b9
Implement bitwise operator traits for ints and uints
brendanzab Apr 18, 2013
bd75463
auto merge of #5928 : huonw/rust/core-task-spawn-supervised-doc, r=th…
bors Apr 18, 2013
938ddee
auto merge of #5929 : intgr/rust/sketch_output, r=thestinger
bors Apr 18, 2013
c967f2b
core: add a str iterator
huonw Apr 18, 2013
2c82787
auto merge of #5930 : osaut/rust/master, r=thestinger
bors Apr 18, 2013
939a97f
Add #[inline(always)] to each operator method
brendanzab Apr 18, 2013
19cc352
core: io: the read_until function checks bytes not chars, so type sho…
huonw Apr 18, 2013
24fb719
auto merge of #5932 : huonw/rust/core-str-iterator, r=thestinger
bors Apr 18, 2013
e4f35a7
auto merge of #5933 : huonw/rust/core-read-until-byte, r=thestinger
bors Apr 18, 2013
a7f6ec8
Use assert_eq! instead of assert! and remove extraneous parentheses
brendanzab Apr 18, 2013
8796c9f
auto merge of #5935 : bjz/rust/master, r=thestinger
bors Apr 18, 2013
a523abd
add dropwhile and takewhile iterators
thestinger Apr 18, 2013
2686dcb
test: Add more comments about why extern-pass-TwoU64s is xfailed
brson Apr 18, 2013
b18f12f
test: xfail-macos some tests that don't work on mac i686
brson Apr 18, 2013
348dc25
auto merge of #5939 : brson/rust/xfail, r=brson
bors Apr 18, 2013
b329f2f
auto merge of #5798 : recrack/rust/multiple-errors, r=brson
bors Apr 18, 2013
2a86485
auto merge of #5418 : luqmana/rust/stack-float, r=brson
bors Apr 18, 2013
ab08b4f
core: Remove pipes::spawn_service, spawn_service_recv
brson Apr 2, 2013
8f2d21d
core: Just reordering some code
brson Apr 2, 2013
3dce936
core: Remove #[doc(hidden)] attributes and atomic wrapper functions f…
brson Apr 2, 2013
056164a
core: Inline the protocol definitions of sendp and oneshot
brson Apr 17, 2013
4e22461
core: Remove a stray #[doc(hidden)] attribute
brson Apr 17, 2013
0617d58
core::comm: Remove functions in favor of methods
brson Apr 17, 2013
bc60d84
core::pipes: Just reordering declarations
brson Apr 17, 2013
decd390
core::comm: Modernize constructors to use `new`
brson Apr 17, 2013
8a6d6dd
rustc: Fix struct returns on x86 mac for 8-byte structs
brson Apr 18, 2013
b19c644
auto merge of #5921 : brson/rust/pipes, r=brson
bors Apr 18, 2013
14b7277
core: add vec::bsearch.
graydon Jan 4, 2013
5a3d26f
core: replace unicode match exprs with bsearch in const arrays, minor…
graydon Jan 8, 2013
18db9a2
rustc: One less copy
catamorphism Apr 16, 2013
d2718e6
xfail box and vec debug info tests
bleibig Apr 18, 2013
62847b0
rustc: Make some typechecker errors non-fatal
catamorphism Apr 18, 2013
1aebf30
Tidy
catamorphism Apr 18, 2013
50cd218
auto merge of #5920 : catamorphism/rust/rustpkg, r=catamorphism
bors Apr 18, 2013
df9cc2e
auto merge of #5924 : catamorphism/rust/non-fatal-errors, r=catamorphism
bors Apr 18, 2013
3d43af1
rustc: Anti-copy police
catamorphism Apr 17, 2013
225d74f
auto merge of #5914 : catamorphism/rust/copy-cops, r=catamorphism
bors Apr 19, 2013
9618e5b
auto merge of #5938 : thestinger/rust/iterator, r=pcwalton
bors Apr 19, 2013
d3a58f3
auto merge of #5943 : brson/rust/struct-return, r=graydon
bors Apr 19, 2013
0f85cf1
iterator: add skip and take
thestinger Apr 19, 2013
962a753
takewhile -> take_while, dropwhile -> skip_while
thestinger Apr 19, 2013
8ae6b33
libcore: clarify documentation for char_at(_reverse)
huonw Apr 19, 2013
465666d
auto merge of #5957 : huonw/rust/core-char-at-doc, r=thestinger
bors Apr 19, 2013
ae1c9eb
move iterator adaptor tests to iterator module
thestinger Apr 19, 2013
d7a2ae6
re-organize the iterator module a bit
thestinger Apr 19, 2013
90313b7
libcore: add an UnfoldrIterator like Haskell's `unfoldr`
huonw Apr 19, 2013
1d81b7b
iterator: add a chain adaptor
thestinger Apr 19, 2013
a2e5350
iterator: add a bit of documentation
thestinger Apr 19, 2013
10e6869
auto merge of #5955 : thestinger/rust/iterator, r=graydon
bors Apr 19, 2013
1a36b0f
librustc: Remove `fail_unless!`
pcwalton Mar 29, 2013
f903ae9
librustc: Implement fast-ffi and use it in various places
pcwalton Mar 29, 2013
af42d37
rustllvm: Fix RustWrapper.cpp
pcwalton Apr 1, 2013
3ffaaab
librustc: Switch the `@`s in types with `~`
pcwalton Apr 1, 2013
04df19c
librustc: Take primitive types out of the type hash table.
pcwalton Apr 2, 2013
53f54dd
librustc: Remove def_ids from types.
pcwalton Apr 2, 2013
4c29b4c
librustc: Optimize metadata::decoder::item_name.
pcwalton Apr 2, 2013
2dbe20a
libstd: Micro-optimize vuint_at
pcwalton Apr 3, 2013
ca8e99f
rt: Fix scalability problem with big stacks on 32 bit
pcwalton Apr 5, 2013
0b0ca59
librustc: Improve inlining behavior.
pcwalton Apr 7, 2013
90b65c8
llvm: Fixes for RustWrapper.
pcwalton Apr 12, 2013
9738c2a
test: Rewrite nbody and spectralnorm shootout benchmarks
pcwalton Apr 16, 2013
10aa1c3
test: Add fannkuch-redux and fasta-redux shootout benchmarks
pcwalton Apr 17, 2013
1d32313
test: Add k-nucleotide
pcwalton Apr 18, 2013
bc0dd7f
Move shootout-k-nucleotide to bench
pcwalton Apr 18, 2013
7720c15
test: Implement pidigits and reverse-complement
pcwalton Apr 18, 2013
c995a62
librustc: WIP patch for using the return value.
pcwalton Apr 18, 2013
9902e79
rt: Remove dump_stacks
pcwalton Apr 19, 2013
af4ea11
test: Rewrite mandelbrot benchmark.
pcwalton Apr 19, 2013
f93b3cd
librustc: Remove debug code; xfail-pretty reverse-complement.
pcwalton Apr 19, 2013
7d250d3
auto merge of #5824 : bleibig/rust/debuginfo, r=brson
bors Apr 19, 2013
c44d7a6
core::rt: Declare large parts of the I/O API
brson Apr 18, 2013
b967651
core: Add rt::context for figuring out what runtime services are avai…
brson Mar 27, 2013
6773b63
core: Don't use managed boxes in TaskBuilder
brson Apr 19, 2013
15ece0c
core: Wire up `spawn` to the new scheduler
brson Apr 19, 2013
d261bb3
core: More tweaks to the thread-local scheduler interface
brson Apr 19, 2013
eddd817
core::rt: Add another context switching operation to the scheduler
brson Apr 19, 2013
b57611d
core::rt: Simplify some scheduler operations
brson Apr 19, 2013
e782e1f
Tidy
brson Apr 19, 2013
69eb218
Try to suppress valgrind errors
brson Apr 19, 2013
bffe23b
auto merge of #5961 : brson/rust/valgrind, r=brson
bors Apr 19, 2013
7270fad
core::rt: Rename Closeable to Close, Seekable to Seek, blocking to na…
brson Apr 19, 2013
dcea717
librustc: Fix botched merge. rs=merge
pcwalton Apr 19, 2013
6510fd9
auto merge of #5960 : brson/rust/io, r=pcwalton
bors Apr 19, 2013
69f6ac5
Fix debug! usage in tutorial
danluu Apr 19, 2013
a1a9326
libcore: Fix assertion failure in vec::windowe.
gifnksm Apr 20, 2013
d2b6448
test: xfail some benchmarks that require external libraries or inputs
pcwalton Apr 20, 2013
8b3c09a
auto merge of #5962 : pcwalton/rust/shootout, r=pcwalton
bors Apr 20, 2013
93e13e0
Fix an ICE when dereferencing types which cannot be dereferenced
alexcrichton Apr 19, 2013
be9f4ef
Fix an ICE when dereferencing types which cannot be dereferenced
alexcrichton Apr 19, 2013
3c7aea3
syntax: de-mode and prepare for de-modeing rustc
alexcrichton Apr 17, 2013
1e4a439
rustc: de-mode + fallout from libsyntax changes
alexcrichton Apr 17, 2013
c97bee2
Assorted fixes from de-modeing rustc/syntax (rusti, rustdoc, fuzzer, …
alexcrichton Apr 18, 2013
98dfeb1
core: clean up tests (mostly unused unsafe blocks)
alexcrichton Apr 19, 2013
cd982ad
std: clean up tests (mostly unused unsafe blocks)
alexcrichton Apr 19, 2013
047ba26
auto merge of #5964 : danluu/rust/debug_tutorial_foo, r=brson
bors Apr 20, 2013
5c2e9b2
libcore: wrappers for size/align_of to act on values without needing …
huonw Apr 20, 2013
e67f1c0
auto merge of #5968 : gifnksm/rust/windowed, r=brson
bors Apr 20, 2013
ce4f73a
auto merge of #5945 : graydon/rust/fix-unicode-tables, r=pcwalton
bors Apr 20, 2013
028dc58
auto merge of #5963 : alexcrichton/rust/fix-ice, r=pcwalton
bors Apr 20, 2013
4ff701b
auto merge of #5965 : alexcrichton/rust/issue-4364, r=pcwalton
bors Apr 20, 2013
f2b0ef1
auto merge of #5970 : huonw/rust/core-sys-size_of-val, r=pcwalton
bors Apr 20, 2013
a0c2949
libcore: add a ScanIterator, a generalisation of MapIterator to have …
huonw Apr 20, 2013
2b09267
auto merge of #5973 : huonw/rust/core-iterator-scan-consumers, r=thes…
bors Apr 20, 2013
93c0888
librustc: implement and use `fixed_stack_segment` attribute for intri…
huonw Apr 20, 2013
d9c54f8
librustc: use LLVM intrinsics for several floating point operations.
huonw Apr 3, 2013
c5baeb1
testsuite: update tests to not use math intrinsics directly
huonw Apr 20, 2013
ae3b869
auto merge of #5975 : huonw/rust/rustc-intrinsics-fixed-stack, r=pcwa…
bors Apr 20, 2013
3c2a44b
Don't warn about unsafe functions which don't need to be unsafe
alexcrichton Apr 20, 2013
51a68eb
Replaced many instances of reinterpret_cast with transmute
Thiez Apr 20, 2013
f0afe23
auto merge of #5978 : alexcrichton/rust/issue-5954, r=catamorphism
bors Apr 20, 2013
276293a
Cleaned up case related functions a bit
Kimundi Apr 18, 2013
4357cbf
Made unsafely safe functions unsafe again, for safety
Kimundi Apr 20, 2013
61ffee7
Added Ascii type
Kimundi Apr 20, 2013
7ca216d
Added case functions to Ascii
Kimundi Apr 20, 2013
df61ec2
Corrected history
Kimundi Apr 20, 2013
0e017ab
auto merge of #5979 : Thiez/rust/no_reinterpret_cast, r=catamorphism
bors Apr 20, 2013
d1985c9
Implement a lint mode to deal with unused 'mut' variables
alexcrichton Apr 12, 2013
13537d2
core: remove unused 'mut' variables
alexcrichton Apr 12, 2013
7d317fe
std: remove unused 'mut' variables
alexcrichton Apr 12, 2013
fd97cac
syntax: remove unused 'mut' variables
alexcrichton Apr 12, 2013
c389d0b
rustc: remove unused 'mut' variables
alexcrichton Apr 12, 2013
59caef0
xfail two benchmarks that are failing on the bots
brson Apr 21, 2013
2104cd6
auto merge of #5986 : brson/rust/bench, r=brson
bors Apr 21, 2013
91d1d00
Changed shootout-fasta-redux to use size_t when calling fwrite, remov…
Thiez Apr 21, 2013
aa763cd
libcore: make rand::random return a generic value implementing `Rand`.
huonw Apr 21, 2013
01eb5e8
Rename Div operator trait to Quot and Modulo operator trait to Rem
brendanzab Apr 21, 2013
8942099
auto merge of #5989 : Thiez/rust/fixbench, r=catamorphism
bors Apr 21, 2013
535244c
auto merge of #5987 : huonw/rust/generic-random, r=catamorphism
bors Apr 21, 2013
6a31525
auto merge of #5990 : bjz/rust/rem-quot, r=catamorphism
bors Apr 21, 2013
5cc6a0b
rt: Make the C stack segment accessible to runtime users.
jdm Apr 10, 2013
3830040
auto merge of #5887 : jdm/rust/stackbounds, r=brson
bors Apr 22, 2013
7f45ae5
Fix LLVM bug affecting i1 switches emitted for nullable enum match.
jld Apr 7, 2013
e6c4471
libstd: denominator isn't quotient
huonw Apr 22, 2013
5667902
libcore: Rand impls for tuples and ~/@ boxes
huonw Apr 22, 2013
ba1f3c9
Convert to C string inside WriteOutputFile
sanxiyn Apr 22, 2013
da4bc49
Choose target features
sanxiyn Apr 22, 2013
0de3e7a
auto merge of #5994 : huonw/rust/rational-fail-message, r=thestinger
bors Apr 22, 2013
70452e5
Consider nullability for equivalence of monomorphized fns.
jld Apr 7, 2013
22f751f
Use nullable pointers to represent enums like Option<~T>.
jld Mar 31, 2013
edc1324
Add some tests for nullable-pointer enums
jld Apr 22, 2013
d0451ee
auto merge of #5995 : huonw/rust/core-rand-impls, r=pcwalton
bors Apr 22, 2013
c99409b
cell: public field is unsafe
thestinger Apr 22, 2013
aee2567
auto merge of #6003 : thestinger/rust/cell, r=nikomatsakis
bors Apr 22, 2013
2c5afa4
libcore: Add `is_absolute()` to paths. Closes #5851.
pcwalton Apr 20, 2013
8205f73
auto merge of #6001 : jld/rust/enum-nullable, r=pcwalton
bors Apr 22, 2013
25129ee
librustc: Remove `use mod` from the language
pcwalton Apr 22, 2013
582a05f
Moved ascii out of str
Kimundi Apr 22, 2013
bf4f088
Added missing assert, did some formating
Kimundi Apr 22, 2013
a6dd7dc
auto merge of #5971 : pcwalton/rust/is-absolute, r=pcwalton
bors Apr 22, 2013
a117cf0
libstd: correct bigint's quot/rem, div/modulo
gifnksm Apr 22, 2013
aba93c6
auto merge of #5966 : alexcrichton/rust/issue-3083, r=graydon
bors Apr 22, 2013
05f9586
auto merge of #5980 : Kimundi/rust/ascii-encoding, r=thestinger
bors Apr 22, 2013
773f7e7
auto merge of #5996 : sanxiyn/rust/target-feature, r=graydon
bors Apr 23, 2013
81110c5
Revert "Errors with the same span print the span once"
brson Apr 23, 2013
d834c0d
docs: Sketch out rustpkg manual
catamorphism Apr 18, 2013
4508da2
rustpkg: In doc, mention other implicit RUST_PATH entries
catamorphism Apr 23, 2013
b8441ca
auto merge of #6007 : pcwalton/rust/use-mod, r=brson
bors Apr 23, 2013
08bbf4b
core: ignore test from_str_ignore_underscores. Broken on i686. #6018
brson Apr 23, 2013
8eb22ec
test: fix for missing ARM support
yichoi Apr 23, 2013
309f0c5
auto merge of #6019 : brson/rust/xfail, r=brson
bors Apr 23, 2013
3867470
auto merge of #6013 : gifnksm/rust/bigint-quot-rem, r=graydon
bors Apr 23, 2013
391de1c
Remove a stray new operator in rust_task.h
alexcrichton Apr 23, 2013
2871f4d
auto merge of #6015 : catamorphism/rust/rustpkg-doc-second-try, r=cat…
bors Apr 23, 2013
ca73fbf
Use correct grammar for error message.
Apr 23, 2013
8884c6a
Use backticks for the unsafe keyword in error messages
alexcrichton Apr 23, 2013
da601be
auto merge of #6017 : brson/rust/revert-span-merge, r=catamorphism
bors Apr 23, 2013
54b0cbf
auto merge of #6020 : yichoi/rust/pull-0423, r=brson
bors Apr 23, 2013
212256b
auto merge of #6025 : alexcrichton/rust/issue-2697, r=catamorphism
bors Apr 23, 2013
b813d68
Attempt to fix x86 only strconv test failure
Kimundi Apr 23, 2013
0290caa
auto merge of #6026 : isanbard/rust/ca73fbf72615575f106ee18160580711a…
bors Apr 23, 2013
8cadcc4
auto merge of #6027 : alexcrichton/rust/more-backticks, r=catamorphism
bors Apr 23, 2013
52d3f55
core, rustc: Warning police
catamorphism Apr 23, 2013
aac73b2
rustc: Comments only: change XXX to FIXME
catamorphism Apr 23, 2013
7169907
rustc: Remove dead code
catamorphism Apr 23, 2013
88ccee7
auto merge of #6022 : catamorphism/rust/warning-police, r=catamorphism
bors Apr 23, 2013
a3e33cf
inline the primitive numeric operations
thestinger Apr 23, 2013
d9896d5
auto merge of #6028 : Kimundi/rust/strconv-test-fixup, r=brson
bors Apr 23, 2013
0b90493
auto merge of #6034 : thestinger/rust/num, r=catamorphism,pcwalton
bors Apr 23, 2013
91aeecf
Fix issue #5976 - HANDLE leaks and undefined/bad behavour
Apr 22, 2013
690120d
Remove os::waitpid because:
Apr 22, 2013
ceeffa1
Oops, the should_fail test needs to be ignored on windows.
Apr 23, 2013
62befac
Cleanup some mistakes made during rebasing/merging.
Apr 23, 2013
8708e0c
auto merge of #6010 : Dretch/rust/run-windows, r=brson
bors Apr 23, 2013
c089a17
Improve the unused unsafe block warning to include unsafe blocks in u…
alexcrichton Apr 23, 2013
4c08a8d
Removing more unnecessary unsafe blocks throughout
alexcrichton Apr 23, 2013
0c2ab66
Fixing some various warnings about unused imports
alexcrichton Apr 23, 2013
706096b
auto merge of #6038 : alexcrichton/rust/more-unsafe, r=pcwalton
bors Apr 24, 2013
aef2490
Implement Signed and Unsigned traits and remove related predicate fun…
brendanzab Apr 23, 2013
f39152e
Implement Natural trait
brendanzab Apr 24, 2013
ab8068c
Improve divide-by-zero error messages
brendanzab Apr 24, 2013
c8ac057
auto merge of #6041 : bjz/rust/numeric-traits, r=brson
bors Apr 24, 2013
6c0a7c7
libcore: remove @Rng from rand, and use traits instead.
huonw Apr 23, 2013
7b00921
libcore: convert the Program @-object to be a plain struct + impl.
huonw Apr 23, 2013
4a24f10
libcore: unify `gen_<type>` methods on `rand::RngUtil` into the gener…
huonw Apr 24, 2013
9860fe1
libcore: remove unnecessary deref
huonw Apr 24, 2013
e26f992
auto merge of #6036 : huonw/rust/core-less-at, r=nikomatsakis
bors Apr 24, 2013
345d5b8
Refactor core::run to remove the ProgRepr struct, which was
Apr 24, 2013
dd74807
Removed ascii functions from other modules
Kimundi Apr 23, 2013
3759b57
Fixed typo... And a billion other things.
Kimundi Apr 23, 2013
ee3789b
auto merge of #6029 : Kimundi/rust/ascii-encoding, r=thestinger
bors Apr 24, 2013
a784997
auto merge of #6044 : Dretch/rust/run-remove-progrepr, r=graydon
bors Apr 24, 2013
593bdd9
Fix incorrect replacement of `modulo` with `rem`
brendanzab Apr 24, 2013
03932f0
Move impls of `Num` out of core::num and clean up imports
brendanzab Apr 24, 2013
d4868ee
Use #[cfg(not(stage0))] to exclude items from stage0
brendanzab Apr 24, 2013
024bf2e
Rename Natural to Integer
brendanzab Apr 24, 2013
6fa054d
Use borrowed pointers for Integer methods
brendanzab Apr 24, 2013
dcd49cc
Add Fractional, Real and RealExt traits
brendanzab Apr 24, 2013
11d04d4
add a Counter iterator
thestinger Apr 24, 2013
a74aca5
Remove needless FIXME. Fixes #2811.
nikomatsakis Apr 25, 2013
0c6f9a8
auto merge of #6052 : nikomatsakis/rust/remove-2811, r=catamorphism
bors Apr 25, 2013
08109aa
core: Comments only -- move FIXME to correct location
catamorphism Apr 23, 2013
c2af1de
rustpkg: update README saying which tests pass
catamorphism Apr 23, 2013
6a3e26a
rustpkg: Make path searching work as described in the rustpkg doc
catamorphism Apr 23, 2013
f945e57
rustpkg: Correct directory structure in test scenarios
catamorphism Apr 23, 2013
4e2c8f4
rustpkg: Preliminary work on install command
catamorphism Apr 25, 2013
1d53bab
auto merge of #6051 : thestinger/rust/iterator, r=catamorphism,pcwalton
bors Apr 25, 2013
48c2418
Restore Round trait and move appropriate methods out of Real
brendanzab Apr 25, 2013
225ac21
Update impl of Round for Ratio
brendanzab Apr 25, 2013
92bf9b6
Add basic documentation for with_capacity
emberian Apr 25, 2013
91fb7b2
Move documentation for vec::windowed where it will be generated
emberian Apr 25, 2013
ac69ee4
auto merge of #6048 : bjz/rust/numeric-traits, r=pcwalton
bors Apr 25, 2013
0604468
auto merge of #6054 : catamorphism/rust/rustpkg, r=graydon
bors Apr 25, 2013
64412ec
auto merge of #6055 : cmr/rust/incoming, r=graydon,brson
bors Apr 25, 2013
2c99e3d
Suppress all 'cond' errors in valgrind. #5856
brson Apr 26, 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
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
.valgrindrc
lexer.ml
TAGS
TAGS.emacs
TAGS.vim
version.ml
version.texi
/Makefile
Expand All @@ -60,6 +62,7 @@ config.mk
/inst/
/mingw-build/
src/.DS_Store
/tmp/
/stage0/
/dl/
/stage1/
Expand All @@ -75,9 +78,12 @@ version.md
rust.tex
keywords.md
x86_64-apple-darwin/
x86_64-unknown-linux-gnu/
i686-unknown-linux-gnu/
doc/core/
tmp.*.rs
config.stamp
.DS_Store
src/etc/dl
.settings/
build/
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "src/llvm"]
path = src/llvm
url = git://github.com/brson/llvm.git
url = https://github.com/brson/llvm.git
[submodule "src/libuv"]
path = src/libuv
url = git://github.com/brson/libuv.git
url = https://github.com/brson/libuv.git
4 changes: 4 additions & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Bilal Husain <[email protected]>
Bill Fallon <[email protected]>
Brendan Eich <[email protected]>
Brendan Zabarauskas <[email protected]>
Brett Cannon <[email protected]>
Brian Anderson <[email protected]>
Brian J. Burg <[email protected]>
Brian Leibig <[email protected]>
Expand All @@ -50,6 +51,7 @@ Dave Herman <[email protected]>
David Forsythe <[email protected]>
David Klein <[email protected]>
David Rajchenbach-Teller <[email protected]>
Diggory Hardy <[email protected]>
Dimitri Krassovski <[email protected]>
Donovan Preston <[email protected]>
Drew Willcoxon <[email protected]>
Expand All @@ -76,9 +78,11 @@ Ian D. Bollinger <[email protected]>
Ilyong Cho <[email protected]>
Isaac Aggrey <[email protected]>
Ivano Coppola <[email protected]>
Jack Moffitt <[email protected]>
Jacob Harris Cryer Kragh <[email protected]>
Jacob Parker <[email protected]>
Jakub Wieczorek <[email protected]>
James Miller <[email protected]>
Jason Orendorff <[email protected]>
Jed Davis <[email protected]>
Jeff Balogh <[email protected]>
Expand Down
14 changes: 13 additions & 1 deletion RELEASES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
Version 0.7 (July 2013)
-----------------------

* ??? changes, numerous bugfixes

* Semantic changes
* The `self` parameter no longer implicitly means `&'self self`, and can be explicitly marked
with a lifetime.

* Libraries
* New `core::iterator` module for external iterator objects

Version 0.6 (April 2013)
---------------------------
------------------------

* ~2100 changes, numerous bugfixes

Expand Down
6 changes: 3 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ need_cmd uname
need_cmd date
need_cmd tr
need_cmd sed

need_cmd file

msg "inspecting environment"

Expand Down Expand Up @@ -533,7 +533,7 @@ then
LLVM_VERSION=$($LLVM_CONFIG --version)

case $LLVM_VERSION in
(3.2svn|3.2|3.1svn|3.1|3.0svn|3.0)
(3.3|3.3svn|3.2|3.2svn)
msg "found ok version of LLVM: $LLVM_VERSION"
;;
(*)
Expand Down Expand Up @@ -859,7 +859,7 @@ do
LDFLAGS=$LLVM_LDFLAGS

LLVM_FLAGS="$LLVM_TARGETS $LLVM_OPTS $LLVM_BUILD \
$LLVM_HOST $LLVM_TARGET"
$LLVM_HOST $LLVM_TARGET --with-python=$CFG_PYTHON"

msg "configuring LLVM with:"
msg "$LLVM_FLAGS"
Expand Down
53 changes: 38 additions & 15 deletions doc/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,10 @@ expression context, the final namespace qualifier is omitted.
Two examples of paths with type arguments:

~~~~
# use core::hashmap::linear::LinearMap;
# use core::hashmap::HashMap;
# fn f() {
# fn id<T:Copy>(t: T) -> T { t }
type t = LinearMap<int,~str>; // Type arguments used in a type expression
type t = HashMap<int,~str>; // Type arguments used in a type expression
let x = id::<int>(10); // Type arguments used in a call expression
# }
~~~~
Expand Down Expand Up @@ -802,7 +802,7 @@ An example of `use` declarations:

~~~~
use core::float::sin;
use core::str::{slice, to_upper};
use core::str::{slice, contains};
use core::option::Some;

fn main() {
Expand All @@ -813,8 +813,8 @@ fn main() {
info!(Some(1.0));

// Equivalent to
// 'info!(core::str::to_upper(core::str::slice("foo", 0, 1)));'
info!(to_upper(slice("foo", 0, 1)));
// 'info!(core::str::contains(core::str::slice("foo", 0, 1), "oo"));'
info!(contains(slice("foo", 0, 1), "oo"));
}
~~~~

Expand Down Expand Up @@ -1467,10 +1467,10 @@ A complete list of the built-in language items follows:
: Elements can be subtracted.
`mul`
: Elements can be multiplied.
`div`
: Elements can be divided.
`mod`
: Elements have a modulo operation.
`quot`
: Elements have a quotient operation.
`rem`
: Elements have a remainder operation.
`neg`
: Elements can be negated arithmetically.
`not`
Expand Down Expand Up @@ -1653,11 +1653,12 @@ Path expressions are [lvalues](#lvalues-rvalues-and-temporaries).

### Tuple expressions

Tuples are written by enclosing two or more comma-separated
Tuples are written by enclosing one or more comma-separated
expressions in parentheses. They are used to create [tuple-typed](#tuple-types)
values.

~~~~~~~~ {.tuple}
(0,);
(0f, 4.5f);
("a", 4u, true);
~~~~~~~~
Expand Down Expand Up @@ -1855,11 +1856,11 @@ The default meaning of the operators on standard types is given here.
: Multiplication.
Calls the `mul` method on the `core::ops::Mul` trait.
`/`
: Division.
Calls the `div` method on the `core::ops::Div` trait.
: Quotient.
Calls the `quot` method on the `core::ops::Quot` trait.
`%`
: Modulo (a.k.a. "remainder").
Calls the `modulo` method on the `core::ops::Modulo` trait.
: Remainder.
Calls the `rem` method on the `core::ops::Rem` trait.

#### Bitwise operators

Expand Down Expand Up @@ -2578,7 +2579,7 @@ to the record type-constructor. The differences are as follows:

Tuple types and values are denoted by listing the types or values of their
elements, respectively, in a parenthesized, comma-separated
list. Single-element tuples are not legal; all tuples have two or more values.
list.

The members of a tuple are laid out in memory contiguously, like a record, in
order specified by the tuple type.
Expand Down Expand Up @@ -3251,6 +3252,28 @@ of runtime logging modules follows.
* `::rt::backtrace` Log a backtrace on task failure
* `::rt::callback` Unused

#### Logging Expressions

Rust provides several macros to log information. Here's a simple Rust program
that demonstrates all four of them:

```rust
fn main() {
error!("This is an error log")
warn!("This is a warn log")
info!("this is an info log")
debug!("This is a debug log")
}
```

These four log levels correspond to levels 1-4, as controlled by `RUST_LOG`:

```bash
$ RUST_LOG=rust=3 ./rust
rust: ~"\"This is an error log\""
rust: ~"\"This is a warn log\""
rust: ~"\"this is an info log\""
```

# Appendix: Rationales and design tradeoffs

Expand Down
108 changes: 108 additions & 0 deletions doc/rustpkg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
% Rustpkg Reference Manual

# Introduction

This document is the reference manual for the Rustpkg packaging and build tool for the Rust programming language.

## Disclaimer

Rustpkg is a work in progress, as is this reference manual.
If the actual behavior of rustpkg differs from the behavior described in this reference,
that reflects either an incompleteness or a bug in rustpkg.

# Package searching

rustpkg searches for packages using the `RUST_PATH` environment variable,
which is a colon-separated list (semicolon-separated on Windows) of directories.

Each directory in this list is a *workspace* for rustpkg.

`RUST_PATH` implicitly contains an entry for `./.rust` (as well as
`../.rust`, `../../.rust`,
and so on for every parent of `.` up to the filesystem root).
That means that if `RUST_PATH` is not set,
then rustpkg will still search for workspaces in `./.rust` and so on.
`RUST_PATH` also implicitly contains an entry for the system path:
`/usr/local` or the equivalent on Windows.
This entry comes after the implicit entries for `./.rust` and so on.
Finally, the last implicit entry in `RUST_PATH` is `~/.rust`
or the equivalent on Windows.

Each workspace may contain one or more packages.

# Package structure

A valid workspace must contain each of the following subdirectories:

* 'src/': contains one subdirectory per package. Each subdirectory contains source files for a given package.

For example, if `foo` is a workspace containing the package `bar`,
then `foo/src/bar/main.rs` could be the `main` entry point for
building a `bar` executable.
* 'lib/': `rustpkg install` installs libraries into a target-specific subdirectory of this directory.

For example, on a 64-bit machine running Mac OS X,
if `foo` is a workspace containing the package `bar`,
rustpkg will install libraries for bar to `foo/lib/x86_64-apple-darwin/`.
The libraries will have names of the form `foo/lib/x86_64-apple-darwin/libbar-[hash].dylib`,
where [hash] is a hash of the package ID.
* 'bin/': `rustpkg install` installs executable binaries into a target-specific subdirectory of this directory.

For example, on a 64-bit machine running Mac OS X,
if `foo` is a workspace, containing the package `bar`,
rustpkg will install executables for `bar` to
`foo/bin/x86_64-apple-darwin/`.
The executables will have names of the form `foo/bin/x86_64-apple-darwin/bar`.
* 'build/': `rustpkg build` stores temporary build artifacts in a target-specific subdirectory of this directory.

For example, on a 64-bit machine running Mac OS X,
if `foo` is a workspace containing the package `bar` and `foo/src/bar/main.rs` exists,
then `rustpkg build` will create `foo/build/x86_64-apple-darwin/bar/main.o`.

# Package identifiers

A package identifier identifies a package uniquely.
A package can be stored in a workspace on the local file system,
or on a remote Web server, in which case the package ID resembles a URL.
For example, `github.com/mozilla/rust` is a package ID
that would refer to the git repository browsable at `http://github.com/mozilla/rust`.

## Source files

rustpkg searches for four different fixed filenames in order to determine the crates to build:

* `main.rs`: Assumed to be a main entry point for building an executable.
* `lib.rs`: Assumed to be a library crate.
* `test.rs`: Assumed to contain tests declared with the `#[test]` attribute.
* `bench.rs`: Assumed to contain benchmarks declared with the `#[bench]` attribute.

# Custom build scripts

A file called `pkg.rs` at the root level in a workspace is called a *package script*.
If a package script exists, rustpkg executes it to build the package
rather than inferring crates as described previously.

# Command reference

## build

`rustpkg build foo` searches for a package with ID `foo`
and builds it in any workspace(s) where it finds one.
Supposing such packages are found in workspaces X, Y, and Z,
the command leaves behind files in `X`'s, `Y`'s, and `Z`'s `build` directories,
but not in their `lib` or `bin` directories.

## clean

`rustpkg clean foo` deletes the contents of `foo`'s `build` directory.

## install

`rustpkg install foo` builds the libraries and/or executables that are targets for `foo`,
and then installs them either into `foo`'s `lib` and `bin` directories,
or into the `lib` and `bin` subdirectories of the first entry in `RUST_PATH`.

## test

`rustpkg test foo` builds `foo`'s `test.rs` file if necessary,
then runs the resulting test executable.
Loading