Kevin Ballard
f31767df66
Implement terminfo param conditionals
...
Implement the %?, %t, %e, and %; operators. Also implement the %<, %=,
%> operators, without which conditionals aren't very useful.
Fix the order of parameters for the arithmetic operators.
Implement the missing %^ operator.
2013-06-14 12:37:54 -07:00
Kevin Ballard
6423548818
Fix a bunch of failure cases in terminfo
...
Replace all potentially-failing operations with Err returns and add
tests.
Remove the Char parameter type; characters are represented as Numbers.
Fix integer constants to work properly when there are multiple constants
in the same capability string.
Tweak loop to use iterators instead of indexing into cap.
2013-06-14 12:37:54 -07:00
Kevin Ballard
e990239a3a
Don't require &mut [Param] with terminfo::parm::expand()
2013-06-14 12:37:53 -07:00
Kevin Ballard
c9e234a1ae
Tweak terminfo::parm::expand function signature
...
Take a new struct Variables instead of two &mut [] vectors for static
and dynamic variables.
2013-06-14 12:37:53 -07:00
Kevin Ballard
9f9e505405
Tweak new terminfo logical operator support
2013-06-14 12:37:53 -07:00
Corey Richardson
821a962feb
Various terminfo parameterization changes
2013-06-14 12:37:53 -07:00
Erick Tryzelaar
f7e1daa8e3
std: get std::path tests to work again
2013-06-14 07:13:32 -07:00
Brian Anderson
7755018074
Revert "std: convert {vec,str}::to_owned to methods."
...
This fixes the strange random crashes in compile-fail tests.
This reverts commit 96cd61ad03
.
Conflicts:
src/librustc/driver/driver.rs
src/libstd/str.rs
src/libsyntax/ext/quote.rs
2013-06-13 19:06:47 -07:00
Brian Anderson
541c657a73
Revert "Remove all usage of the global LLVMContextRef"
...
This reverts commit 779191cd4b
.
Conflicts:
src/librustc/middle/trans/base.rs
src/librustc/middle/trans/common.rs
2013-06-13 13:08:57 -07:00
Brian Anderson
19adece68b
Revert "Have JIT execution take ownership of the LLVMContextRef"
...
This reverts commit 5c5095d25e
.
Conflicts:
src/librusti/rusti.rc
2013-06-13 13:08:57 -07:00
bors
5bff471dde
auto merge of #7105 : sstewartgallus/rust/removed_unused_imports, r=sanxiyn
...
I was able to remove unused imports, and fix the following warnings
src/libstd/hashmap.rs:23:15: 23:23 warning: unused import [-W unused-imports (default)]
src/libstd/task/spawn.rs:95:15: 95:23 warning: unused import [-W unused-imports (default)]
src/libstd/rt/uv/mod.rs:42:0: 42:9 warning: unused import [-W unused-imports (default)]
src/libstd/rt/uv/mod.rs:45:0: 45:9 warning: unused import [-W unused-imports (default)]
src/librustc/middle/trans/meth.rs:26:0: 26:26 warning: unused import [-W unused-imports (default)]
src/librustc/back/link.rs:210:20: 210:25 warning: unused import [-W unused-imports (default)]
I was unable to fix the following unused import warnings. The code
here was weird.
src/libextra/std.rc:40:11: 40:14 warning: unused import [-W unused-imports (default)]
src/libextra/std.rc:40:16: 40:24 warning: unused import [-W unused-imports (default)]
2013-06-13 12:08:05 -07:00
Steven Stewart-Gallus
d9d50a5bd4
Remove unused imports
...
I was able to remove unused imports, and fix the following warnings
src/libstd/hashmap.rs:23:15: 23:23 warning: unused import [-W unused-imports (default)]
src/libstd/task/spawn.rs:95:15: 95:23 warning: unused import [-W unused-imports (default)]
src/libstd/rt/uv/mod.rs:42:0: 42:9 warning: unused import [-W unused-imports (default)]
src/libstd/rt/uv/mod.rs:45:0: 45:9 warning: unused import [-W unused-imports (default)]
src/librustc/middle/trans/meth.rs:26:0: 26:26 warning: unused import [-W unused-imports (default)]
src/librustc/back/link.rs:210:20: 210:25 warning: unused import [-W unused-imports (default)]
I was unable to fix the following unused import warnings. The code
here was weird.
src/libextra/std.rc:40:11: 40:14 warning: unused import [-W unused-imports (default)]
src/libextra/std.rc:40:16: 40:24 warning: unused import [-W unused-imports (default)]
2013-06-13 10:46:17 -07:00
bors
a198aad8f3
auto merge of #7100 : thestinger/rust/hashmap, r=pnkfelix
...
Not much point in leaving these around. They just get in the way when you actually want to log something else.
2013-06-13 03:25:11 -07:00
Daniel Micay
ed7892ac00
hashmap: remove leftover debug!() logging
2013-06-13 03:25:28 -04:00
bors
e6503995ab
auto merge of #7096 : huonw/rust/invalid-null-str, r=thestinger
...
A slice of a 'static str is still 'static, but doesn't necessarily
have the null terminator.
2013-06-12 23:10:15 -07:00
bors
4ec08d8e12
auto merge of #7070 : alexcrichton/rust/rusti++, r=graydon
...
More descriptive comments can be found throughout the code, but the bulk of this is that it addresses a vast number of issues with the old rusti model.
Closes #6772 , #5675 , #5469 , and #6617
2013-06-12 21:22:11 -07:00
Huon Wilson
abadece3ba
std: remove the invalid NullTerminatedStr instance for &'static str.
...
A slice of a 'static str is still 'static, but doesn't necessarily
have the null terminator.
2013-06-13 14:12:08 +10:00
Alex Crichton
0c47632898
Rewrite rusti
2013-06-12 21:03:17 -07:00
bors
996301331e
auto merge of #7079 : thestinger/rust/jemalloc, r=graydon
...
Minor release, the ChangeLog is included in the update.
2013-06-12 20:25:17 -07:00
bors
6c45160f19
auto merge of #7027 : sstewartgallus/rust/dynamic_lib, r=graydon
...
I would appreciate if someone could help out with the Windows code on this pull request. I tried to test it using WINE but I couldn't figure out a way to set that up.
2013-06-12 19:07:30 -07:00
Huon Wilson
5ebffd46d5
rustc: fix test failures after rebase.
2013-06-13 10:47:33 +10:00
Steven Stewart-Gallus
786ea3ffe6
Prototyped a dynamic library facility interface
2013-06-12 17:32:13 -07:00
Huon Wilson
a30ee0dee1
rustdoc: fix tests for @~str -> @str change.
2013-06-13 10:20:52 +10:00
Huon Wilson
096f6f56a8
Use @str instead of @~str in libsyntax and librustc. Fixes #5048 .
...
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-13 10:20:52 +10:00
Huon Wilson
641910dc13
std: make all strings Equiv-alent to each other, generalise Path.push_many to take any type of string.
2013-06-13 10:19:34 +10:00
bors
84bed9769b
auto merge of #7091 : msullivan/rust/default-methods, r=graydon
...
r? @nikomatsakis
2013-06-12 16:25:34 -07:00
Felix S. Klock II
009a2fdc5e
Fix a test-predicated use of the visit.rs api.
2013-06-12 23:31:07 +02:00
Felix S. Klock II
58b4fe6fea
Merge branch 'moz-incoming' into fsk-visitor-refactoring
2013-06-12 23:28:38 +02:00
Michael Sullivan
36e3d64c3e
Fix a lot of the handling of default methods and type parameters. Closes #4099 , #4102 .
2013-06-12 13:50:45 -07:00
Michael Sullivan
5835158170
Drop some dead method handling code.
2013-06-12 13:50:45 -07:00
Michael Sullivan
a159f856d5
Properly translate calls to default methods in a number of cases. Closes #4350 .
2013-06-12 13:50:15 -07:00
bors
78cddc83a4
auto merge of #7073 : influenza/rust/iterator-doc-fixes, r=catamorphism
...
This commit fixes two typos and an incorrect description.
2013-06-12 12:13:53 -07:00
Felix S. Klock II
91bced8ae8
Fix linebreak and whitespace issues to placate make tidy.
2013-06-12 19:16:30 +02:00
Felix S. Klock II
ecef9ad75a
Visitor refactoring: Step 1, couple (Env, vt<Env>) together in a tuple.
2013-06-12 13:04:37 +02:00
Luqman Aden
aa9a992f3e
libsyntax: Remove duplicate methods.
2013-06-12 02:46:38 -04:00
Luqman Aden
47772bcb73
Add tests for duplicate methods on traits/impls.
2013-06-12 02:46:38 -04:00
Luqman Aden
c6f3103006
librustc: Don't allow duplicate methods on impls.
2013-06-12 02:46:38 -04:00
Luqman Aden
8fc14b6e62
librustc: Don't allow duplicate methods on a trait.
2013-06-12 02:46:38 -04:00
bors
4a52ff0786
auto merge of #7072 : thestinger/rust/ptr, r=catamorphism
...
I don't think this will even show up in the documentation right now.... but it should still be correct :).
2013-06-11 22:31:39 -07:00
bors
cc80652e4a
auto merge of #7060 : huonw/rust/more-str, r=thestinger
...
There are now only half-a-dozen or so functions left `std::str` that should be methods.
Highlights:
- `.substr` was removed, since most of the uses of it in the code base were actually incorrect (it had a weird mixing of a byte index and a unicode character count), adding `.slice_chars` if one wants to handle characters, and the normal `.slice` method to handle bytes.
- Code duplication between the two impls for `connect` and `concat` was removed via a new `Str` trait, that is purely designed to allow an explicit -> `&str` conversion (`.as_slice()`)
- Deconfuse the 5 different functions for converting to `[u8]` (3 of which had actually incorrect documentation: implying that they didn't have the null terminator), into 3: `as_bytes` (all strings), `as_bytes_with_null` (`&'static str`, `@str` and `~str`) and `as_bytes_with_null_consume` (`~str`). None of these allocate, unlike the old versions.
(cc @thestinger)
2013-06-11 21:37:43 -07:00
Daniel Micay
0685c657f0
update jemalloc to 3.4.0
2013-06-12 00:26:15 -04:00
bors
7033dfcf91
auto merge of #7069 : dotdash/rust/cast_combine, r=graydon
...
Shaves off a percent or so from the LLVM passes for librustc.
2013-06-11 20:43:39 -07:00
Huon Wilson
9f0c85acc9
std: fix windows
2013-06-12 13:42:41 +10:00
Huon Wilson
13460de61c
std: fix method renaming.
2013-06-12 13:09:02 +10:00
bors
8761b1fb16
auto merge of #7067 : brson/rust/notasktrans, r=graydon
2013-06-11 19:37:39 -07:00
Huon Wilson
eecbe5556b
Silence some warnings.
2013-06-12 12:21:05 +10:00
Huon Wilson
26d7b460a3
std: generalise .trim_chars to use CharEq.
2013-06-12 12:21:05 +10:00
Huon Wilson
073e82fff2
std: create Str trait for DRY. Use it on StrVector.
...
The Str trait collects the various strings types and provides a method
for coercing to a slice, so that functions and impls can be written for
generic types containing strings (e.g. &[~str], &[&str], ...) without
having to write one for each string type (assuming that the impl only
needs a slice).
2013-06-12 12:21:04 +10:00
Huon Wilson
3a1e13c7a0
std: convert str::escape_* to methods.
2013-06-12 12:21:04 +10:00
Huon Wilson
9e60e2e297
std: convert str::replace to a method.
2013-06-12 12:21:04 +10:00