Damien Grassart
c19ea057fa
The compiler is now in src/rustc
2012-03-10 02:51:38 +01:00
Patrick Walton
e8c7b5347d
rustc: Add a region checking pass
...
Errors aren't reported yet, because the regions aren't properly inferred from the & operator at the moment and that would break the tests.
2012-03-09 17:39:32 -08:00
Brian Anderson
0905ad2bbe
rustdoc: Vastly simplify the document model
...
Don't attempt to impose any structure for documenting arguments, return
values, etc.
2012-03-09 17:24:56 -08:00
Brian Anderson
9f4c0d71e5
rustdoc: Update the demo module
2012-03-09 17:24:56 -08:00
Brian Anderson
e399263b5e
rustdoc: Write sections in markdown
2012-03-09 17:24:56 -08:00
Brian Anderson
0ad8265fee
rustdoc: Add the concept of 'sections'
2012-03-09 17:24:55 -08:00
Tim Chevalier
321fd80219
Add an infinite loop construct
...
Add a loop {} construct for infinite loops, and use it in test
cases. See #1906 for details.
2012-03-09 16:40:58 -08:00
Patrick Walton
4ffcb95974
rustc: Perform region inference
2012-03-09 16:40:37 -08:00
Graydon Hoare
7f55e7d087
Add a couple more missing pieces to libc and os.
2012-03-09 16:38:23 -08:00
Patrick Walton
b7d3874349
rustc: Wrap regions in a node ID
2012-03-09 16:10:11 -08:00
Patrick Walton
7b938d8903
rustc: Add region def ids to the AST
2012-03-09 15:55:13 -08:00
Patrick Walton
e2f6052c6d
Revert "rustc: Create def IDs for region parameters"
...
This reverts commit 0d4cb75949
.
2012-03-09 14:40:36 -08:00
Patrick Walton
0d4cb75949
rustc: Create def IDs for region parameters
2012-03-09 14:06:43 -08:00
Patrick Walton
2975bcdd7d
rustc: Stub a to-string implementation for region types
...
Not too useful without region resolution yet, but there it is.
2012-03-08 18:24:17 -08:00
Patrick Walton
92ed73d0bd
rustc: Add pretty printing support for the address-of operator. Un-XFAIL-pretty simple-regions.rs.
2012-03-08 18:10:07 -08:00
Patrick Walton
c40bfec45d
test: Add a simple region test, xfail'd in the pretty printer
2012-03-08 17:45:36 -08:00
Patrick Walton
8ce6b0dd21
rustc: Add appropriate type predicates for references. Simple uses of references/region pointers now work.
2012-03-08 17:22:43 -08:00
Brian Anderson
256146bba4
rustdoc: Rename desc_pass to text_pass
2012-03-08 17:00:03 -08:00
Patrick Walton
71799cff2b
rustc: Actually write the type back
2012-03-08 16:44:33 -08:00
Patrick Walton
ddeaea2287
rustc: Change the address-of operator to an explicit production so that we can parse the mutability
2012-03-08 16:34:36 -08:00
Patrick Walton
0722786664
rustc: Add some missing cases in various folds for reference types and some broken trans code for the address-of operator
2012-03-08 15:55:28 -08:00
Tim Chevalier
0c5fdc8745
Rename last to last_opt, last_unsafe to last
...
As per discussion on IRC. I am about to file an RFC for further
discussion about the more general issue of whether to enforce
invariants through types, typestate, or dynamic checks, but for now,
removing the misleading name "last_unsafe".
2012-03-08 15:25:56 -08:00
Patrick Walton
8047c0cd68
rustc: Typecheck dereference operations on safe references.
...
They require unsafe blocks for now. This will be removed once they typecheck properly.
2012-03-08 15:08:26 -08:00
Brian Anderson
57596cbe53
rustdoc: Improve formatting of subsection headers
2012-03-08 15:05:13 -08:00
Brian Anderson
7d686d6372
rustdoc: Format return values consistently
2012-03-08 15:05:13 -08:00
Brian Anderson
6ad653bb31
rustdoc: Add some more demo docs
2012-03-08 15:05:13 -08:00
Brian Anderson
ac8b2c8354
rustdoc: Don't bother reporting the type of return values
2012-03-08 15:05:13 -08:00
Brian Anderson
5c28b2c1d1
rustdoc: Don't bother reporting the type of arguments
...
This is already displayed in the function signature. Simpler this way.
2012-03-08 15:05:13 -08:00
Patrick Walton
fcde161f4f
rustc: Stub typechecking for the address-of operator
2012-03-08 14:55:51 -08:00
Tim Chevalier
d048a00cf3
Change util::unreachable to core::unreachable
...
Closes #1931
2012-03-08 14:30:01 -08:00
Patrick Walton
0824d1501b
rustc: Add ty_rptr support to the visitor
2012-03-08 14:23:22 -08:00
Patrick Walton
0e17cdb627
rustc: Add regions to the type system
2012-03-08 14:05:56 -08:00
Tim Chevalier
ebc1d3e704
Rename last_total to last_unsafe
...
See Issue 1943 for any discussion (reopen it if necessary).
Closes #1943
2012-03-08 13:07:31 -08:00
Patrick Walton
c9cf73f0a8
rustc: represend -> represent in a comment
2012-03-08 13:01:08 -08:00
Marijn Haverbeke
e71703db02
Properly serialize is_last_use values
...
They were all normalized to the same thing by the serializer.
2012-03-08 21:29:07 +01:00
Marijn Haverbeke
c71306b0db
Explicitly store self_ids use for self locals in methods
...
This makes it possible to move them between crates without confusion,
and to instantiate them at a point where the monomorphizing
substitutions are known.
Issue #1944
2012-03-08 21:17:32 +01:00
Marijn Haverbeke
fd465f91a8
Drop collect_items pass, create decls on demand
...
This solves a problem with inlined functions that have inner functions.
2012-03-08 21:17:32 +01:00
Patrick Walton
6f8fe78120
rustc: Parse the safe address-of operator
2012-03-08 12:12:04 -08:00
Patrick Walton
ec8380f9b1
rustc: Add the safe address-of operator to the AST
2012-03-08 12:04:02 -08:00
Patrick Walton
19c651f4a1
rustc: Parse region types
2012-03-08 11:26:31 -08:00
Patrick Walton
6224fdcd08
rustc: Add region-annoted type parameters to the AST; stub associated patterns
2012-03-08 10:49:43 -08:00
Patrick Walton
c09e339133
etc: Allow a build dir to be specified in gen-astencode, for out of tree builds
2012-03-08 10:32:36 -08:00
Brian Anderson
bdec806848
rustdoc: Look for pandoc in ~/.cabal
2012-03-07 19:22:02 -08:00
Niko Matsakis
2bfed908e3
Fix #1941 : inlining of items that themselves contain nested items
...
The fix is to drop nested items from the encoded AST. Nested items may
themselves be inlined, but that is an independent question.
2012-03-07 18:06:29 -08:00
Patrick Walton
c9375fed8d
stdlib: Stop incurring vtable dispatch costs when hashmaps are used
...
This required changing almost all users of hashmaps to import the hashmap interface first.
The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-07 17:35:13 -08:00
Patrick Walton
c245d9e980
Revert "stdlib: Stop incurring vtable dispatch costs when hashmaps are used"
...
This reverts commit f0250a23d3
.
2012-03-07 16:56:45 -08:00
Patrick Walton
f0250a23d3
stdlib: Stop incurring vtable dispatch costs when hashmaps are used
...
This required changing almost all users of hashmaps to import the hashmap interface first.
The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-07 16:51:31 -08:00
Brian Anderson
a9bd76b3c1
rustdoc: Implement more rules for generating internal pandoc links
2012-03-07 15:45:16 -08:00
Graydon Hoare
e30611110a
Register new snapshots.
2012-03-07 15:05:43 -08:00
Brian Anderson
7f66df714a
rustdoc: Support #[doc(hidden)]
2012-03-07 14:50:39 -08:00
Tim Chevalier
90ac69904f
Improve a type error message (avoid the word 'non-dereferenceable')
2012-03-07 14:14:34 -08:00
Niko Matsakis
713006c7b6
add mutability annotations to libcore
2012-03-07 07:47:50 -08:00
Marijn Haverbeke
7b81cd8930
Fix #1503 in a saner way
...
Closes #1933
2012-03-07 09:19:29 +01:00
Brian Anderson
e55d7d6add
rustdoc: Remove escaping pass
2012-03-06 20:31:05 -08:00
Brian Anderson
e536e8a933
rustdoc: Don't escape characters between backticks
2012-03-06 20:16:53 -08:00
Brian Anderson
ae5ea85c36
core: Resolve a FIXME in box::ptr_eq
2012-03-06 19:15:39 -08:00
Graydon Hoare
04e7bd6758
More UTF-16 wrapping on win32. Close #1927 .
2012-03-06 18:49:08 -08:00
Brian Anderson
cf8f5b7606
rustdoc: Escape HTML special characters
2012-03-06 17:46:52 -08:00
Brian Anderson
29ac3c811d
rustdoc: Put brief descriptions in the indexes
2012-03-06 17:16:25 -08:00
Brian Anderson
a4ff220133
rustdoc: Write links correctly for multi-page docs
2012-03-06 17:16:25 -08:00
Brian Anderson
801b02b25d
rustdoc: Parallelize markdown_pass
2012-03-06 17:16:25 -08:00
Brian Anderson
513d956dce
rustdoc: Run pandoc in a way that won't deadlock waiting for IO
2012-03-06 17:16:25 -08:00
Brian Anderson
dc0b9f44e2
rt: Change the rust_port refcounting scheme to avoid races
...
Hopefully...
2012-03-06 17:14:40 -08:00
Graydon Hoare
e9571850da
UTF-16-ify the win32 env routines.
2012-03-06 16:03:39 -08:00
Graydon Hoare
0e3dd5a3ee
Export os, libc and path from libcore.
2012-03-06 16:03:39 -08:00
Brian Anderson
dea19b25c9
rustdoc: Detect when pandoc isn't available
2012-03-06 14:48:47 -08:00
Brian Anderson
b8c8e43381
rustdoc: Add some more error reporting for pandoc
2012-03-06 14:48:47 -08:00
Brian Anderson
fc9b55d65f
rustdoc: Write a new file for each page
2012-03-06 14:48:47 -08:00
Brian Anderson
fbd8a76e8a
rustdoc: Add a pass to split the document into pages
2012-03-06 14:48:47 -08:00
Brian Anderson
e9b5f4204a
core: Remove some explicit move capture clauses
2012-03-06 13:05:03 -08:00
Brian Anderson
3c0e984449
rustdoc: Remove Google's copyright notice
...
There is no Google code left.
2012-03-06 11:25:27 -08:00
Brian Anderson
d1c6e34e1c
core: Inline a bunch of unsafe functions
2012-03-06 11:20:43 -08:00
Niko Matsakis
712dd23541
make inline enabled by default
2012-03-06 09:01:40 -08:00
Marijn Haverbeke
fb61b8f262
Add a reachability checker, only export metadata for reachable items
...
Closes #1934
2012-03-06 17:11:30 +01:00
Marijn Haverbeke
4e4bd585cd
Track all exports in exp_map
...
This is needed because the reachability checker needs to be able to
follow exports.
Issue #1934
2012-03-06 17:11:30 +01:00
Marijn Haverbeke
19508c7d53
Make trans pass responsible for pulling in inlined functions
...
This makes the logic for finding the inlinable items much easier --
they are simply pulled in lazily when encountered.
2012-03-06 14:00:21 +01:00
Marijn Haverbeke
9b88219723
Don't attach def ids to types when the type already contains the def id
2012-03-06 14:00:13 +01:00
Marijn Haverbeke
cc99ce5bdd
Register new snapshot
2012-03-06 13:58:32 +01:00
Brian Anderson
ee991cae81
rt: Add a hack to fix a port detach bug
2012-03-05 20:02:25 -08:00
Brian Anderson
32f7818e7f
etc: Add more helgrind suppressions for i686
2012-03-05 19:39:57 -08:00
Brian Anderson
958c321083
rt: Fix the atomic get_ref_count method to avoid races
2012-03-05 19:39:56 -08:00
Brian Anderson
1347d04bb0
rt: Properly block tasks while waiting for port detach
2012-03-05 19:39:56 -08:00
Brian Anderson
4c4a2320eb
rt: Make rust_port_detach less contentious
...
It still utterly dominates some benchmarks with busy waiting, but at least it
doesn't create lock contention while doing so.
2012-03-05 19:39:56 -08:00
Brian Anderson
0a5603cb58
rt: Make linked failure less prone to deadlock
...
Still a mess.
2012-03-05 19:39:56 -08:00
Brian Anderson
cc276fe3c9
rt: Be more precise with VALGRIND_MAKE_MEM_UNDEFINED
2012-03-05 19:39:56 -08:00
Brian Anderson
c78da1e170
rt: Stop calling prepare_valgrind_stack when it's not needed
2012-03-05 19:39:56 -08:00
Brian Anderson
f057f00300
rt: Simplify reap_dead_tasks
2012-03-05 19:39:56 -08:00
Brian Anderson
8efe4b8913
rt: Add an assert to the scheduler loop
2012-03-05 19:39:56 -08:00
Brian Anderson
e08f46db68
rt: Move receive code into rust_port
2012-03-05 19:39:56 -08:00
Brian Anderson
77295c56c5
rt: Simplify the recv interface
2012-03-05 19:39:56 -08:00
Brian Anderson
8e0efce0da
rt: Move some code from rust_port_detach into rust_port::detach
2012-03-05 19:39:56 -08:00
Brian Anderson
93fa933a19
rt: Move some locking from rust_port to rust_task
2012-03-05 19:39:56 -08:00
Brian Anderson
e3ccac8ed3
rt: Renome rust_task::lock to port_lock
2012-03-05 19:39:55 -08:00
Brian Anderson
fa566ad2fd
rt: Make the rust_task_thread lock private
2012-03-05 19:39:55 -08:00
Brian Anderson
2465a63a69
rt: Move transition from rust_task to rust_task_thread
2012-03-05 19:39:55 -08:00
Brian Anderson
237652299e
rt: Protect cond and cond_name with the state_lock
2012-03-05 19:39:55 -08:00
Brian Anderson
0432030c27
rt: Don't take the task lock on state transitions
2012-03-05 19:39:55 -08:00
Brian Anderson
43f9f4d54a
etc: Add helgrind suppressions for libunwind
2012-03-05 19:39:55 -08:00
Brian Anderson
b2a075e20d
rt: Protect rust_task::state with a lock
2012-03-05 19:39:55 -08:00
Brian Anderson
d7298a797b
rt: Protect rust_task::killed with a lock
2012-03-05 19:39:55 -08:00
Brian Anderson
8a4c8bab84
test: Add test for #979
2012-03-05 18:41:55 -08:00
Brian Anderson
d2135597e9
std: Use util::unreachable
2012-03-05 18:23:01 -08:00
Brian Anderson
77ed09728b
rustc: Use std::util::unreachable
2012-03-05 18:16:25 -08:00
Brian Anderson
b32e09172c
rustc: Make llvm_err non-returning
2012-03-05 18:16:15 -08:00
Brian Anderson
602015f902
rustc: Use consistent casing for names of timed passes
2012-03-05 17:44:11 -08:00
Brian Anderson
0ee96de4ee
rustc: Lower case error messages
2012-03-05 17:05:20 -08:00
Brian Anderson
13a07ce1d4
rustc: Remove some redundant text from error messages
2012-03-05 17:05:20 -08:00
Niko Matsakis
8820d4485b
print type arguments when pretty-printing all nominal types
2012-03-05 16:47:52 -08:00
Niko Matsakis
3269a4043c
rewrite vec to be more unsafe, more inlined
2012-03-05 16:47:52 -08:00
Niko Matsakis
0416a946b7
give user control of whether we use inline hint or inline always
...
supply inline hints for resource ctors/dtors
2012-03-05 16:47:51 -08:00
Niko Matsakis
cc2ebfc105
set LLVM inline hint for all #[inline] methods, whether CC or local
2012-03-05 16:47:51 -08:00
Graydon Hoare
e400733e90
Extra removal, missed by last commit.
2012-03-05 16:02:38 -08:00
Graydon Hoare
6c87c34277
Remove dead code from rt (debug_obj, rust_obj, rust_closure, rust_box_obj, rust_vtable)
2012-03-05 15:50:11 -08:00
Brian Anderson
15df3950ad
rustc: Remove remaining non-inbounds GEPs
2012-03-05 15:12:36 -08:00
Brian Anderson
3a4c96a196
rt: Remove virtual methods from memory_region, rust_srv
2012-03-05 14:47:24 -08:00
Graydon Hoare
5bf185b499
Port fsync, waitpid and remove_file to core::{os,libc}.
2012-03-05 14:00:44 -08:00
Erick Tryzelaar
faccd4ac92
std: export json::error.
2012-03-05 08:47:21 -08:00
Brian Anderson
633881a562
test: xfail-fast run-pass/classes-simple.rs
2012-03-04 14:13:18 -08:00
Tim Chevalier
e2fa6f03f5
Translate simple classes
...
Programs using classes with fields only (no methods) compile and run,
as long as nothing refers to a class in a different crate (todo).
Also changed the AST representation of classes to have a separate
record for constructor info (instead of inlining the fields in the
item_class node), and fixed up spans and pretty-printing for
classes.
2012-03-04 12:43:17 -08:00
Brian Anderson
1d826b735c
rustdoc: Build appropriate filenames for pages
2012-03-04 00:23:54 -08:00
Brian Anderson
0e3cee747a
rustdoc: Convert markdown writer to a writer_factory
2012-03-03 23:56:38 -08:00
Brian Anderson
0b2ffa854f
rustdoc: Simplify the markdown_pass interface a bit
2012-03-03 23:20:40 -08:00
Brian Anderson
2cdb662022
rustdoc: Remove some bogus error handling around process spawning
2012-03-03 22:09:31 -08:00
Brian Anderson
f8742b476f
rustdoc: Introduce the concept of a 'page'
2012-03-03 21:56:17 -08:00
Tim Chevalier
481d27a65d
Update paths in gen-astencode
2012-03-03 17:49:15 -08:00
Brian Anderson
2d7750bc30
core: Fix os::load_self types on FreeBSD
2012-03-02 22:43:56 -08:00
Brian Anderson
38b2b74413
rt: Move RUST_POISON_ON_FREE into rust_env
2012-03-02 20:13:52 -08:00
Erick Tryzelaar
6b0c4822c1
std: add a fs::remove_file function.
2012-03-02 19:15:36 -08:00
Erick Tryzelaar
3cb2cd1f71
comp/fuzzer: rewrite to use io::with_str_reader.
2012-03-02 19:15:35 -08:00
Erick Tryzelaar
f630ebdb6a
comp/std: rename io::string_reader to io::str_reader.
2012-03-02 19:15:35 -08:00
Erick Tryzelaar
1404a864a4
std: add a io::with_str_reader fn to remove a str copy
2012-03-02 19:15:34 -08:00
Graydon Hoare
5812bebf87
Sadly, vec::init_elt_mut vanished since last (rushed) rebase.
2012-03-02 18:53:06 -08:00
Graydon Hoare
dafd649806
First cut at consolidated core::os module built on core::libc.
2012-03-02 18:46:13 -08:00
Graydon Hoare
87c14f1e3d
Move src/comp to src/rustc
2012-03-02 18:46:13 -08:00
Graydon Hoare
9228947fe1
Avoid hitting unicode lib per char.
2012-03-02 18:45:43 -08:00
Brian Anderson
fdc5b53c6e
etc: Add helgrind suppressions for random locking order in rust_port_selector
2012-03-02 17:59:12 -08:00
Brian Anderson
c76739072c
etc: Add some helgrind suppressions for uv
2012-03-02 17:22:31 -08:00
Brian Anderson
ed7d25bb6d
rt: Checking port_table.is_empty() requires a lock
2012-03-02 17:10:14 -08:00
Brian Anderson
04d9cc18a5
rt: Protect rust_task::supervisor with a lock
2012-03-02 16:33:33 -08:00
Brian Anderson
f4ce965ce7
rt: Port ref counts are protected by the task lock. Ick.
2012-03-02 16:33:33 -08:00
Brian Anderson
3d991bac6c
rustdoc: Whitespace
2012-03-02 16:27:31 -08:00
Brian Anderson
87b9d67b66
rustdoc: Write indexes in output
2012-03-02 16:20:53 -08:00
Brian Anderson
3ed6f6520f
core: Remove _mut functions from vec
...
Instead, use vec::to_mut/from_mut to transform vectors in place as
needed.
2012-03-02 15:49:49 -08:00
Graydon Hoare
47e7a05a28
Add some utf16 routines for OS API interop.
2012-03-02 15:47:40 -08:00
Brian Anderson
14306756b4
rt: Always delete task stacks on the task thread
...
There's not a real race here, but it makes helgrind happy and is arguably
less prone to future errrors.
2012-03-02 15:21:59 -08:00
Brian Anderson
9ec94f714a
etc: Add more lock_and_signal helgrind suppressions
2012-03-02 15:21:48 -08:00
Brian Anderson
3d67939c41
rustdoc: Begin constructing indexes
2012-03-02 15:17:27 -08:00
Brian Anderson
3923c8ee89
etc: Add helgrind suppression for lock_held_by_current_thread
2012-03-02 14:08:02 -08:00
Brian Anderson
a04127d291
test: xfail-fast the cci tests
2012-03-02 13:46:42 -08:00
Brian Anderson
78bfdb11c8
Revert "rust: xfail-fast run-pass/cci_no_inline_exe"
...
This reverts commit 95099cddcf
.
2012-03-02 13:46:02 -08:00
Brian Anderson
09f191f3a7
Revert "test: xfail-fast run-pass/cci_iter.exe"
...
This reverts commit c0a5e21b29
.
2012-03-02 13:45:18 -08:00
Brian Anderson
95099cddcf
rust: xfail-fast run-pass/cci_no_inline_exe
2012-03-02 13:44:40 -08:00
Brian Anderson
c0a5e21b29
test: xfail-fast run-pass/cci_iter.exe
2012-03-02 13:36:11 -08:00
Brian Anderson
fd12459d94
test: xfail-fast run-pass/cci_impl_exe
2012-03-02 13:23:55 -08:00
Brian Anderson
77fc4e7ee7
std: vec::to_ptr -> vec::unsafe::to_ptr
2012-03-02 12:29:40 -08:00
Niko Matsakis
d3a0f7e9fc
emit mthd data if marked inline
2012-03-02 06:47:25 -08:00
Niko Matsakis
6473a87cec
restructure to better support method inlining
2012-03-02 06:47:25 -08:00
Niko Matsakis
def72bda47
retool inline encoding to handle methods, fix tests
2012-03-02 06:47:25 -08:00
Niko Matsakis
12c68bcd6d
make sure we do not bind unique closures (or blocks, for that matter)
2012-03-02 06:47:25 -08:00
Brian Anderson
8478349b8b
rustdoc: Remove some debug logging
2012-03-02 02:12:12 -08:00
Brian Anderson
96f565492d
rt: Make fields of rust_task_thread private where possible
2012-03-01 21:41:11 -08:00
Brian Anderson
b6c57dbba2
rt: rust_task_thread isn't ref counted
2012-03-01 21:19:12 -08:00
Brian Anderson
084a699a7a
rt: Remove vec_append.ll
...
This looks like just a random snippet of llasm.
2012-03-01 18:20:40 -08:00
Brian Anderson
4056082833
rustdoc: Extract markdown header logic. Needed for indexing
2012-03-01 18:13:22 -08:00
Brian Anderson
4991943f4e
rustdoc: Stop having pandoc write the TOC
...
We will generate them ourselves
2012-03-01 17:29:53 -08:00
Brian Anderson
3cd8c57a54
rustdoc: Add index records to the doc tree
2012-03-01 16:34:09 -08:00
Brian Anderson
5df44bd066
rt: Remove rust_kernel::live_tasks. Unused
2012-03-01 14:53:20 -08:00
Brian Anderson
3cec2d6954
rustdoc: Teach rustdoc to run pandoc
2012-03-01 14:21:25 -08:00
Tim Chevalier
48c763c098
Use the correct prestate for calls
...
The prestate for calls was getting set incorrectly to the poststate for the operator
in the call. This worked before since most of the time, operator expressions are
pure. Issue 1895 shows how this breaks when the operator is a closure that has a
move-in capture clause.
(I had a several-day, multi-file patch for this that didn't work... and then it
turned out to be a one-line fix. The joys of programming.)
Closes #1895
2012-03-01 09:16:26 -08:00
Marijn Haverbeke
03984561d4
Make sure resource item types get written by typechecker
...
Closes #1916
2012-03-01 17:50:08 +01:00
Marijn Haverbeke
072b015515
Add test case for #1894
2012-03-01 10:11:28 +01:00
Brian Anderson
1471b1f3ff
std: DeCamelCase fs::splitDirnameBasename
2012-02-29 23:45:51 -08:00
Brian Anderson
9208684e74
rustdoc: Extract markdown_writer from markdown_pass
2012-02-29 23:45:51 -08:00
Brian Anderson
516f87f860
rustdoc: Write markdown to a file instead of stdout
2012-02-29 23:45:51 -08:00
Brian Anderson
ad82a031f2
rustdoc: Use unique types for writing markdown output
...
No shared types allowed.
2012-02-29 23:45:51 -08:00
Brian Anderson
81a0745361
etc: Remove rustdoc script
2012-02-29 23:45:51 -08:00
Brian Anderson
2ac6dbc9ba
rustdoc: Refactor markdown_pass
2012-02-29 23:45:51 -08:00
Niko Matsakis
2dd5b3ace6
optionally enforce local variable mutability
2012-02-29 19:31:15 -08:00
Brian Anderson
99f231f347
core: Change a number of arguments in vec to const vecs
2012-02-29 18:13:29 -08:00
Niko Matsakis
4132cbd22a
un-xfail test, remove old comment
2012-02-29 12:49:15 -08:00
Niko Matsakis
ed952ecf68
report the type of the method as the fty, not the type of the expression
...
using the type of the expression causes us to lose information
about when the method was declaring with a generic signature, which
leads to producing incorrect code, particularly in the case of returning
unit types (which would then get an undefined output ptr)
2012-02-29 11:54:48 -08:00
Niko Matsakis
7d0958f70f
add the ability to snag the frame so we can verify that we are inlining
2012-02-29 11:54:47 -08:00
Erick Tryzelaar
3d104cfb41
Merge pull request #1912 from tychosci/json-newline-after-outer-rparen
...
libstd: Skip trailing whitespaces after outer rparen
2012-02-29 10:53:28 -08:00
Marijn Haverbeke
4be92670a4
Delete-trailing-whitespace
2012-02-29 19:07:23 +01:00
Marijn Haverbeke
c3ae72d60b
Actually use last_use info on closed over var in kind.rs
...
Issue ##1894
2012-02-29 18:53:30 +01:00
Marijn Haverbeke
0da1aca498
Recognize last uses for copied closed-over variables
...
And clean up and fix some bad things in last_use.rs.
Closes #1894
2012-02-29 18:06:26 +01:00
Tycho Sci
ecf87c3180
libstd: Skip trailing whitespaces after JSON value
2012-02-29 17:47:17 +09:00
Tycho Sci
0465d5217d
libstd: Skip trailing whitespaces after outer rparen
...
This makes "{ \"foo\": 1 }\n" and "[ 1 ]\n" valid json string
2012-02-29 16:24:28 +09:00
Brian Anderson
58e2083c0a
rustdoc: Parse command line opts
2012-02-28 21:36:44 -08:00
Brian Anderson
6c9527ab79
rustdoc: Add -h flag
2012-02-28 21:36:44 -08:00
Patrick Walton
362f23641a
libcore: Remove vec::to_ptr in favor of vec::unsafe::to_ptr. Closes #1829 .
2012-02-28 20:43:39 -08:00
Erick Tryzelaar
d3331bce98
rt: strings should escape chars like '\n' as '\n'
2012-02-28 18:05:25 -08:00
Erick Tryzelaar
012dec5e57
std: rewrite json.rs to fix bugs and use readers/writers
...
Our json implementation did not conform to the spec, and
was missing support for escpaed characters and exponental
numbers. This fixes it, and adds support for reading/writing
json directly from/to a stream.
There are two things left unimplemented. We could use a
"to_json" iface/impl, but that really needs traits to cut
down on code duplication. The other is it wouldn't be that
not that hard to turn this implementation into a event driven
parser like YAJL, but I ran into some type-inference bugs,
so I cut that out. It'd be nice to revisit this in the future
though.
2012-02-28 18:00:50 -08:00
Erick Tryzelaar
8cc23aab6d
expose float::pow_with_uint.
2012-02-28 18:00:50 -08:00
Erick Tryzelaar
6865df2611
core/std: whitespace fixes.
2012-02-28 18:00:50 -08:00
Erick Tryzelaar
ec51d8fd03
std: Add helpers to simplify making str io::writers
2012-02-28 18:00:50 -08:00
Erick Tryzelaar
b9948baf78
vim: add "to" as a keyword.
2012-02-28 18:00:50 -08:00
Brian Anderson
8d617e638e
rt: Reset the stack boundary after returning from crust functions
2012-02-28 17:56:15 -08:00
Brian Anderson
b9089b5335
std: Ignore uv tests on FreeBSD
2012-02-28 17:56:15 -08:00
Jeff Olson
9831ee3e67
changing rust loop to 1 thread
2012-02-28 17:56:15 -08:00