Jakub Wieczorek
a2bbcb594f
Fix an LLVM assertion when matching against static strings
...
Fixes #8315
Fixes #11940
2014-06-08 19:43:38 +02:00
Niko Matsakis
bc5eb7d98c
Stop passing around Option<&substs> in trans and just pass &substs, making the code more regular
2014-06-06 19:51:23 -04:00
Niko Matsakis
0f03b5608c
Move Def out of syntax crate, where it does not belong
2014-06-06 19:51:23 -04:00
Niko Matsakis
f24a53757e
Move subst data structures into subst.rs, fix capitalization
2014-06-06 19:46:38 -04:00
Alex Crichton
760b93adc0
Fallout from the libcollections movement
2014-06-05 13:55:11 -07:00
Alex Crichton
748bc3ca49
std: Rename {Eq,Ord} to Partial{Eq,Ord}
...
This is part of the ongoing renaming of the equality traits. See #12517 for more
details. All code using Eq/Ord will temporarily need to move to Partial{Eq,Ord}
or the Total{Eq,Ord} traits. The Total traits will soon be renamed to {Eq,Ord}.
cc #12517
[breaking-change]
2014-05-30 15:52:24 -07:00
Kevin Butler
09fc34066b
librustc: Fix snake case errors.
...
A number of functions/methods have been moved or renamed to align
better with rust standard conventions.
rustc:🔙 🔗 :WriteOutputFile => write_output_file
rustc::middle::ty::EmptyBuiltinBounds => empty_builtin_bounds
rustc::middle::ty::AllBuiltinBounds => all_builtin_bounds
rustc::middle::liveness::IrMaps => IrMaps::new
rustc::middle::liveness::Liveness => Liveness::new
rustc::middle::resolve::NameBindings => NameBindings::new
rustc::middle::resolve::PrimitiveTypeTable => PrimitiveTypeTable::new
rustc::middle::resolve::Resolver => Resolver::new
rustc::middle::trans::datum::Datum => Datum::new
rustc::middle::trans::datum::DatumBlock => DatumBlock::new
rustc::middle::trans::datum::Rvalue => Rvalue::new
rustc::middle::typeck::infer::new_ValsAndBindings => ::infer::unify::ValsAndBindings::new
rustc::middle::typeck::infer::region_inference::RegionVarBindings => RegionVarBindings::new
[breaking-change]
2014-05-30 17:55:42 +01:00
bors
ff2bf58e9e
auto merge of #14481 : alexcrichton/rust/no-format-strbuf, r=sfackler
...
* Removes `format_strbuf!()`
2014-05-29 03:31:39 -07:00
bors
1489374750
auto merge of #14451 : alexcrichton/rust/issue-14442, r=brson
...
This avoids having to perform conversions from `*u8` to `&'static str` which can
suck in a good deal of code.
Closes #14442
2014-05-28 20:01:37 -07:00
Alex Crichton
42aed6bde2
std: Remove format_strbuf!()
...
This was only ever a transitionary macro.
2014-05-28 08:35:41 -07:00
Richo Healey
1f1b2e42d7
std: Rename strbuf operations to string
...
[breaking-change]
2014-05-27 12:59:31 -07:00
Alex Crichton
5c1a70d498
rustc: Use rust strings for failure arguments
...
This avoids having to perform conversions from `*u8` to `&'static str` which can
suck in a good deal of code.
Closes #14442
2014-05-27 00:33:05 -07:00
Richo Healey
553074506e
core: rename strbuf::StrBuf to string::String
...
[breaking-change]
2014-05-24 21:48:10 -07:00
Patrick Walton
36195eb91f
libstd: Remove ~str
from all libstd
modules except fmt
and str
.
2014-05-22 14:42:01 -07:00
Patrick Walton
6559a3675e
librustc: Remove all uses of ~str
from librustc.
2014-05-12 11:28:57 -07:00
Niko Matsakis
ed7c849057
Currently trans uses Vec<ty::t> to represent substitutions instead of a proper
...
ty::substs struct. This is a holdover from the olden days of yore. This patch
removes the last vestiges of that practice. This is part of the work
I was doing on #5527 .
2014-05-09 05:56:44 -04:00
Patrick Walton
7f8f3dcf17
libsyntax: Remove uses of ~str
from libsyntax, and fix fallout
2014-05-08 08:38:23 -07:00
Nick Cameron
5854811082
Refactor rslt
to Result::new
2014-05-03 23:14:56 +12:00
Eduard Burtescu
9dc99c89d3
rustc: de-@ stats.
2014-04-22 19:20:12 +03:00
Eduard Burtescu
3fbc57894a
rustc: de-@ param_substs.
2014-04-22 19:06:56 +03:00
Eduard Burtescu
7b3d6afe0a
rustc: de-@ mono_id.
2014-04-22 19:06:55 +03:00
Eduard Burtescu
5fa7be659c
rustc: slightly optimize make_mono_id to not clone lots of vectors.
2014-04-22 19:06:55 +03:00
Eduard Burtescu
c709c1efc6
rustc: remove obsolete monomorphization modes.
2014-04-22 19:06:55 +03:00
Eduard Burtescu
c9bf84333d
rustc: de-@ method and vtable maps.
2014-04-22 17:18:21 +03:00
Eduard Burtescu
158d7a19b3
rustc: move the method and vtable maps into ty::ctxt.
2014-04-22 17:18:20 +03:00
Nick Cameron
37306c1d25
Refactor ty_vec represent &[T] as &([T])
...
Refactores all uses of ty_vec and associated things to remove the vstore abstraction (still used for strings, for now). Pointers to vectors are stored as ty_rptr or ty_uniq wrapped around a ty_vec. There are no user-facing changes. Existing behaviour is preserved by special-casing many instances of pointers containing vectors. Hopefully with DST most of these hacks will go away. For now it is useful to leave them hanging around rather than abstracting them into a method or something.
Closes #13554 .
2014-04-20 12:41:53 +12:00
Eduard Burtescu
b61764b609
rustc: rename ty::vstore and its variants to UpperCamelCase.
2014-04-10 20:18:46 +03:00
bors
4af69f204e
auto merge of #13344 : eddyb/rust/kill-unboxed-vec, r=cmr
...
Removes the special `ty_unboxed_vec` type from the type system.
It was previously used only during translating `~[T]`/`~str` allocation and drop glue.
2014-04-06 05:46:38 -07:00
Eduard Burtescu
2d22243b0c
rustc: remove ty_unboxed_vec.
2014-04-06 14:05:32 +03:00
bors
f1f50565a1
auto merge of #13315 : alexcrichton/rust/libc, r=alexcrichton,me
...
Rebasing of #12526 with a very obscure bug fixed on windows.
2014-04-06 02:56:39 -07:00
Corey Richardson
0459ee77d0
Fix fallout from std::libc separation
2014-04-04 09:31:44 -07:00
bors
eae2652710
auto merge of #13301 : erickt/rust/remove-refcell-get, r=huonw
...
`RefCell::get` can be a bit surprising, because it actually clones the wrapped value. This removes `RefCell::get` and replaces all the users with `RefCell::borrow()` when it can, and `RefCell::borrow().clone()` when it can't. It removes `RefCell::set` for consistency. This closes #13182 .
It also fixes an infinite loop in a test when debugging is on.
2014-04-04 08:41:50 -07:00
bors
37a9885429
auto merge of #13291 : thestinger/rust/no_null, r=alexcrichton
...
This was missed when dropping the null-termination from our string
types. An explicit null byte can still be placed anywhere in a string if
desired, but there's no reason to stick one at the end of every string
constant.
2014-04-04 04:41:49 -07:00
Erick Tryzelaar
3961957bd6
std: Remove RefCell::set()
2014-04-03 20:28:59 -07:00
Daniel Micay
7ce2630cef
stop asking LLVM to null-terminate strings
...
This was missed when dropping the null-termination from our string
types. An explicit null byte can still be placed anywhere in a string if
desired, but there's no reason to stick one at the end of every string
constant.
2014-04-03 21:35:21 -04:00
Corey Richardson
e53f48be34
middle: trans: common: remove dead code
2014-04-02 11:17:22 -04:00
Alex Crichton
89fa141cd7
rustc: Switch field privacy as necessary
2014-03-31 15:47:36 -07:00
Marvin Löbel
c356e3ba6a
Removed deprecated functions map
and flat_map
for vectors and slices.
2014-03-30 03:47:04 +02:00
Brian Anderson
451e8c1c61
Convert most code to new inner attribute syntax.
...
Closes #2569
2014-03-28 17:12:21 -07:00
Daniel Micay
3829ac2a52
use TotalEq for HashMap
...
Closes #5283
2014-03-23 01:59:11 -04:00
Eduard Burtescu
75d7d5210a
Implement vtable support for autoderef.
...
Closes #13042 .
2014-03-22 23:31:42 +02:00
Alex Crichton
3fb1ed0e04
rustc: Remove all usage of manual deref()
...
Favor using '*' instead
2014-03-22 08:48:34 -07:00
Alex Crichton
0dbb909bf7
rustc: Fix fallout of removing get()
2014-03-22 08:48:20 -07:00
Alex Crichton
da3625161d
Removing imports of std::vec_ng::Vec
...
It's now in the prelude.
2014-03-20 09:30:14 -07:00
Daniel Micay
14f656d1a7
rename std::vec_ng -> std::vec
...
Closes #12771
2014-03-20 04:25:32 -04:00
Eduard Burtescu
871e570810
De-@ codemap and diagnostic.
2014-03-17 09:53:08 +02:00
Eduard Burtescu
0bb6de3076
De-@ move maps and rework parts of trans.
2014-03-17 09:53:08 +02:00
Eduard Burtescu
6c42ef31dc
De-@ trans contexts.
2014-03-17 09:53:07 +02:00
Eduard Burtescu
9b1fee898f
De-@ ty::ctxt usage.
2014-03-17 09:53:06 +02:00
Eduard Burtescu
4fae06824c
De-@ Session usage.
2014-03-17 09:53:06 +02:00