Brian Anderson
afcf4f2639
core::rt: Don't abort when reporting an unknown uv error
2013-05-15 12:19:15 -07:00
Brian Anderson
174ec1e422
core::rt: Error handling for TcpStream.read
2013-05-15 12:19:15 -07:00
Brian Anderson
0a54bad3d1
core::rt: Initialize logging
2013-05-15 12:19:14 -07:00
Brian Anderson
cc2897d559
core: Replace use of libc::getenv with os::getenv
2013-05-15 12:19:14 -07:00
Brian Anderson
f6401bad24
core: Use a global lock instead of runtime lock for os::getenv, etc. #4726
2013-05-15 12:19:14 -07:00
Brian Anderson
36ad366519
core::rt: Add a test of standalone use of the runtime
2013-05-15 12:19:14 -07:00
Brian Anderson
bfd9aa9755
core:rt: A few micro-opts
2013-05-15 12:19:14 -07:00
Brian Anderson
0acb0d91c0
Remove stray binary
2013-05-15 11:21:49 -07:00
bors
f4c88c7da0
auto merge of #6495 : thestinger/rust/vim, r=luqmana
2013-05-15 11:20:01 -07:00
Corey Richardson
6ef226d5d9
Add unsetenv wrapper
2013-05-15 13:40:35 -04:00
bors
bcec83aaee
auto merge of #6493 : brson/rust/tls, r=thestinger
2013-05-15 10:14:04 -07:00
bors
d806c96ffb
auto merge of #6490 : brson/rust/rusti, r=brson
2013-05-15 09:14:05 -07:00
Youngsoo Son
f11297f608
rename at_vec::from_owned
and at_vec::from_slice
to at_vec::to_managed_consume
and at_vec::to_managed
2013-05-16 00:33:54 +09:00
bors
4e82610099
auto merge of #6487 : recrack/rust/vec_len, r=thestinger
...
Rename vec::len(var) to var.len()
```
libcore, libfuzzer, librustc, librustdoc, libstd, libsyntax
test/auxiliary
test/bench
test/run-pass
```
2013-05-15 07:38:07 -07:00
bors
803c12d85f
auto merge of #6486 : recrack/rust/gitignore, r=catamorphism
...
add *.swo (vi tempory file)
2013-05-15 06:38:01 -07:00
bors
62c7027a32
auto merge of #6485 : cmr/rust/local_rename_import_error, r=catamorphism
2013-05-15 05:43:58 -07:00
Junyoung Cho
37fe2b60d5
Merge type_span and type_def, and ditto with value_span and value_def
2013-05-15 21:33:33 +09:00
Lenny222
017df987b8
remove deriving_eq, deriving_iter_bytes, deriving_clone (deprecated in 0.6)
2013-05-15 10:51:40 +02:00
Daniel Micay
cda3ac905a
rc: fix tests
2013-05-15 04:34:31 -04:00
bors
4e4f90d4a0
auto merge of #6482 : catamorphism/rust/unsafe-fn-autoderef, r=catamorphism
2013-05-14 23:59:19 -07:00
Björn Steinbrink
109bb7c78b
Allow static strings to be used with keyword checks
2013-05-15 08:01:04 +02:00
bors
217f96339a
auto merge of #6224 : erickt/rust/rustc-cleanup, r=erickt
...
Just a couple minor cleanups and renames of librustc
2013-05-14 22:57:37 -07:00
Daniel Micay
75822f2894
add a DeepClone trait
...
for deep copies through shared ownership boundaries
2013-05-15 01:36:41 -04:00
bors
31cedf6927
auto merge of #6478 : dotdash/rust/inlining, r=catamorphism
...
Not inlining these affects the hash table performance quite badly.
2013-05-14 22:00:01 -07:00
Daniel Micay
fa45958ec8
clone: clarify docstring
2013-05-15 00:42:52 -04:00
Daniel Micay
298a72602b
vim: be
is still a reserved keyword
2013-05-15 00:03:55 -04:00
Daniel Micay
d65a136cb0
vim: no more drop blocks
2013-05-15 00:01:58 -04:00
Daniel Micay
17a68d1e8d
vim: swap operator is gone
2013-05-14 23:59:55 -04:00
Brian Anderson
5af8646a8b
core: Fix leak in TLS. #6231
2013-05-14 20:50:43 -07:00
Erick Tryzelaar
729708d112
rustc: rename ty::method to ty::Method and add ctor
2013-05-14 20:10:46 -07:00
Erick Tryzelaar
18f6a51d0a
rustc: rename ast::self_ty and related fields to explicit_self
2013-05-14 20:10:46 -07:00
Erick Tryzelaar
70e02cf445
rustc: rename a method receiver type to rcvr_ty
2013-05-14 20:10:46 -07:00
Erick Tryzelaar
8d19f44c9d
syntax: add IterBytes impls for some ast types
2013-05-14 20:10:46 -07:00
Erick Tryzelaar
4bfe0f717f
rustc: rename some ty_self variables to self_arg
2013-05-14 20:10:45 -07:00
Erick Tryzelaar
9c80cf548a
rustc: Remove ty::arg
2013-05-14 20:10:45 -07:00
Erick Tryzelaar
191fdda46a
rustc: minor cleanup
2013-05-14 20:10:45 -07:00
Brian Anderson
2d35c01a28
rusti: Ignore tests. Failing on i686. #6489
2013-05-14 19:11:57 -07:00
bors
2fc6b0998b
auto merge of #6475 : sonwow/rust/tutorials, r=brson
2013-05-14 19:08:19 -07:00
Brian Anderson
6a6076ae81
core::rt: Ignore tcp test multiple_connect_interleaved_lazy_schedule
...
Hangs on mac.
2013-05-14 19:06:22 -07:00
Youngmin Yoo
a2a8596c3d
Rename vec::len(var) to var.len()
2013-05-15 11:05:28 +09:00
Tim Chevalier
80a7e2644c
rustpkg: Tests for well-formed and ill-formed package IDs...
...
...and cleanup, making how we handle version numbers more rational
(specifically, not passing in a versioned name to rustc
with the -o flag), and removing unused code.
2013-05-14 18:13:45 -07:00
bors
cf0f760560
auto merge of #6333 : bjz/rust/cond-macro, r=thestinger
...
Addressing issue #6037 , this Scheme-style conditional helps to improve code clarity in instances where the `if`, `else if`, and `else` keywords obscure predicates undesirably.
Here is an example:
~~~rust
let clamped =
if x > mx { mx }
else if x < mn { mn }
else { x };
~~~
Using `cond!`, the above could be written as:
~~~rust
let clamped = cond!(
(x > mx) { mx }
(x < mn) { mn }
_ { x }
);
~~~
The optional default case is denoted by `_`.
I have altered `std::fun_treemap` to demonstrate it in use. I am definitely interested in using it for some of the numeric functions, but I will have to wait for it to reach `stage0` first.
2013-05-14 18:11:00 -07:00
Brendan Zabarauskas
7e4a176dd3
Use parentheses for cond! macro instead of preceding pipes
...
This is temporary. Once the macro parser has improved or been re-written these can be removed.
2013-05-15 11:02:17 +10:00
Tim Chevalier
c3875e8c70
rustpkg: Implement URL-like package IDs
...
This patch implements package IDs like
github.com/catamorphism/test-pkg.
To support such package IDs, I changed the PkgId struct to contain
a LocalPath and a RemotePath field, where the RemotePath reflects
the actual URL and the LocalPath reflects the file name of the cached
copy. Right now, the only difference is that the local path doesn't
contain dashes, but this will change when we implement #6407 .
Also, PkgIds now have a short_name field -- though the short name
can be derived from the LocalPath, I thought it was cleaner not to
call option::get() wantonly.
2013-05-14 17:47:39 -07:00
Corey Richardson
68863153bb
Fix resolution tests
2013-05-14 20:34:12 -04:00
Corey Richardson
8a69dba84a
Fix ICE
2013-05-14 20:34:05 -04:00
Corey Richardson
3bfc1ca91d
Get span from import_directive
2013-05-14 19:28:28 -04:00
Corey Richardson
62cbea1ca1
Add span to some import resolution errors
2013-05-14 18:52:31 -04:00
Corey Richardson
52f8b22d4f
Add test for resolution errors
2013-05-14 18:51:37 -04:00
Corey Richardson
03f75b629a
Better error reporting with renaming imports
2013-05-14 18:51:36 -04:00