Skip to content

Rolling up PRs in the queue #23796

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 105 commits into from
Mar 28, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
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
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
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
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
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
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
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
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: 0 additions & 2 deletions src/compiletest/compiletest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
8 changes: 4 additions & 4 deletions src/compiletest/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) == '|' {
Expand Down
10 changes: 5 additions & 5 deletions src/compiletest/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Up @@ -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);
}

Expand Down
12 changes: 6 additions & 6 deletions src/compiletest/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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);
Expand All @@ -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() {
Expand Down Expand Up @@ -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();
Expand Down
33 changes: 17 additions & 16 deletions src/compiletest/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading