about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2011-11-01Fix alignment of interior pointers of dynamic-size types. Closes #1112Brian Anderson-8/+63
GEP_tup_like finds interior pointers by creating a tuple of all the types preceding the element it wants a pointer to, then asks for the size of that tuple. This results in incorrect pointers when the alignment of that tuple is not the alignment of the interior type you're getting a pointer to.
2011-10-31rt: Fix long linesPatrick Walton-6/+6
2011-10-31rt: Have __morestack conform to the calling convention that LLVM generates ↵Patrick Walton-9/+12
on x86
2011-10-31Register snapshotsBrian Anderson-10/+6
2011-10-31Update snapshot scripts for new stdlib nameBrian Anderson-2/+11
2011-10-31rustc: Find crates by matching the name metadataHaitao Li-22/+9
2011-10-31rustc: Enable segmented stacks in LLVM when --stack-growth is onPatrick Walton-0/+10
2011-10-31Stub a __morestack implementation and stack segment allocation. Untested.Patrick Walton-1/+70
2011-10-31Fix the filenames used in some IO testsBrian Anderson-4/+4
These tests are relying on not being able to open certain files, but did not work correctly when run as root.
2011-10-31Add a char::to_digit functionMatt Brubeck-10/+40
2011-10-31Correct handling of non-numeric chars in parse_bufMatt Brubeck-3/+61
Without this fix, int::parse_buf and uint::parse_buf return incorrect results for any strings that contain non-numeric characters. Fixes #1102.
2011-10-31Rename std::str::chars to iter_charsMarijn Haverbeke-5/+5
2011-10-31Add a way to iterate over a str's chars to std::strMarijn Haverbeke-1/+29
2011-10-30Fix int::parse_buf for negative numbers (#1102)Matt Brubeck-3/+20
2011-10-30Make float::from_str ignore whitespace (#1089)Matt Brubeck-4/+43
Discard leading and trailing whitespace, for consistency with C/JS/Java/etc. Also, don't allow floating point numbers that start or end with 'e'.
2011-10-29Update keyword list in vim/syntax/rust.vimMatt Brubeck-6/+6
Removed: iter, each, put, macro, meta, syntax, port, spawn Added: block, copy
2011-10-29stdlib: Fix type in docs for result::chanBrian Anderson-1/+1
2011-10-29Cleanup the existing platform-specific ignored testsBrian Anderson-55/+11
2011-10-29Add the ability to ignore tests by compiler configBrian Anderson-21/+65
[test] [ignore(cfg(target_os = "win32"))]
2011-10-29stdlib: Add vec::concat to concatenate a vector of vectorsBrian Anderson-0/+18
Compare to str::concat
2011-10-29Add more logging to crate resolutionBrian Anderson-1/+12
2011-10-29rustc: Support 'companion mod's for crates and directory modsBrian Anderson-14/+88
Under this scheme when parsing foo.rc the parser will also look for foo.rs to fill in the crate-level module, and when evaluating a directory module directive it will look for a .rs file with the same name as the directory.
2011-10-29stdlib: Make io failures recoverable by returning a resultBrian Anderson-37/+123
2011-10-29stdlib: Add result::chain for composing resultsBrian Anderson-8/+49
2011-10-29stdlib: Add result moduleBrian Anderson-0/+87
This contains a result tag with ok(T) and error(U) variants. I expect to use it for error handling on functions that can recover from errors, like in the io module.
2011-10-28stdlib: Add fs::splitextBrian Anderson-0/+105
Splits a path into the filename + extension
2011-10-28stdlib: Add vec::init. Returns all but the last element.Brian Anderson-1/+43
Per haskell, to go with head/tail, and last.
2011-10-28Cleanup: Remove uneccesary generic_cmp function.Matt Brubeck-27/+13
2011-10-28Add more isNaN testsMatt Brubeck-0/+8
2011-10-28Change behavior of float::nonpositive/nonnegativeMatt Brubeck-8/+30
Rather than being defined as !positive and !negative, these should act the same as negative and positive (respectively). The only effect of this change should be that all four functions will now return false for NaN.
2011-10-28Use IEEE 754 semantics for NaN (Issue #1084)Matt Brubeck-59/+149
2011-10-28+0.0 should be positive and -0.0 should be negative.Matt Brubeck-6/+25
2011-10-28stdlib: Replace an unsafe cast with ptr::nullBrian Anderson-2/+1
2011-10-28stdlib: Make reinterpret_cast and leak unsafeBrian Anderson-17/+23
2011-10-28stdlib: Make merge_sort take [mutable? T]Brian Anderson-2/+11
2011-10-28stdlib: Fix the list::foldl implementationBrian Anderson-8/+18
2011-10-28stdlib: Rename list::length to list::len to match vec::lenBrian Anderson-4/+4
2011-10-28stdlib: Rename the 'ls_' param in list functions to 'ls'Brian Anderson-7/+7
2011-10-28stdlib: Make list::from_vec more efficientBrian Anderson-7/+1
2011-10-28stdlib: make list::from_vec take [mutable? T]Brian Anderson-1/+9
2011-10-28rustc: Remove broken --depend flagBrian Anderson-10/+0
2011-10-28rustc: -h cleanupBrian Anderson-2/+2
2011-10-28rustc: Change --OptLevel to --opt-levelBrian Anderson-7/+7
2011-10-28rustc: Use consistent error handling in mainBrian Anderson-16/+17
2011-10-28rustc: Extract error reporting from codemapBrian Anderson-13/+42
2011-10-28Reorder statements in rustc main to avoid bounds checkBrian Anderson-3/+3
2011-10-28rustc: Lift output file name handling out of mainHaitao Li-40/+53
2011-10-28Produce dyn libraries with proper namesHaitao Li-23/+22
Issue #744
2011-10-28Make shared kind the default only for generic functionsMarijn Haverbeke-71/+63
You almost never want a function with pinned type params. For types, objects, resources, and tags, pinned types are actually often more sane. For most of these, shared rarely makes sense. Only tricky case is objs -- you'll have to think about the kinds you want there. Issue #1076
2011-10-28Move to blocks, rather than fn@s, in parser.rsMarijn Haverbeke-16/+17