Steven Fackler
c3825c8351
env! syntax extension changes
...
env! aborts compilation of the specified environment variable is not
defined and takes an optional second argument containing a custom
error message. option_env! creates an Option<&'static str> containing
the value of the environment variable.
There are no run-pass tests that check the behavior when the environment
variable is defined since the test framework doesn't support setting
environment variables at compile time as opposed to runtime. However,
both env! and option_env! are used inside of rustc itself, which should
act as a sufficient test.
Close #2248
2013-08-08 10:35:42 -07:00
Erick Tryzelaar
03cc757fe9
std: more fixes for os.rs for windows
2013-08-08 06:37:55 -07:00
Paul Collins
3596f666bb
rust-mode: make indentation customizable
...
Add new variable rust-indent-offset, defaulting to
the old value, and use it.
2013-08-08 19:25:21 +12:00
bors
a0080f4e07
auto merge of #8245 : alexcrichton/rust/fmt2, r=graydon
...
This is a reopening of #8182 , although this removes any abuse of the compiler internals. Now it's just a pure syntax extension (hard coded what the attribute names are).
2013-08-08 00:22:52 -07:00
Erick Tryzelaar
7a5ee374e2
std: import HANDLE for os::list_dir for windows
2013-08-07 21:07:06 -07:00
Erick Tryzelaar
e7f0882214
Fix a stack to use the new .to_c_str() api
2013-08-07 20:25:38 -07:00
Corey Richardson
0627089bba
Fix fallout
2013-08-07 23:20:06 -04:00
Ben Blum
fb1575bcc4
(cleanup) Improve rtabort message for atomic-sleep.
2013-08-07 22:41:15 -04:00
Ben Blum
8ebdb37fd2
fix recv_ready for Port to take &self and not need to return a tuple. Close #8192 .
2013-08-07 22:41:15 -04:00
blake2-ppc
898226f39a
extra: Remove all each_* methods in treemap
...
.each_key(), .each_value() and the other methods are replaced by .iter()
and .rev_iter(), and restrictions of those iterators.
2013-08-07 22:41:15 -04:00
blake2-ppc
7afface3ff
extra: Implement .rev_iter() in treemap
...
Implement reverse iterators for TreeMap and TreeSet, that produce the
keys in backward order.
2013-08-07 22:41:14 -04:00
blake2-ppc
52b01c50cb
extra: External iterators for TreeSet set operations
...
Write external iterators for Difference, Sym. Difference, Intersection
and Union set operations.
These iterators are generic insofar that they could work on any ordered
sequence iterators, even though they are type specialized to the
TreeSetIterator in this case.
Looking at the `check` function in the treeset tests, rustc seems
unwilling to compile a function resembling::
fn check<'a, T: Iterator<&'a int>>(... )
so the tests for these iterators are still running the legacy loop
protocol.
2013-08-07 22:41:14 -04:00
blake2-ppc
4ab05f91f4
extra: Simplify Eq/Ord in treemap
...
Write the Eq and Ord impls for TreeMap in a more straightforward way
using iterator::Zip
2013-08-07 22:41:14 -04:00
Simon Sapin
240f8f03c9
Gedit/gtksourceview language spec: add 'in' keyword
2013-08-07 22:41:14 -04:00
Huon Wilson
8460dac909
std: add missing #[inline] annotation to the f64 arithmetic trait impls.
2013-08-07 22:41:14 -04:00
Do Nhat Minh
a185343fc4
misc help message fix
2013-08-07 22:41:14 -04:00
Alex Crichton
1b103912ea
Add some documentation about globals in ffi docs
2013-08-07 22:41:14 -04:00
Jordi Boggiano
403c52d2ae
Add weak_rng to get a random algo that puts more emphasis on speed than security
2013-08-07 22:41:14 -04:00
Jordi Boggiano
3db9dc1dfd
Document rand module with more emphasis on cryptographic security
2013-08-07 22:41:13 -04:00
Sangeun Kim
a9b7bec2e7
Change const to static
2013-08-07 22:41:13 -04:00
Sangeun Kim
19d0eb9060
Change Freeze to Static
2013-08-07 22:41:13 -04:00
Alex Crichton
ffd80aa276
Fix unit structs in cross-crate situtations
2013-08-07 22:41:13 -04:00
darkf
cc160a0028
extra: add internal
to {de,in}flate_bytes_ naming to address nit
2013-08-07 22:41:13 -04:00
darkf
dd5e8b218f
add extra::flate::deflate_bytes_zlib and a test
2013-08-07 22:41:13 -04:00
darkf
9b221f56f1
add inflate_bytes_zlib to exra::flate
2013-08-07 22:41:13 -04:00
Jordi Boggiano
a8f3f038c0
Turn OptGroups into a main opt and a main and an aliased opts
...
This way opt_present("apple") will match no matter if the user passed -a or --apple
2013-08-07 22:41:13 -04:00
Jordi Boggiano
a7f008bc39
Add missing getopts::groups::optflagmulti function
2013-08-07 22:41:13 -04:00
Alex Crichton
e99eff172a
Forbid priv
where it has no effect
...
This is everywhere except struct fields and enum variants.
2013-08-07 22:41:12 -04:00
Kevin Ballard
8964fcc5ac
Implement DoubleEndedIterator on Range
...
Range is now invertable as long as its element type conforms to Integer.
Remove int::range_rev() et al in favor of range().invert().
2013-08-07 22:41:09 -04:00
blake2-ppc
8523f6d643
rustc: Fix for-range loops that can use iterators
...
Transform range loops that can be regular iterator loops.
2013-08-07 22:39:57 -04:00
blake2-ppc
e7d4a9c7f2
Bugfix .each_edge in middle/graph.rs
...
Edge iterator used the length of the nodes vector, must be a mistake.
2013-08-07 22:39:57 -04:00
blake2-ppc
40bdbf0f5d
std: Fix for-range loops that can use iterators
...
Fix inappropriate for-range loops to use for-iterator constructs (or
other appropriate solution) instead.
2013-08-07 22:39:57 -04:00
blake2-ppc
026c1ae311
extra: Remove all .each methods in smallintmap
2013-08-07 22:39:57 -04:00
Alex Crichton
ffb670ffcd
Add initial support for a new formatting syntax
...
The new macro is available under the name ifmt! (only an intermediate name)
2013-08-07 19:21:43 -07:00
bors
9db698a81b
auto merge of #8358 : brson/rust/newrt, r=brson
2013-08-07 16:47:15 -07:00
Brian Anderson
85aaa44bec
Turn on the new runtime
2013-08-07 16:32:20 -07:00
Brian Anderson
52a37b63f4
rusti: Disable tests
...
Segfaulted on one of the bots. Maybe out of stack?
2013-08-07 16:32:20 -07:00
Brian Anderson
ce95b01014
Disable linked failure tests
...
The implementation currently contains a race that leads to segfaults.
2013-08-07 16:32:20 -07:00
Brian Anderson
b735e6b104
doc: Fix deadlocks in tutorial due to yield bustage
2013-08-07 16:32:20 -07:00
Brian Anderson
ad8010fdf2
xfail debug-info/option-like-enum
...
Don't understand why this broke.
2013-08-07 15:40:27 -07:00
Brian Anderson
b240524e5a
test: Fix deadlock in task-perf-linked-failure
2013-08-07 15:40:27 -07:00
Brian Anderson
44403f77d1
test: xfail a bunch of tests that are incorrectly reading os::args()[1]
2013-08-07 15:40:27 -07:00
Brian Anderson
84d17445f8
rustpkg: Disable test_uninstall
...
Seems to not work
2013-08-07 15:40:27 -07:00
Brian Anderson
0929eb4ac8
rustc: Use 4MB stacks. Needed for unoptimized builds apparently.
2013-08-07 15:40:27 -07:00
Brian Anderson
ae1ed4fd78
std: Allow spawners to specify stack size
2013-08-07 15:40:27 -07:00
Brian Anderson
f82da818a7
std::rt: Pull RUST_MIN_STACK from the environment
2013-08-07 15:40:27 -07:00
Brian Anderson
eb6143257d
std::rt: 2MB stacks again
2013-08-07 15:40:26 -07:00
bors
a85f9acbfc
auto merge of #8320 : mihneadb/rust/freq_count, r=cmr
2013-08-07 15:02:19 -07:00
Erick Tryzelaar
a54476b0aa
Merge remote-tracking branch 'remotes/origin/master' into remove-str-trailing-nulls
2013-08-07 14:10:39 -07:00
Erick Tryzelaar
aababbba8e
std: fix a bad type cast for in str.to_c_str()
2013-08-07 14:06:50 -07:00