about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2011-12-09Swap arg order for option::{may,maybe}Erick Tryzelaar-2/+2
This lets us write the block syntax sugar: option::may(x) { |y| … }
2011-12-09Allow type annotations for blocksMarijn Haverbeke-10/+12
I.e. {|foo: int| -> int foo + 2} Issue #1275
2011-12-08rustc: Actually hook the crate_type attribute into sessionBrian Anderson-3/+9
2011-12-08Add crate_type attributes to rustc, std, coreBrian Anderson-3/+3
2011-12-08rustc: Support 'crate_type' attributeBrian Anderson-0/+74
[crate_type = "lib"] builds it as a library. [crate_type = "bin"] builds it as an executable. Executable is the default. --lib and --bin switches override.
2011-12-08rustc: Move linking into compile_inputBrian Anderson-16/+20
2011-12-08rustc: Determine the crate type (lib/bin) in the session, not session optsBrian Anderson-16/+28
This is in preparation for adding a #[crate_type] attribute
2011-12-08rt: Make __morestack work on win32Brian Anderson-10/+9
2011-12-08Error when parsing the empty record typeMarijn Haverbeke-0/+1
Issue #1200
2011-12-08Allow binding of nested patternsMarijn Haverbeke-79/+132
See src/test/run-pass/nested-patterns.rs for some examples. The syntax is boundvar@subpattern Which will match the subpattern as usual, but also bind boundvar to the whole matched value. Closes #838
2011-12-08Stop passing around some unused information in typeckMarijn Haverbeke-27/+7
2011-12-08Consider variant constructors pure functions for the purpose of purity checkingMarijn Haverbeke-3/+3
Closes #1269
2011-12-07rt: Reorganize and add documentation for rust_upcall.cppBrian Anderson-170/+163
2011-12-07rt: Run most upcalls on the C stackBrian Anderson-60/+66
2011-12-07use util::rational to work around bug w/ floats on winNiko Matsakis-4/+4
2011-12-07Purge old map impl: more collisions, not clear it is safe on 64bitNiko Matsakis-205/+0
2011-12-07improve commentsNiko Matsakis-3/+21
2011-12-07fix old map impl, add loggingNiko Matsakis-15/+25
2011-12-07add some debugging logsNiko Matsakis-1/+13
2011-12-07dec size in removeNiko Matsakis-2/+2
2011-12-07make rehashing more efficient by not re-allocating entriesNiko Matsakis-18/+17
2011-12-07implement a chained hashmapNiko Matsakis-2/+243
2011-12-07Register new snapshots (containing libcore auto-importing it now).Graydon Hoare-3/+7
2011-12-07Mention new dirs in README.Graydon Hoare-1/+4
2011-12-07Change snapshot script to pick up host libcore as well.Graydon Hoare-6/+18
2011-12-07rt: Fix alignment of stacks generated by __morestackBrian Anderson-1/+0
2011-12-07Inject the view_items for core in the right place, add comment documenting ↵Graydon Hoare-5/+10
why the wrong place was wrong.
2011-12-07Remove stmt_crate_directive, it's vestigial and confusing.Graydon Hoare-37/+2
2011-12-07Fix test that used an oversized int literalMarijn Haverbeke-2/+2
2011-12-07Restore accidentally overwritten testMarijn Haverbeke-18/+74
2011-12-07Check for literals that are out of range for their typeMarijn Haverbeke-2/+40
2011-12-07Change literal representation to not truncateMarijn Haverbeke-731/+479
Also shuffles around the organization of numeric literals and types, separating by int/uint/float instead of machine-vs-non-machine types. This simplifies some code. Closes #974 Closes #1252
2011-12-07Register new snapshots.Graydon Hoare-0/+7
2011-12-07Merge branch 'master' of github.com:graydon/rustGraydon Hoare-149/+494
2011-12-07repair more hash functionsNiko Matsakis-17/+17
2011-12-07Disallow binding by-mut-ref and by-move argumentsMarijn Haverbeke-12/+43
Fix bug in bound by-copy arguments. Closes #1261
2011-12-07Make typestate properly descend pattern guardsMarijn Haverbeke-0/+10
Closes #1265
2011-12-06rt: Put 16 guard bytes at the end of the stackBrian Anderson-2/+15
2011-12-06rt: Rename stk_seg.limit to stk_seg.endBrian Anderson-9/+8
rust_task is using the word limit it two ways, so one has to change.
2011-12-06rt: Reorganize rust_upcall.cpp a bitBrian Anderson-32/+36
2011-12-06rt: Convert log_type and cmp_type upcalls to shim formBrian Anderson-10/+39
2011-12-06rt: Move upcall_cmp_type/upcall_log_type to rust_upcall.cppBrian Anderson-4/+24
2011-12-06modify upcalls to take structs as argsNiko Matsakis-84/+252
2011-12-06fix hash function: + binds tighter than <<Niko Matsakis-1/+4
2011-12-06hack for now: map uint hashes into a u32, which helps x86_64 perf.Niko Matsakis-8/+12
2011-12-06do not stringify AST nodes unless emitting commentsNiko Matsakis-2/+6
2011-12-06Merge branch 'master' of github.com:graydon/rustNiko Matsakis-6/+65
2011-12-06Fix condition in snapshot script. Argv is never 2 long, it can be 3 or 4.Graydon Hoare-1/+1
2011-12-06rt: Various tweaks to make __morestack unwinding work on linuxBrian Anderson-6/+65
When unwinding through __morestack the stack limit in the TLS is invalidated and must be reset. Instead of actually landing at __morestack we're just going to make all our Rust landing pads call upcall_reset_stack_limit, which will find the stack segment that corresponds to the current stack pointer and put the limit in the TLS. Also massively expand the stack segment red zone to make more room for the dynamic linker. Will fix in the future.
2011-12-06Merge branch 'master' of github.com:graydon/rustNiko Matsakis-37/+58