about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2011-11-24Use new mod syntax in check-fast driverBrian Anderson-1/+2
2011-11-24rustc: Fix a bug in cdir attribute parsingBrian Anderson-0/+13
The first attribute of the first mod was being applied to every mod.
2011-11-24rustc: Add a path attribute for crate directivesHaitao Li-42/+53
The path information was an optional "filename" component of crate directive AST. It is now replaced by an attribute with metadata named "path". With this commit, a directive mod foo = "foo.rs"; should be written as: #[path = "foo.rs"] mod foo; Closes issue #906.
2011-11-24Register snapshotsBrian Anderson-0/+5
2011-11-24rustc: Accepts `path` attributes for crate directivesHaitao Li-1/+3
Temporarily allow path specified in either as attribute or in AST, like: #[path = "mymod.rs"] mod mymod = "mymod.rs"; This is a transitional commit to avoid creating a stage1 snapshot.
2011-11-24rustc: Fix position of diagnostic highlight linesHaitao Li-1/+1
Diagnostic highlight lines are incorrect placed when the related line number is 10, 100, etc. The root cause is line number are treated as 0 based (should be 1 based) when calculating offset of line number digits.
2011-11-23Add some changes that *should* have been in e98286b594Marijn Haverbeke-4/+5
Forgot to amend the commit after fixing the failure.
2011-11-23doc: Build keywords multitable automaticallyHaitao Li-0/+103
Keywords are now listed in a plain text file. They're sorted in column-major order and rendered as a texinfo multitable in rust.texi. Fixes issue #1216.
2011-11-23Allow import directives in any blockMarijn Haverbeke-82/+113
Closes #49
2011-11-23Make type_kind properly recognize ty_ptr as sendableMarijn Haverbeke-3/+3
2011-11-23Rollback return-by-referenceMarijn Haverbeke-370/+50
It's proving too inflexible, so I'm ripping out the extra complexity in the hope that regions will, at some point, provide something similar. Closes #918
2011-11-23Remove deep scope traversal in revoke_cleanMarijn Haverbeke-8/+2
It is not needed anymore.
2011-11-23Remove last traces of auth keywordMarijn Haverbeke-42/+0
The reference now has an empty hole where the auth keyword used to be. Changing the keyword table seems to require manually sorting the keywords and putting them back into some kind of arcane interleaved order. I'll open an issue to actually fix this. Closes #1211
2011-11-22rt: Make __morestack build on win32Brian Anderson-1/+6
2011-11-22rt: Add x86_64 record_sp stubBrian Anderson-0/+12
2011-11-22rt: Make __morestack (without unwinding) work on 32-bit linuxBrian Anderson-30/+110
2011-11-22stdlib: Use c_ints instead of ints for nativesBrian Anderson-9/+9
2011-11-22stdlib: Fix some busted macos libc declsBrian Anderson-6/+6
2011-11-22stdlib: win32 fixes for dir handlingBrian Anderson-6/+7
2011-11-22Add fs::rmdir() and tempfile/gen_str() tests.Elly Jones-1/+53
2011-11-22once more with feeling...Elly Jones-2/+1
2011-11-22Use type inference!Elly Jones-1/+1
2011-11-22Fix long linesElly Jones-2/+5
2011-11-22std: add fs::mkdir(), rng.gen_str(), tempfile::mkdtemp()Elly Jones-5/+78
Signed-off-by: Elly Jones <elly@leptoquark.net>
2011-11-22rustc: Allow trailing comma in record fieldsHaitao Li-30/+58
2011-11-22Register snapshotsBrian Anderson-0/+5
2011-11-22comp: allowed the declaration of pure fn's in native modsStefan Plantikow-0/+4
This is especially useful for the native calls in std::math This commit does NOT yet point to new snapshots
2011-11-22Add hacks to extract and compile tutorial codeMarijn Haverbeke-10/+0
Not included in the build by default, since it's fragile and kludgy. Do something like this to run it: cd doc/tutorial RUSTC=../../build/stage2/bin/rustc bash test.sh Closes #1143
2011-11-22Properly check for copies when constructing a record using withMarijn Haverbeke-1/+29
Closes #989
2011-11-22Make type_needs_drop accurate, get rid of type_has_pointersMarijn Haverbeke-47/+24
Closes #1209
2011-11-22Fix inconsistency in ordering of patterns during alt compilationMarijn Haverbeke-17/+12
Closes #1153
2011-11-22Only warn about unreachable range patterns when appropriateMarijn Haverbeke-231/+59
Also simplifies the literal-munging, and moves it into ast_util Closes #1170
2011-11-22Make ast::visit only descend into types when necessaryMarijn Haverbeke-7/+15
If visit_ty is not overridden, it uses a stub function which does not descend into types. Closes #1204
2011-11-21Fixed documentation comment glitches in the logic ADTsStefan Plantikow-5/+5
2011-11-21stdlib: added (2,3,4)-valued logic ADTsStefan Plantikow-2/+848
This is useful for writing caches and perhaps in typestate predicates. It also adds a companion module for bool with from_str, to_str, ... fns.
2011-11-22runtest.rs: Fix typo in error messageHaitao Li-1/+1
2011-11-21rustc: Remove abi from ast::native_modHaitao Li-128/+126
2011-11-21Ignore test_log_functions test for nowMarijn Haverbeke-0/+1
It fails under valgrind
2011-11-21std: declared fns in math to be pure; requires calling libc via unsafeStefan Plantikow-14/+14
2011-11-21Added logarithm functions for floats to std::mathStefan Plantikow-0/+81
Thanks to marijn for helping with #[link_name]
2011-11-21Separate vec::map and vec::map_mutMarijn Haverbeke-1/+13
The safe-reference checker requires a copy of each mapped-over element only when the vector is mutable. Let's not pay that cost for immutable vectors.
2011-11-21Close hole in safe-reference analysisMarijn Haverbeke-3/+15
2011-11-21Add a pass that checks that blocks are only used in safe waysMarijn Haverbeke-6/+47
Closes #1188
2011-11-21Fix bad interaction between last-use finding and referencesMarijn Haverbeke-15/+32
The last-use pass now takes input from the alias pass to not mark things as last uses that are still accessed through a reference. Issue #925
2011-11-20Added a little sudoku solver to test/bench for everone's puzzle solving needsStefan Plantikow-0/+170
2011-11-18re-enable tests for #1058 and #1059Niko Matsakis-5/+2
2011-11-18add test for issue #1174Niko Matsakis-0/+16
2011-11-18get pure wrappers approach runningNiko Matsakis-106/+111
2011-11-18sketch out designNiko Matsakis-54/+98
2011-11-18rt: Add more comments to rust_task_sleepBrian Anderson-2/+2