about summary refs log tree commit diff
path: root/src/librustc/util
AgeCommit message (Collapse)AuthorLines
2013-07-22De-spanned<T> and renamed ast::field (now ast::Field)Michael Woerister-3/+3
2013-07-22Ast spanned<T> refactoring, renaming: crate, local, blk, crate_num, crate_cfg.Michael Woerister-4/+4
`crate => Crate` `local => Local` `blk => Block` `crate_num => CrateNum` `crate_cfg => CrateConfig` Also, Crate and Local are not wrapped in spanned<T> anymore.
2013-07-17librustc: Remove the `Copy` bound from the language.Patrick Walton-2/+0
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-2/+2
2013-07-12auto merge of #7725 : msullivan/rust/default-methods, r=pcwaltonbors-11/+7
r?
2013-07-11Clean up Repr impls a bit so we can add generic impls for @ and ~.Michael Sullivan-11/+7
2013-07-11Silence various warningsNiko Matsakis-1/+1
2013-07-11Port region inference code to use new graphNiko Matsakis-0/+6
2013-07-10Add an identifier to TypeParameterDefs and use it to pretty print type ↵Niko Matsakis-10/+11
parameters
2013-07-05Change signature of Iterator.size_hintKevin Ballard-3/+3
Remove the Option wrapper around the lower bound. None is semantically the same as Size(0), so there's no point in having a distinction.
2013-07-03auto merge of #7474 : Seldaek/rust/clean-iter, r=thestingerbors-10/+83
I think it's WIP - but I wanted to ask for feedback (/cc @thestinger) I had to move the impl of FromIter for vec into extra::iter because I don't think std can depend on extra, but that's a bit messed up. Similarly some FromIter uses are gone now, not sure if this is fixable or if I made a complete mess here..
2013-07-01Correct merge errors, broken testsNiko Matsakis-1/+1
2013-07-01Defer reasoning about region relationships until after regionck.Niko Matsakis-0/+19
This patch makes error handling for region inference failures more uniform by not reporting *any* region errors until the reigon inference step. This requires threading through more information about what caused a region constraint, so that we can still give informative error messages. I have only taken partial advantage of this information: when region inference fails, we still report the same error we always did, despite the fact that we now know precisely what caused the various constriants and what the region variable represents, which we did not know before. This change is required not only to improve error messages but because the region hierarchy is not in fact fully known until regionck, because it is not clear where closure bodies fit in (our current treatment is unsound). Moreover, the relationships between free variables cannot be fully determined until type inference is otherwise complete. cc #3238.
2013-07-01Move most iter functionality to extra, fixes #7343Jordi Boggiano-11/+10
2013-07-01Add an EnumSetIterator and EnumSet::iterJordi Boggiano-9/+83
2013-06-29Warning cleanupCorey Richardson-2/+0
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-9/+5
2013-06-28librustc: Fix merge fallout and test cases.Patrick Walton-1/+3
2013-06-28librustc: Change Const to Freeze in the compilerPatrick Walton-2/+2
2013-06-28librustc: Rename Owned to Send in the compilerPatrick Walton-2/+2
2013-06-25Change finalize -> drop.Luqman Aden-1/+1
2013-06-25Warning policeJames Miller-1/+0
2013-06-23Fix pretty-printing builtin bounds on closures and traitsBen Blum-2/+6
2013-06-23Parse and typecheck (not kindcheck) bounds on trait paths.Ben Blum-2/+6
2013-06-23vec: remove BaseIter implementationDaniel Micay-2/+2
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-22Fix-up PP Code to reflect new lifetime param syntaxJames Miller-37/+44
2013-06-22Initial Type Refactoring doneJames Miller-9/+9
2013-06-14add IteratorUtil to the preludeDaniel Micay-1/+0
2013-06-13Use @str instead of @~str in libsyntax and librustc. Fixes #5048.Huon Wilson-4/+4
This almost removes the StringRef wrapper, since all strings are Equiv-alent now. Removes a lot of `/* bad */ copy *`'s, and converts several things to be &'static str (the lint table and the intrinsics table). There are many instances of .to_managed(), unfortunately.
2013-06-12Visitor refactoring: Step 1, couple (Env, vt<Env>) together in a tuple.Felix S. Klock II-8/+8
2013-06-11option: remove redundant old_iter implsDaniel Micay-1/+2
2013-06-11fix tests, remove some warningsHuon Wilson-1/+0
2013-06-10std: remove str::{connect,concat}*.Huon Wilson-8/+8
2013-06-10std: remove str::{len, slice, is_empty} in favour of methods.Huon Wilson-1/+1
2013-06-06auto merge of #6980 : Kimundi/rust/iterator-collect3, r=thestingerbors-8/+8
2013-06-06FixupsMarvin Löbel-8/+8
2013-06-06Clean up a handful of build warnings.Michael Sullivan-1/+1
2013-06-05token_to_ident takes argument by referenceJohn Clements-1/+1
2013-06-05interner just uses uints, not idents with syntax contextJohn Clements-1/+1
2013-06-05removed some interner fieldsJohn Clements-1/+2
2013-06-01syntax: move callee_id into the expr_ variantsErick Tryzelaar-1/+0
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-10/+10
2013-05-30Add 'Sized' builtin kind; doesn't do anything yetBen Blum-1/+3
2013-05-30Remove a bunch of unnecessary allocations and copiesBjörn Steinbrink-1/+1
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+6
2013-05-28Move checking for moves and initialization of local variables and patterns intoNiko Matsakis-0/+6
borrow checker and generalize what moves are allowed. Fixes a nasty bug or two in the pattern move checking code. Unifies dataflow code used for initialization and other things. First step towards once fns. Everybody wins. Fixes #4384. Fixes #4715. cc once fns (#2202), optimizing local moves (#5016).
2013-05-28Remove unnecessary allocations flagged by lintSeo Sanghyeon-4/+4
2013-05-23cleanup warnings from librustcErick Tryzelaar-2/+0
2013-05-22librustc: Add some missing `use core::prelude::*;` in the test casesPatrick Walton-0/+3
2013-05-22librustc: Change `std` to `extra` throughout libsyntax and librustcPatrick Walton-3/+3