Skip to content

Rollup of 13 pull requests #23884

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 209 commits into from
Mar 31, 2015
Merged
Changes from all commits
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
b3c58cf
Add the -s flag to the suggested rustup invocation
Mar 13, 2015
ac67729
Remove stdlib stuff from the Reference
steveklabnik Mar 11, 2015
528a5e2
Add examples for std::ascii
steveklabnik Mar 24, 2015
c3f4fba
syntax: add {trait_item,impl_item,where_clause}_to_string
erickt Mar 14, 2015
4ec07ed
syntax: Allow where strings to be parsed independent from generics
erickt Mar 14, 2015
a17f556
syntax: Allow quotes to insert path
erickt Mar 14, 2015
4c2ddb3
std: Reexport std::rt::unwind::try in std::thread
alexcrichton Mar 23, 2015
3577555
Implement AsRef and AsMut for fixed-sized arrays
gkoz Mar 24, 2015
053d58e
Update pointers.md
wettowelreactor Mar 25, 2015
54f16b8
rustc: Remove support for int/uint
alexcrichton Mar 24, 2015
71386e5
Alphabetize
tamird Mar 25, 2015
d9d2236
Add iOS triple mapping so tests can run
tamird Mar 25, 2015
3902190
Switch drop-flag to `u8` to allow special tags to instrument state.
pnkfelix Feb 10, 2015
7c671e5
Regression tests for issues uncovered only post the run-pass and comp…
pnkfelix Mar 11, 2015
5bc35b1
filling-drop: switch `DTOR_NEEDED` and `DTOR_DONE` to non-trivial val…
pnkfelix Mar 17, 2015
5733726
A better `core::mem::dropped` implementation suggested by huonw on th…
pnkfelix Mar 23, 2015
601eca3
Added instability markers to `POST_DROP_*` consts, and related opt-in's.
pnkfelix Mar 25, 2015
4053b00
Use `-Z force-dropflag-checks=on/off` for emitting sanity-check.
pnkfelix Mar 25, 2015
aab4bef
Add tests exercising the dropflag checking functionality.
pnkfelix Mar 25, 2015
c5b8763
Deprecate as_mut_slice methods
erickt Mar 26, 2015
c153fc1
New section of the book: nightly rust
steveklabnik Mar 25, 2015
36ef29a
Register new snapshots
alexcrichton Mar 25, 2015
77de3ee
syntax: Remove parsing of old slice syntax
alexcrichton Mar 26, 2015
e2cc8b1
add feature flags required post rebase.
pnkfelix Mar 26, 2015
53a183f
Auto merge of #23359 - erickt:quote, r=pnkfelix
bors Mar 26, 2015
7d3bf47
Adding more information about the behavior of Arc/Rc
Adenilson Mar 26, 2015
43bfaa4
Mass rename uint/int to usize/isize
alexcrichton Mar 26, 2015
dac552f
doc: change 0u32..10 to 0..10
oneeman Mar 26, 2015
3e100ff
book: make it one sentence
tshepang Mar 26, 2015
9754b06
rustc: Remove support for old_impl_check
alexcrichton Mar 26, 2015
1c43e53
impl `FromStr` for `IpAddr`
murarth Mar 26, 2015
07afd04
book: let grow() accept the growth parameter
tshepang Mar 26, 2015
3752958
syntax: Remove support for #[should_fail]
alexcrichton Mar 26, 2015
e7525cf
Revise use of conversion traits
aturon Mar 26, 2015
5123bf4
Update docs to fix various 404s
gmjosack Mar 26, 2015
9c9bb9c
Implement `Reflect` trait with a variant on the standard OIBIT
nikomatsakis Mar 24, 2015
c59fe8b
Drive-by fix for incorrect variance rule that I noticed.
nikomatsakis Mar 25, 2015
703308d
Refactor how binders are handled in trait selection
nikomatsakis Mar 26, 2015
710af04
Refactor object-safety test to use def-ids only
nikomatsakis Mar 26, 2015
671d896
rustc: Remove old #[phase] and #[plugin]
alexcrichton Mar 26, 2015
cbef22e
Update rust-installer. Fixes --help and interop with NixOS
brson Mar 26, 2015
4357621
book: there is no guessing game anymore, so remove references to it
tshepang Mar 26, 2015
4f419d9
rustc: Remove support for `-l foo:static`
alexcrichton Mar 26, 2015
ce668a8
book: fix typo
tshepang Mar 26, 2015
e71221f
std: Stabilize BufRead::split
alexcrichton Mar 26, 2015
b68ca84
workaround pretty-print bugs to placate `make check-pretty`.
pnkfelix Mar 27, 2015
c0dd239
Add `std::net::lookup_addr` for reverse DNS lookup
murarth Mar 16, 2015
c9f600b
Stabilize some stragglers in `std::option`
aturon Mar 27, 2015
dd8cf92
Fix doc tests.
nikomatsakis Mar 27, 2015
1c35953
entry API v3: replace Entry::get with Entry::default and Entry::defau…
Gankra Mar 1, 2015
93cdf1f
update everything to use Entry defaults
Gankra Mar 1, 2015
a67faf1
Change the trivial cast lints to allow by default
nrc Mar 27, 2015
975ebc1
num: Derive Debug for Wrapping
ruuda Mar 27, 2015
1b98f6d
default => or_insert per RFC
Gankra Mar 20, 2015
242ed0b
Auto merge of #22930 - Gankro:entry_3, r=aturon
bors Mar 27, 2015
afaa3b6
Prevent ICEs when parsing invalid escapes, closes #23620
fhahn Mar 26, 2015
fa38403
alloc: Don't run some Arc doc tests
alexcrichton Mar 27, 2015
82b375b
Rollup merge of #23738 - alexcrichton:snapshots, r=cmr
Manishearth Mar 27, 2015
d77a951
Rollup merge of #23419 - murarth:lookup-addr, r=alexcrichton
Manishearth Mar 27, 2015
e65c6e5
Rollup merge of #23625 - fhahn:issue-23620-ice-unicode-bytestring, r=…
Manishearth Mar 27, 2015
5b45ede
Rollup merge of #23712 - nikomatsakis:reflect-trait, r=FlaPer87
Manishearth Mar 27, 2015
0e5052c
rollup merge of #23419: murarth/lookup-addr
alexcrichton Mar 27, 2015
e42521a
rollup merge of #23535: pnkfelix/fsk-filling-drop
alexcrichton Mar 27, 2015
b79fbe0
rollup merge of #23625: fhahn/issue-23620-ice-unicode-bytestring
alexcrichton Mar 27, 2015
6968ccf
rollup merge of #23651: alexcrichton/unwind-try
alexcrichton Mar 27, 2015
431296f
rollup merge of #23676: gkoz/array_as_ref
alexcrichton Mar 27, 2015
adbb516
rollup merge of #23690: wettowelreactor/patch-1
alexcrichton Mar 27, 2015
db50084
Rollup merge of #23740 - alexcrichton:remove-deprecated-slicing-synta…
Manishearth Mar 27, 2015
e6166b7
rollup merge of #23712: nikomatsakis/reflect-trait
alexcrichton Mar 27, 2015
8eb918e
rollup merge of #23719: steveklabnik/unstable_book
alexcrichton Mar 27, 2015
4bd1552
rollup merge of #23721: erickt/deprecate
alexcrichton Mar 27, 2015
39fecde
rollup merge of #23725: tamird/test-with-ios
alexcrichton Mar 27, 2015
31fbfc3
rollup merge of #23736: gmjosack/master
alexcrichton Mar 27, 2015
d2fac62
rollup merge of #23740: alexcrichton/remove-deprecated-slicing-syntax
alexcrichton Mar 27, 2015
df49ea6
rollup merge of #23743: Adenilson/addInfoArcClone01
alexcrichton Mar 27, 2015
5f9fd2e
rollup merge of #23745: oneeman/trpl-looping
alexcrichton Mar 27, 2015
5d8a529
rollup merge of #23747: tshepang/misleading-info
alexcrichton Mar 27, 2015
88c3a0f
rollup merge of #23750: murarth/ipaddr-fromstr
alexcrichton Mar 27, 2015
55c398d
rollup merge of #23752: alexcrichton/remove-should-fail
alexcrichton Mar 27, 2015
7d79a4f
rollup merge of #23753: aturon/revise-convert
alexcrichton Mar 27, 2015
6251999
rollup merge of #23761: alexcrichton/remove-phase
alexcrichton Mar 27, 2015
19ed61e
rollup merge of #23764: tshepang/no-guessing-anymore
alexcrichton Mar 27, 2015
fbbf02d
rollup merge of #23765: alexcrichton/remove-colon-syntax
alexcrichton Mar 27, 2015
7393693
rollup merge of #23767: tshepang/typo
alexcrichton Mar 27, 2015
a491d21
rollup merge of #23769: alexcrichton/stabilize-split
alexcrichton Mar 27, 2015
45f1324
rollup merge of #23771: aturon/stab-straggle-1
alexcrichton Mar 27, 2015
aff160b
rollup merge of #23775: alexcrichton/fix-flaky-test
alexcrichton Mar 27, 2015
dc6bb5e
rollup merge of #23776: nrc/allow_trivial_cast
alexcrichton Mar 27, 2015
169231d
rollup merge of #23780: ruud-v-a/wrapping
alexcrichton Mar 27, 2015
956c2eb
rollup merge of #23738: alexcrichton/snapshots
alexcrichton Mar 27, 2015
28a6b16
rollup merge of #23741: alexcrichton/remove-int-uint
alexcrichton Mar 27, 2015
e361b25
rollup merge of #23749: alexcrichton/remove-old-impl-check
alexcrichton Mar 27, 2015
b24a3b8
rustc: Remove support for hyphens in crate names
alexcrichton Mar 27, 2015
13e4270
Unquote all crate names without underscores
richo Mar 27, 2015
8bc3838
Merge 'richo/unquote-crates' into less-quotes
alexcrichton Mar 27, 2015
6acf385
Updated std::dynamic_lib to use std::path.
aatxe Mar 23, 2015
70042cf
When testing whether a default method predicates are satisfiable,
nikomatsakis Mar 18, 2015
0156011
Test fixes and rebase conflicts, round 1
alexcrichton Mar 27, 2015
e77db16
Fix fallout of removing quotes in crate names
alexcrichton Mar 27, 2015
63bbdc1
Fix wording for Option<T>.unwrap. Fixes #23713
jviereck Mar 27, 2015
0c9de81
Auto merge of #23419 - murarth:lookup-addr, r=alexcrichton
bors Mar 27, 2015
1a6188a
Update return value docs in atomics docs
steveklabnik Mar 27, 2015
3f1d57f
rollup merge of #23285: steveklabnik/gh11794
alexcrichton Mar 27, 2015
ac24a51
rollup merge of #23486: nikomatsakis/issue-23485
alexcrichton Mar 27, 2015
df50510
rollup merge of #23665: steveklabnik/doc_std_ascii
alexcrichton Mar 27, 2015
8ec3695
rollup merge of #23791: jviereck/fix-23713
alexcrichton Mar 27, 2015
1639e51
Feature gate *all* slice patterns. #23121
brson Mar 27, 2015
828c369
rollup merge of #23197: aatxe/master
alexcrichton Mar 27, 2015
1c78478
rollup merge of #23793: steveklabnik/gh21668
alexcrichton Mar 27, 2015
d65fee2
Test fixes and rebase conflicts, round 2
alexcrichton Mar 27, 2015
8d6fb44
rustdoc: show negative impls properly in the implementors page
emberian Mar 27, 2015
e604382
Explain why &self is common
steveklabnik Mar 27, 2015
59d417a
Note that zip and enumerate are similar
steveklabnik Mar 27, 2015
990202c
rollup merge of #23794: brson/slicegate
alexcrichton Mar 27, 2015
7e3fd14
Test fixes and rebase conflicts, round 3
alexcrichton Mar 27, 2015
1c0e1a8
rollup merge of #23763: brson/installer
alexcrichton Mar 27, 2015
d3a4f36
rollup merge of #23786: alexcrichton/less-quotes
alexcrichton Mar 27, 2015
5520801
Auto merge of #23796 - alexcrichton:rollup, r=alexcrichton
bors Mar 27, 2015
3feeea5
Make `std::error::Error` not inherit from Send
reem Mar 27, 2015
e58f057
Auto merge of #23789 - steveklabnik:gh22716, r=alexcrichton
bors Mar 28, 2015
e2fd2df
std: Don't deadlock/panic on recursive prints
alexcrichton Mar 27, 2015
9f9e251
Auto merge of #23798 - alexcrichton:issue-23781, r=aturon
bors Mar 28, 2015
f8b6e28
Auto merge of #23799 - reem:error-no-send, r=aturon
bors Mar 28, 2015
cbce6bf
cleanup: Remove unused braces in use statements
richo Mar 28, 2015
aaf74d1
book: Fix typo
dnwade Mar 28, 2015
474062d
Rollup merge of #23332 - jakub-:rustup-curl-silent-flag, r=brson
Manishearth Mar 28, 2015
5299d36
Rollup merge of #23751 - tshepang:do-not-hardcode-the-growth, r=Manis…
Manishearth Mar 28, 2015
4aa17c8
Rollup merge of #23788 - steveklabnik:gh23748, r=alexcrichton
Manishearth Mar 28, 2015
5eb4be4
Rollup merge of #23803 - richo:unused-braces, r=Manishearth
Manishearth Mar 28, 2015
95f4061
Rollup merge of #23804 - dnwade:patch-1, r=Manishearth
Manishearth Mar 28, 2015
3e7385a
Auto merge of #23806 - Manishearth:rollup, r=Manishearth
bors Mar 28, 2015
1accaa9
Fix some typos
petrochenkov Mar 28, 2015
6b7c5b9
iOS: int/uint fallout
vhbit Mar 28, 2015
01f2c67
Auto merge of #23807 - vhbit:ios-int-drop, r=alexcrichton
bors Mar 28, 2015
4037f2a
Update debug helpers and add list builder
sfackler Mar 27, 2015
bd66f57
libc: Don't use unstable apis
alexcrichton Mar 28, 2015
b82bcec
Fold collections debug impls
sfackler Mar 28, 2015
9fb54f8
Remove standard io chapter from the book
steveklabnik Mar 27, 2015
f6c234f
Document properties for Eq + Hash
steveklabnik Mar 28, 2015
d502f42
Remove IteratorExt
sfackler Mar 12, 2015
c89de2c
Auto merge of #23300 - sfackler:rm-iterator-ext, r=alexcrichton
bors Mar 28, 2015
80c188e
Correct Phil Dawes email address
Mar 28, 2015
842e6cf
Fold in debug builder doc examples
sfackler Mar 28, 2015
64c48f3
Port of pcwalton removal of `#[unsafe_destructor]` check.
pnkfelix Oct 27, 2014
256e78a
Fix typo in docstring for slice
nicholasbishop Mar 29, 2015
27af78c
Auto merge of #23819 - pnkfelix:kill-unsafe-dtor, r=pnkfelix
bors Mar 29, 2015
3c0c8fc
Oops fix output examples
sfackler Mar 28, 2015
227b46b
Auto merge of #23810 - sfackler:debug-collections, r=alexcrichton
bors Mar 29, 2015
ccb4e84
Fix massive performance issue in read_to_end
sfackler Mar 29, 2015
fa3d778
Auto merge of #23787 - steveklabnik:gh23760, r=alexcrichton
bors Mar 29, 2015
58c7d6f
Fix typo
huachaohuang Mar 29, 2015
ea03ad9
Auto merge of #23809 - cmr:issue-21310, r=Manishearth
bors Mar 29, 2015
ef94b8a
Rollup merge of #23811 - alexcrichton:libc-stable, r=Manishearth
Manishearth Mar 29, 2015
5daab4a
Rollup merge of #23814 - steveklabnik:gh23320, r=alexcrichton
Manishearth Mar 29, 2015
a96ee9d
Rollup merge of #23817 - phildawes:master, r=alexcrichton
Manishearth Mar 29, 2015
963bf1d
Rollup merge of #23821 - nicholasbishop:bishop-slice-iter-typo-fix, r…
Manishearth Mar 29, 2015
9147463
Rollup merge of #23829 - huachaohuang:master, r=Manishearth
Manishearth Mar 29, 2015
b27ba52
Auto merge of #23831 - Manishearth:rollup, r=Manishearth
bors Mar 29, 2015
8fe7f1f
Add an example for FromIterator::from_iter
frewsxcv Mar 28, 2015
c5370be
Auto merge of #23816 - frewsxcv:fromiterator-example, r=Manishearth
bors Mar 29, 2015
e489eaa
Update `std::error` example
Mar 29, 2015
1a5e73a
Fix trailing whitespace. Whoops!
Mar 29, 2015
2a1bad7
Fix extremely small stability bars on docs page
wesleywiser Mar 29, 2015
92f3d9a
Auto merge of #23820 - sfackler:fast_read_to_end, r=alexcrichton
bors Mar 29, 2015
f575aca
Remove about standard io chapter from the book (from arrays-vectors-a…
Mar 29, 2015
b77a09c
Fixed wrong name of test module in testing.md
tyrion Mar 29, 2015
bf9c27d
s/THRADS/THREADS/
apasel422 Mar 29, 2015
d4b5f65
Fix line spacing.
Mar 29, 2015
d8be84e
Auto merge of #23830 - petrochenkov:spellcheck, r=steveklabnik
bors Mar 29, 2015
c748864
Auto merge of #23837 - wesleywiser:patch-1, r=alexcrichton
bors Mar 30, 2015
f55d03c
Auto merge of #23838 - kgv:master, r=steveklabnik
bors Mar 30, 2015
d9252bd
book: improve a bit of grammar in Method Syntax chapeter
tshepang Mar 30, 2015
f002640
Auto merge of #23843 - apasel422:thrads, r=steveklabnik
bors Mar 30, 2015
d649292
Implement new type-checking strategy for binary operators. Basically,
nikomatsakis Mar 24, 2015
d6466ff
Driveby cleanup of the impl for negation, which had some kind of
nikomatsakis Mar 24, 2015
c92bdcb
Fallout where types must be specified.
nikomatsakis Mar 24, 2015
14192d6
Auto merge of #23848 - cmr:no-compiler-docs, r=huonw
bors Mar 30, 2015
aa13981
Mucho debug instrumentation.
pnkfelix Mar 28, 2015
0705e6a
expr_use_visitor: Added comment explaining meaning of boolean return …
pnkfelix Mar 30, 2015
492b3b1
mem_categorization.rs removed `pub` from method called only from this…
pnkfelix Mar 30, 2015
f513380
Address Issue 14270 by making `cmt::freely_aliasable` result more fin…
pnkfelix Mar 29, 2015
e434053
Fallout to test.
pnkfelix Mar 30, 2015
e2b2a53
Fallout in tests: largely changes to error messages.
nikomatsakis Mar 30, 2015
7595c25
Add test case for #22743.
nikomatsakis Mar 24, 2015
9de34a8
Auto merge of #23673 - nikomatsakis:issue-23319-binops-ng-5, r=pnkfelix
bors Mar 30, 2015
3b45470
Rollup merge of #23855 - tshepang:doc-nit, r=Manishearth
Manishearth Mar 30, 2015
6c0314a
Make note of noalias in unsafe reference section
steveklabnik Mar 28, 2015
6cf3b0b
Auto merge of #23861 - Manishearth:rollup, r=Manishearth
bors Mar 30, 2015
8f0c952
Explain why 'elision'
steveklabnik Mar 20, 2015
085bcfa
Second attempt to fix #23713 based on follow-up comments in #23791.
jviereck Mar 30, 2015
4c1f5bd
convert: add Into<Cow> impls for &str and String
seanmonstar Mar 30, 2015
6e8693b
std: Add a note about the print! macro and output buffering
richo Mar 29, 2015
acd48a2
std: Standardize (input, output) param orderings
alexcrichton Mar 27, 2015
31a5285
lint: handle private traits better
emberian Mar 30, 2015
1026b06
book: make Builder Pattern example more complete
tshepang Mar 26, 2015
5dc23be
rustdoc: output stderr on doc-test fail
rayglover-ibm Mar 30, 2015
83d3503
Rollup merge of #23558 - steveklabnik:explain_elision, r=gankro
Manishearth Mar 31, 2015
470996a
Rollup merge of #23813 - steveklabnik:gh19733, r=cmr
Manishearth Mar 31, 2015
8410788
Rollup merge of #23826 - richo:note-print-macro, r=alexcrichton
Manishearth Mar 31, 2015
4038593
Rollup merge of #23836 - Hoverbear:patch-1, r=steveklabnik
Manishearth Mar 31, 2015
a4da0d8
Rollup merge of #23839 - tyrion:patch-1, r=alexcrichton
Manishearth Mar 31, 2015
e76b412
Rollup merge of #23846 - rayglover:patch-rustdoc-stderr, r=alexcrichton
Manishearth Mar 31, 2015
2c0329c
Rollup merge of #23852 - cmr:missing_doc, r=Manishearth
Manishearth Mar 31, 2015
b4457fb
Rollup merge of #23859 - pnkfelix:fsk-lesser-box, r=nikomatsakis
Manishearth Mar 31, 2015
8225a1c
Rollup merge of #23862 - jviereck:fix_23713_v2, r=steveklabnik
Manishearth Mar 31, 2015
464c18c
Rollup merge of #23865 - seanmonstar:into-cow, r=alexcrichton
Manishearth Mar 31, 2015
5793804
Rollup merge of #23866 - alexcrichton:switch-some-orders, r=aturon
Manishearth Mar 31, 2015
7afc7d3
Rollup merge of #23869 - tshepang:more-complete-builder-pattern-examp…
Manishearth Mar 31, 2015
db76327
Rollup merge of #23874 - cmr:no-compiler-docs, r=alexcrichton
Manishearth Mar 31, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion AUTHORS.txt
Original file line number Diff line number Diff line change
@@ -606,7 +606,7 @@ Peter Schuller <peter.schuller@infidyne.com>
Peter Williams <peter@newton.cx>
Peter Zotov <whitequark@whitequark.org>
Petter Remen <petter.remen@gmail.com>
Phil Dawes <pdawes@drw.com>
Phil Dawes <phil@phildawes.net>
Phil Ruffwind <rf@rufflewind.com>
Philip Munksgaard <pmunksgaard@gmail.com>
Philipp Brüschweiler <blei42@gmail.com>
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
@@ -404,7 +404,7 @@ case $CFG_OSTYPE in
CFG_OSTYPE=pc-windows-gnu
;;

# Thad's Cygwin identifers below
# Thad's Cygwin identifiers below

# Vista 32 bit
CYGWIN_NT-6.0)
2 changes: 1 addition & 1 deletion mk/platform.mk
Original file line number Diff line number Diff line change
@@ -179,7 +179,7 @@ define CFG_MAKE_TOOLCHAIN

ifeq ($$(findstring $(HOST_$(1)),arm aarch64 mips mipsel powerpc),)

# On Bitrig, we need the relocation model to be PIC for everthing
# On Bitrig, we need the relocation model to be PIC for everything
ifeq (,$(filter $(OSTYPE_$(1)),bitrig))
LLVM_MC_RELOCATION_MODEL="pic"
else
2 changes: 1 addition & 1 deletion mk/target.mk
Original file line number Diff line number Diff line change
@@ -132,7 +132,7 @@ endef
# on $$(TSREQ$(1)_T_$(2)_H_$(3)), to ensure that no products will be
# put into the target area until after the get-snapshot.py script has
# had its chance to clean it out; otherwise the other products will be
# inadvertantly included in the clean out.
# inadvertently included in the clean out.
SNAPSHOT_RUSTC_POST_CLEANUP=$(HBIN0_H_$(CFG_BUILD))/rustc$(X_$(CFG_BUILD))

define TARGET_HOST_RULES
2 changes: 0 additions & 2 deletions src/compiletest/compiletest.rs
Original file line number Diff line number Diff line change
@@ -12,9 +12,7 @@

#![feature(box_syntax)]
#![feature(collections)]
#![feature(int_uint)]
#![feature(old_io)]
#![feature(old_path)]
#![feature(rustc_private)]
#![feature(unboxed_closures)]
#![feature(std_misc)]
8 changes: 4 additions & 4 deletions src/compiletest/errors.rs
Original file line number Diff line number Diff line change
@@ -15,13 +15,13 @@ use std::io::prelude::*;
use std::path::Path;

pub struct ExpectedError {
pub line: uint,
pub line: usize,
pub kind: String,
pub msg: String,
}

#[derive(PartialEq, Debug)]
enum WhichLine { ThisLine, FollowPrevious(uint), AdjustBackward(uint) }
enum WhichLine { ThisLine, FollowPrevious(usize), AdjustBackward(usize) }

/// Looks for either "//~| KIND MESSAGE" or "//~^^... KIND MESSAGE"
/// The former is a "follow" that inherits its target from the preceding line;
@@ -58,8 +58,8 @@ pub fn load_errors(testfile: &Path) -> Vec<ExpectedError> {
}).collect()
}

fn parse_expected(last_nonfollow_error: Option<uint>,
line_num: uint,
fn parse_expected(last_nonfollow_error: Option<usize>,
line_num: usize,
line: &str) -> Option<(WhichLine, ExpectedError)> {
let start = match line.find("//~") { Some(i) => i, None => return None };
let (follow, adjusts) = if line.char_at(start + 3) == '|' {
10 changes: 5 additions & 5 deletions src/compiletest/header.rs
Original file line number Diff line number Diff line change
@@ -357,7 +357,7 @@ pub fn parse_name_value_directive(line: &str, directive: &str)
}
}

pub fn gdb_version_to_int(version_string: &str) -> int {
pub fn gdb_version_to_int(version_string: &str) -> isize {
let error_string = format!(
"Encountered GDB version string with unexpected format: {}",
version_string);
@@ -369,17 +369,17 @@ pub fn gdb_version_to_int(version_string: &str) -> int {
panic!("{}", error_string);
}

let major: int = components[0].parse().ok().expect(&error_string);
let minor: int = components[1].parse().ok().expect(&error_string);
let major: isize = components[0].parse().ok().expect(&error_string);
let minor: isize = components[1].parse().ok().expect(&error_string);

return major * 1000 + minor;
}

pub fn lldb_version_to_int(version_string: &str) -> int {
pub fn lldb_version_to_int(version_string: &str) -> isize {
let error_string = format!(
"Encountered LLDB version string with unexpected format: {}",
version_string);
let error_string = error_string;
let major: int = version_string.parse().ok().expect(&error_string);
let major: isize = version_string.parse().ok().expect(&error_string);
return major;
}
10 changes: 4 additions & 6 deletions src/compiletest/procsrv.rs
Original file line number Diff line number Diff line change
@@ -8,27 +8,25 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![allow(deprecated)] // for old path, for dynamic_lib

use std::dynamic_lib::DynamicLibrary;
use std::io::prelude::*;
use std::old_path::Path;
use std::path::PathBuf;
use std::process::{ExitStatus, Command, Child, Output, Stdio};

fn add_target_env(cmd: &mut Command, lib_path: &str, aux_path: Option<&str>) {
// Need to be sure to put both the lib_path and the aux path in the dylib
// search path for the child.
let mut path = DynamicLibrary::search_path();
match aux_path {
Some(p) => path.insert(0, Path::new(p)),
Some(p) => path.insert(0, PathBuf::from(p)),
None => {}
}
path.insert(0, Path::new(lib_path));
path.insert(0, PathBuf::from(lib_path));

// Add the new dylib search path var
let var = DynamicLibrary::envvar();
let newpath = DynamicLibrary::create_path(&path);
let newpath = String::from_utf8(newpath).unwrap();
let newpath = newpath.to_str().unwrap().to_string();
cmd.env(var, &newpath);
}

12 changes: 6 additions & 6 deletions src/compiletest/runtest.rs
Original file line number Diff line number Diff line change
@@ -758,7 +758,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
struct DebuggerCommands {
commands: Vec<String>,
check_lines: Vec<String>,
breakpoint_lines: Vec<uint>,
breakpoint_lines: Vec<usize>,
}

fn parse_debugger_commands(file_path: &Path, debugger_prefix: &str)
@@ -1036,7 +1036,7 @@ fn is_compiler_error_or_warning(line: &str) -> bool {
scan_string(line, "warning", &mut i));
}

fn scan_until_char(haystack: &str, needle: char, idx: &mut uint) -> bool {
fn scan_until_char(haystack: &str, needle: char, idx: &mut usize) -> bool {
if *idx >= haystack.len() {
return false;
}
@@ -1048,7 +1048,7 @@ fn scan_until_char(haystack: &str, needle: char, idx: &mut uint) -> bool {
return true;
}

fn scan_char(haystack: &str, needle: char, idx: &mut uint) -> bool {
fn scan_char(haystack: &str, needle: char, idx: &mut usize) -> bool {
if *idx >= haystack.len() {
return false;
}
@@ -1060,7 +1060,7 @@ fn scan_char(haystack: &str, needle: char, idx: &mut uint) -> bool {
return true;
}

fn scan_integer(haystack: &str, idx: &mut uint) -> bool {
fn scan_integer(haystack: &str, idx: &mut usize) -> bool {
let mut i = *idx;
while i < haystack.len() {
let ch = haystack.char_at(i);
@@ -1076,7 +1076,7 @@ fn scan_integer(haystack: &str, idx: &mut uint) -> bool {
return true;
}

fn scan_string(haystack: &str, needle: &str, idx: &mut uint) -> bool {
fn scan_string(haystack: &str, needle: &str, idx: &mut usize) -> bool {
let mut haystack_i = *idx;
let mut needle_i = 0;
while needle_i < needle.len() {
@@ -1725,7 +1725,7 @@ fn disassemble_extract(config: &Config, _props: &TestProps,
}


fn count_extracted_lines(p: &Path) -> uint {
fn count_extracted_lines(p: &Path) -> usize {
let mut x = Vec::new();
File::open(&p.with_extension("ll")).unwrap().read_to_end(&mut x).unwrap();
let x = str::from_utf8(&x).unwrap();
33 changes: 17 additions & 16 deletions src/compiletest/util.rs
Original file line number Diff line number Diff line change
@@ -13,33 +13,34 @@ use common::Config;

/// Conversion table from triple OS name to Rust SYSNAME
const OS_TABLE: &'static [(&'static str, &'static str)] = &[
("mingw32", "windows"),
("win32", "windows"),
("windows", "windows"),
("darwin", "macos"),
("android", "android"),
("linux", "linux"),
("freebsd", "freebsd"),
("dragonfly", "dragonfly"),
("bitrig", "bitrig"),
("darwin", "macos"),
("dragonfly", "dragonfly"),
("freebsd", "freebsd"),
("ios", "ios"),
("linux", "linux"),
("mingw32", "windows"),
("openbsd", "openbsd"),
("win32", "windows"),
("windows", "windows"),
];

const ARCH_TABLE: &'static [(&'static str, &'static str)] = &[
("i386", "x86"),
("i686", "x86"),
("aarch64", "aarch64"),
("amd64", "x86_64"),
("x86_64", "x86_64"),
("sparc", "sparc"),
("powerpc", "powerpc"),
("arm64", "aarch64"),
("arm", "arm"),
("aarch64", "aarch64"),
("arm64", "aarch64"),
("hexagon", "hexagon"),
("i386", "x86"),
("i686", "x86"),
("mips", "mips"),
("xcore", "xcore"),
("msp430", "msp430"),
("hexagon", "hexagon"),
("powerpc", "powerpc"),
("s390x", "systemz"),
("sparc", "sparc"),
("x86_64", "x86_64"),
("xcore", "xcore"),
];

pub fn get_os(triple: &str) -> &'static str {
Loading