about summary refs log tree commit diff
path: root/src/comp
AgeCommit message (Collapse)AuthorLines
2012-02-03Remove experimental GC codeMarijn Haverbeke-172/+8
It's been sitting unused long enough to have bitrotted completely.
2012-02-02Fix assumption in mut.rs that op overloading breaksMarijn Haverbeke-4/+1
Closes #1733
2012-02-01rustdoc: Add support for type itemsBrian Anderson-1/+5
2012-02-01Rename (again) str::unsafe::slice -> str::unsafe::slice_bytes andKevin Cantu-6/+6
str::unsafe::safe_slice -> str::unsafe::slice_bytes_safe_range
2012-02-01Propagating unsafe::slice 3Kevin Cantu-6/+7
2012-02-01Propagating unsafe::slice 2Kevin Cantu-8/+8
2012-02-01make boxes self-describing (fixes #1493)" (take 2)Niko Matsakis-282/+296
this will be used to generate a new snapshot.
2012-02-01Revert "make boxes self-describing (fixes #1493)" until a newNiko Matsakis-296/+282
snapshot is prepared.
2012-02-01make boxes self-describing (fixes #1493)Niko Matsakis-282/+296
2012-02-01Remove support for native typesMarijn Haverbeke-124/+17
Issue #1673
2012-02-01Get rid of native types in LLVM moduleMarijn Haverbeke-268/+250
Code is still somewhat kludgy because we don't have 32-bit enums. Issue #1673
2012-01-31Change option::t to optionTim Chevalier-259/+259
Now that core exports "option" as a synonym for option::t, search-and- replace option::t with option. The only place that still refers to option::t are the modules in libcore that use option, because fixing this requires a new snapshot (forthcoming).
2012-01-31Rename str::from_byte(s) to str::unsafe::from_byte(s),Kevin Cantu-1/+1
mark them as unsafe, make comp/driver/driver.rs use str::from_bytes...
2012-01-31Merge pull request #1713 from killerswan/manpgGraydon Hoare-35/+44
Updating the manpage and usage message
2012-01-31Don't compute pre- and postconditions for item_constsTim Chevalier-16/+1
Since item_consts can't refer to or modify local variables, they don't participate in typestate and thus get empty pre and postconditions by default. Closes #1660
2012-01-31Require alts to be exhaustiveTim Chevalier-344/+689
middle::check_alt does the work. Lots of changes to add default cases into alts that were previously inexhaustive.
2012-01-31Move walk_ty to stack closureMarijn Haverbeke-56/+32
2012-01-31Don't consider references to nullary tag variants lvals in kind.rsMarijn Haverbeke-1/+16
This allows us to express option::map with noncopyable type parameters, which makes sense, since the type params aren't being copied (none doesn't contain any).
2012-01-30Updating the manpage and usage messageKevin Cantu-35/+44
2012-01-30rustc: Allow attributes on methods. Closes #1709Brian Anderson-8/+14
2012-01-30Remove ternary operatorPaul Woolcock-75/+5
`expr_ternary`, `ternary_to_if`, and all parses & lexer definitions have been removed.
2012-01-30Change all ternary ops to if/then/elsePaul Woolcock-62/+167
All the files below had at least one instance of the ternary operator present in the source. All have been changed to the equivalent if/then/else expression.
2012-01-30Substitute type parameters more eagerlyMarijn Haverbeke-304/+201
This simplifies the typechecker a bit (no more ty_param_substs_opt_and_ty) and is needed for another experiment I'm playing with. I hope it also makes compilation faster (the bots will tell).
2012-01-30Revert self typesMarijn Haverbeke-95/+60
2012-01-30Remove trailing whitespace in debuginfo.rsMarijn Haverbeke-1/+1
2012-01-30Only build debuginfo blocks for blocks that appear in the program textMarijn Haverbeke-81/+104
I.e. a set of curly braces, not everything that creates a block context in the trans pass. Issue #1694
2012-01-29rustc: Add a missing llvm linkage typeBrian Anderson-0/+1
2012-01-29rustc: Add some missing llvm defs. Fix commentsBrian Anderson-3/+5
2012-01-29Fix mistake in previous commitMarijn Haverbeke-1/+2
2012-01-29Fix bug where resolve didn't descend method ty paramsMarijn Haverbeke-1/+1
Closes #1700
2012-01-28core: rename vec::position* functionsErick Tryzelaar-4/+4
Almost all of the vec functions that predicates don't have a corresponding function that takes a single element, so this commit renames the common fn usecase to be the default.
2012-01-28Merge remote-tracking branch 'mozilla/master'Josh Matthews-46/+72
2012-01-28Disable lexical block and function debug info caches to improve compilation ↵Josh Matthews-19/+18
time while #1694 is unfixed, and fix stack-exhaustion bug in block parent generation.
2012-01-27rustc: Make 'attempted access of field' error non-fatalBrian Anderson-1/+3
2012-01-27Merge remote-tracking branch 'killerswan/fixing_strings_2'Brian Anderson-18/+18
Conflicts: src/comp/driver/driver.rs src/comp/middle/trans/base.rs src/comp/syntax/parse/lexer.rs
2012-01-27Make occurs check in ty::fixup_vars more reliableMarijn Haverbeke-11/+19
It wouldn't detect cycles that went through several type vars before. Closes #1464
2012-01-27Allow moving out of mutable unsafe pointersMarijn Haverbeke-10/+12
This makes it possible to de-initialize values anywhere in memory, which is needed, for example, for a fast imlementation of vec::pop.
2012-01-27Properly check enum types for recursionMarijn Haverbeke-6/+20
Closes #742
2012-01-27Move various trans_ modules under a trans:: umbrella moduleMarijn Haverbeke-212/+203
Closes #1304
2012-01-27Stop passing spans to middle::trans functions that don't need themMarijn Haverbeke-224/+164
Removes a bunch of (eventually) unused arguments. Makes span passing to debuginfo explicit, instead of relying on the (usually incorrect) spans held in the contexts. Closes #1439
2012-01-27Use the method name 'unary-' for overloading negationMarijn Haverbeke-2/+6
It's less likely to clash with something than 'neg'. Issue #1520
2012-01-26rustc: Add pprust::res_to_strBrian Anderson-8/+41
2012-01-26Remove the --no-core command-line optionBrian Anderson-3/+1
It is superceeded by the #[no_core] attribute
2012-01-26rustc: Switch the --no-core switch to a #[no_core] attributeBrian Anderson-8/+15
2012-01-26rustc: Make core injection a timed passBrian Anderson-1/+3
It's not much of a pass, but lets be consistent
2012-01-26rustc: Move core injection to its own moduleBrian Anderson-24/+38
2012-01-26Make re-exporting of impls workMarijn Haverbeke-111/+135
Closes #1438
2012-01-26Use operator names for operator methodsMarijn Haverbeke-30/+31
The methods used to implement operators now simply use the name of the operator itself, except for unary -, which is called min to not clash with binary -. Index is called []. Closes #1520
2012-01-26Fix small bug in iface self typesMarijn Haverbeke-1/+3
Issue #1661
2012-01-26Allow operator overloading of the indexing operatorMarijn Haverbeke-56/+82
The method `op_index` (which takes a single argument) is used for this. Issue #1520