about summary refs log tree commit diff
path: root/src/librustc/metadata
AgeCommit message (Collapse)AuthorLines
2013-05-14Fix cosmetics for fail!() callsMarvin Löbel-4/+4
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-28/+28
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-11auto merge of #6389 : sonwow/rust/issue-3356, r=bstriebors-5/+5
Fix for #3356
2013-05-11auto merge of #6384 : thomaslee/rust/issue-4202, r=catamorphismbors-0/+42
This fixes the issue described in #4202. From what I understood of the code, when we reexport a trait in a submodule using e.g. "pub use foo::SomeTrait", we were not previously making an effort to reexport the static methods on that trait. I'm new to the Rust code base (and the Rust language itself) so my approach may not be kosher, but this patch works by changing the encoder to include the static methods associated with traits. I couldn't see any tests for this area of the code, so I didn't really have any examples to go by. If tests are needed, I'm happy to work through that if I can get some assistance to do so.
2013-05-10auto merge of #6205 : brson/rust/flate, r=brsonbors-2/+2
r? @graydon I don't think this is necessary in core.
2013-05-10auto merge of #6223 : alexcrichton/rust/issue-6183, r=pcwaltonbors-9/+96
Closes #6183. The first commit changes the compiler's method of treating a `for` loop, and all the remaining commits are just dealing with the fallout. The biggest fallout was the `IterBytes` trait, although it's really a whole lot nicer now because all of the `iter_bytes_XX` methods are just and-ed together. Sadly there was a huge amount of stuff that's `cfg(stage0)` gated, but whoever lands the next snapshot is going to have a lot of fun deleting all this code!
2013-05-10Move flate from core to stdBrian Anderson-2/+2
2013-05-10renamed str::from_slice to str::to_ownedYoungsoo Son-3/+3
2013-05-10renamed vec::from_slice to vec::to_ownedYoungsoo Son-2/+2
2013-05-10auto merge of #6356 : dotdash/rust/strinterner, r=pcwaltonbors-6/+6
&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str.
2013-05-10rustc: Use the new `for` protocolAlex Crichton-9/+96
2013-05-09Include static methods on traits in reexports.Tom Lee-0/+42
2013-05-09Refactor representation of bounds to separate out BuiltinBounds intoNiko Matsakis-23/+41
its own type. Use a bitset to represent built-in bounds. There are several places in the language where only builtin bounds (aka kinds) will be accepted, e.g. on closures, destructor type parameters perhaps, and on trait types.
2013-05-09Use a specialized string interner to reduce the need for owned stringsBjörn Steinbrink-6/+6
&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str.
2013-05-09librustc: rename vec::each(var) to var.eachYoungmin Yoo-3/+2
2013-05-08librustc: Remove mutable fields from the language.Patrick Walton-34/+4
They're still parsed though, to get through bootstrapping.
2013-05-08libcore: Remove more mutable fields from commPatrick Walton-15/+16
2013-05-06Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-0/+1
2013-05-06Fix cross-crate packed structsSeo Sanghyeon-0/+1
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-248/+176
Conflicts: src/libcore/core.rc src/libcore/hashmap.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/num/float.rs src/libcore/num/int-template.rs src/libcore/num/num.rs src/libcore/num/strconv.rs src/libcore/num/uint-template.rs src/libcore/ops.rs src/libcore/os.rs src/libcore/prelude.rs src/libcore/rt/mod.rs src/libcore/unstable/lang.rs src/librustc/driver/session.rs src/librustc/middle/astencode.rs src/librustc/middle/borrowck/check_loans.rs src/librustc/middle/borrowck/gather_loans.rs src/librustc/middle/borrowck/loan.rs src/librustc/middle/borrowck/preserve.rs src/librustc/middle/liveness.rs src/librustc/middle/mem_categorization.rs src/librustc/middle/region.rs src/librustc/middle/trans/base.rs src/librustc/middle/trans/inline.rs src/librustc/middle/trans/reachable.rs src/librustc/middle/typeck/check/_match.rs src/librustc/middle/typeck/check/regionck.rs src/librustc/util/ppaux.rs src/libstd/arena.rs src/libstd/ebml.rs src/libstd/json.rs src/libstd/serialize.rs src/libstd/std.rc src/libsyntax/ast_map.rs src/libsyntax/parse/parser.rs src/test/compile-fail/borrowck-uniq-via-box.rs src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs src/test/run-pass/borrowck-nested-calls.rs
2013-05-05add warning for #6248 and remove instances of itNiko Matsakis-4/+4
2013-05-04Register snapshotsBrian Anderson-1312/+0
2013-05-04auto merge of #6230 : thestinger/rust/whitespace, r=catamorphismbors-2/+0
I just had `git apply` fix most of them and then did a quick skim over the diff to fix a few cases where it did the wrong thing (mostly replacing tabs with 4 spaces, when someone's editor had them at 8 spaces).
2013-05-03auto merge of #6229 : catamorphism/rust/warning-police, r=catamorphismbors-1/+1
2013-05-03rustpkg: Make code actually compileTim Chevalier-4/+3
oops.
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-2/+0
2013-05-03rustc: Warning policeTim Chevalier-1/+1
2013-05-03rustpkg: Handle sysroot more correctlyTim Chevalier-23/+31
In rustpkg, pass around sysroot; in rustpkg tests, set the sysroot manually so that tests can find libcore and such. With bonus metadata::filesearch refactoring to avoid copies.
2013-05-02librustc: Update the serializer to work properly with INHTWAMA, removing ↵Patrick Walton-37/+1384
mutable fields in the process
2013-05-02Remove 'Local Variable' commentsBrendan Zabarauskas-61/+0
2013-05-01rustc: remove the rest of dropErick Tryzelaar-51/+0
Removes: ast::struct_def::dtor syntax::ast::ii_dtor syntax::visit::fk_dtor syntax::ast_map::node_dtor syntax:struct_dtor
2013-04-30new borrow checker (mass squash)Niko Matsakis-25/+30
2013-04-29librustc: Remove the concept of modes from the compiler.Patrick Walton-23/+6
This commit does not remove `ty::arg`, although that should be possible to do now.
2013-04-27only use #[no_core] in libcoreDaniel Micay-50/+0
2013-04-23core, rustc: Warning policeTim Chevalier-18/+18
2013-04-20rustc: remove unused 'mut' variablesAlex Crichton-1/+1
2013-04-20Replaced many instances of reinterpret_cast with transmuteMatthijs Hofstra-1/+1
2013-04-19rustc: de-mode + fallout from libsyntax changesAlex Crichton-93/+93
2013-04-19librustc: Optimize metadata::decoder::item_name.Patrick Walton-2/+8
2013-04-19librustc: Remove def_ids from types.Patrick Walton-21/+3
2013-04-17Allow casting to mutable trait objects.Josh Matthews-9/+20
2013-04-15rustc: Anti-copy policeTim Chevalier-3/+3
2013-04-12auto merge of #5827 : ↵bors-4/+5
nikomatsakis/rust/issue-5656-change-meaning-of-borrowed-self, r=pcwalton See #5656 for details. r? @pcwalton
2013-04-11auto merge of #5811 : sanxiyn/rust/parse-uint, r=catamorphismbors-8/+8
It does not handle signs.
2013-04-10FIX meta_section_name for macosILyoan-1/+12
2013-04-10auto merge of #5709 : jbclements/rust/miscellaneous-cleanup, r=jbclementsbors-2/+2
There's no unifying theme here; I'm just trying to clear a bunch of small commits: removing dead code, adding comments, renaming to an upper-case type, fixing one test case.
2013-04-10path -> PathJohn Clements-2/+2
2013-04-10Reason about nested free variables that appear in a functionNiko Matsakis-4/+5
signature. In a nutshell, the idea is to (1) report an error if, for a region pointer `'a T`, the lifetime `'a` is longer than any lifetimes that appear in `T` (in other words, if a borrowed pointer outlives any portion of its contents) and then (2) use this to assume that in a function like `fn(self: &'a &'b T)`, the relationship `'a <= 'b` holds. This is needed for #5656. Fixes #5728.
2013-04-10Revert map.each to something which takes two parametersNiko Matsakis-1/+1
rather than a tuple. The current setup iterates over `BaseIter<(&'self K, &'self V)>` where 'self is a lifetime declared *in the each method*. You can't place such a type in the impl declaration. The compiler currently allows it, but this will not be legal under #5656 and I'm pretty sure it's not sound now.
2013-04-10Rename tydecode::parse_int to parse_uintSeo Sanghyeon-8/+8
It does not handle signs.