Brian Anderson
4a04a188e3
Convert NOTEs to FIXMEs
2013-02-27 18:44:35 -08:00
Brian Anderson
2f858de1c3
Remove the last remnants of rtcalls
2013-02-27 18:34:04 -08:00
Ben Striegel
43d43adf6b
Turn old drop blocks into Drop traits
2013-02-27 19:14:19 -05:00
bors
33e7a1f087
auto merge of #5145 : Kimundi/rust/incoming, r=catamorphism
2013-02-27 13:27:48 -08:00
Patrick Walton
07c3f5c0de
librustc: Forbid pub or priv before trait implementations
2013-02-27 09:40:16 -08:00
Patrick Walton
573a31dfa7
libsyntax: Forbid mutable vectors. rs=demuting
2013-02-27 09:40:16 -08:00
Patrick Walton
8d7e6ef772
libsyntax: Forbid ~mut and ~const. rs=demuting
2013-02-27 09:40:15 -08:00
Marvin Löbel
c2be2ec42d
Added ToStr implementations for &[T] and @[T]
2013-02-27 16:02:53 +01:00
bors
f4e8ac21cd
auto merge of #5135 : brson/rust/start, r=pcwalton
...
r?
#3406
Pretty straightforward. I'm using opaque pointers instead trying to get trans and core to agree on the types of the main function and crate map. One oddity is that this required changing the order of the `-lrustrt` argument to the linker in order to resolve `upcall_new_stack`. Linkers are mysterious.
2013-02-26 23:45:39 -08:00
bors
99a902c81d
auto merge of #5120 : jbclements/rust/macros-have-scope, r=pcwalton
...
r?
After this patch, macros declared in a module, function, or block can only be used inside of that module, function or block, with the exception of modules declared with the #[macro_escape] attribute; these modules allow macros to escape, and can be used as a limited macro export mechanism.
This pull request also includes miscellaneous comments, lots of new test cases, a few renamings, and a few as-yet-unused data definitions for hygiene.
2013-02-26 20:00:38 -08:00
Brian Anderson
f4327230fa
Add a 'start' lang item and use it instead of rust_start
2013-02-26 19:43:26 -08:00
Luqman Aden
f460c2adf8
Move levenshtein distance fn to core::str.
2013-02-26 17:23:30 -08:00
bors
0ded562e83
auto merge of #5023 : mitsuhiko/rust/make-absolute-refactor, r=catamorphism
...
This pull request moves the logic from os::make_absolute() into the path module and fixes path joining for Windows. It does this by adding an ``unsafe_join()`` function that implements the operating system's path joining semantics.
Additionally it also adds an ``is_restricted()`` method to the trait which will return true if the path points to a windows device file.
2013-02-26 14:03:52 -08:00
bors
0e6d895ed8
auto merge of #5119 : Kimundi/rust/incoming, r=catamorphism
...
Removed deprecated `str()` functions in int-template.rs and uint-template.rs
2013-02-26 10:54:39 -08:00
John Clements
598e814152
Hoist macro defs out of inner function
2013-02-26 10:26:42 -08:00
Marvin Löbel
42b0bacd76
Removed deprecated str() functions in int-template.rs and uint-template.rs
2013-02-26 16:38:30 +01:00
Patrick Walton
e2f90091cf
libcore: Move Cell to core and de-~mut core and std
2013-02-26 04:18:12 -08:00
Patrick Walton
c483aab4ae
librustc: Implement a lint mode for mutable structures; deny by default. r=tjc
2013-02-26 04:18:11 -08:00
Olivier Saut
88f8868158
Add current year in the copyright header
2013-02-26 10:02:53 +01:00
Olivier Saut
4519f8290a
Various typos corrected
2013-02-26 09:56:04 +01:00
Peter Williams
a712d828f9
libcore: remove default to_str implementations for pointer types
...
These couldn't be overridden and so ended up being quite restrictive. This has
the side effect of changing the stringification of ~vecs, but nothing in
relied on this. Closes #4869 .
2013-02-23 17:43:08 -05:00
bors
1bc4e3f6a2
auto merge of #5078 : bblum/rust/incoming, r=brson
...
r? @brson
2013-02-22 13:39:34 -08:00
bors
c316189d15
auto merge of #5081 : brson/rust/pipes, r=pcwalton
...
r?
2013-02-22 11:24:38 -08:00
Graydon Hoare
0309af458c
Put unique allocs in managed heap when they might contain managed boxes.
2013-02-21 23:01:17 -08:00
Brian Anderson
dab6a85230
core: Extract comm from pipes. #4742
2013-02-21 17:36:54 -08:00
bors
ab784b7de5
auto merge of #5059 : Kimundi/rust/incoming, r=catamorphism
...
compiles-as-is, but needs a snapshot to remove the `stage0`ed extfmt export in core.
Closes #4750
2013-02-21 16:42:35 -08:00
Ben Blum
9dae4cf1f0
Fix private::exclusive_unwrap_conflict test. Fixes #4689 .
2013-02-21 19:42:18 -05:00
bors
c0218fb106
auto merge of #5069 : pcwalton/rust/plussing-2, r=pcwalton
2013-02-21 08:35:12 -08:00
Patrick Walton
c0defda499
librustc: Separate the rest of the trait bounds with + and stop parsing space-separated ones. rs=plussing
2013-02-21 08:29:48 -08:00
Marvin Löbel
3792eb2a38
Moved core::extfmt to core::private::extfmt
...
Needs a snapshot to remove stage0 extfmt export in core
2013-02-21 13:32:20 +01:00
bors
a02da4ecde
auto merge of #5063 : pcwalton/rust/plussing, r=pcwalton
2013-02-20 21:22:30 -08:00
Patrick Walton
bf2a225c0b
librustc: Separate most trait bounds with '+'. rs=plussing
2013-02-20 21:14:20 -08:00
Matthijs 'Thiez' Hofstra
9776c38731
Changed a test to use intrinsics.rs and changed a few lines that were too long, had bad whitespace, etc.
2013-02-20 20:45:17 +01:00
Matthijs 'Thiez' Hofstra
675bdcf341
Created libcore/private/intrinsics.rs, which aims to contain every
...
rustc intrinsic. Several files in libcore have been changed to use
these intrinsics.
As of yet, none of the intrinsics are documented.
2013-02-20 20:39:49 +01:00
bors
f68335113b
auto merge of #5002 : catamorphism/rust/one-tuples, r=graydon
...
r? @graydon - This is for greater uniformity (for example, macros that generate
tuples). rustc already supported 1-tuple patterns, but there was no
way to construct a 1-tuple term.
@graydon , as far as your comment on #4898 - it did turn out to be solvable inside the macro (since @luqmana already fixed it using structs instead), but I still think it's a good idea to allow 1-tuples, for uniformity. I don't think anyone is likely to trip over it, and I'm not too worried that it changes the amount of ambiguity.
2013-02-19 09:14:33 -08:00
Graydon Hoare
968ab03026
rt: fix memory-unsafe random seed logic, r=valgrindclean
2013-02-19 07:06:36 -08:00
Tim Chevalier
dc30cc356b
core: Fix BSD breakage, I hope
2013-02-18 20:12:17 -08:00
Armin Ronacher
c77c5c4674
Added is_restricted() to path
2013-02-19 01:54:05 +00:00
Tim Chevalier
aa284de1fc
rustc: For one-tuples, make parsing and printing the type work
...
and add a test to reflect-visit-data
2013-02-18 17:45:56 -08:00
Armin Ronacher
b07eab5faa
Improved windows path handling support
2013-02-19 01:34:48 +00:00
Armin Ronacher
c8d8f6cfec
Refactored make_absolute into functionality on the Path
2013-02-18 22:48:18 +00:00
Daniel Micay
6956e81c9b
vec: grow_fn doesn't require Copy
2013-02-17 14:09:09 -05:00
Graydon Hoare
585d6f7b00
rustpkg: Massage for landing.
2013-02-15 18:50:51 -08:00
Zack Corr
b10dc1af06
Move semver to std and finish rustpkg
2013-02-15 18:04:10 -08:00
Zack Corr
2192d11cd1
Correct Zack Corr's email in AUTHORS.txt
2013-02-15 18:04:10 -08:00
Zack Corr
321e3c4909
Add cmp::Ord implementation for semver::Version
2013-02-15 18:04:10 -08:00
Zack Corr
226b61ba5f
rustpkg: Add package script parsing
2013-02-15 18:04:10 -08:00
bors
3e97cce27d
auto merge of #4957 : Kimundi/rust/incoming, r=catamorphism
...
Moved them into own module and made them not depend on an Round trait impl for integers and generic math functions that can fail on integers any more.
2013-02-15 17:29:57 -08:00
Graydon Hoare
1b87dedc0e
attempt to fix BSD breakage
2013-02-15 17:28:51 -08:00
Patrick Walton
bb833ca0f0
librustc: Stop parsing impl Type : Trait and fix several declarations that slipped through. r=tjc
2013-02-15 16:59:56 -08:00