Skip to content

Rollup PRs in the queue #21997

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 58 commits into from
Feb 7, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
d992d3d
Fix issue with rt::unwind::try() docs
steveklabnik Feb 4, 2015
85a85c2
Switch missing_copy_implementations to default-allow
sfackler Feb 4, 2015
db8f2d5
Avoid unnecessary codegen in with_cond()
dotdash Sep 4, 2014
5cbbc12
stabilize core Entry API
Gankra Feb 5, 2015
dc2e444
Fix for misspelled comments.
jbcrail Feb 5, 2015
fc0fd28
Fix for misspelled comments in tests.
jbcrail Feb 5, 2015
456d23e
Add a lint for writing `#[feature]` for stable features, warn by defa…
brson Feb 3, 2015
3ac8628
Replace usage of slice::from_raw_buf with slice::from_raw_parts
mzabaluev Feb 3, 2015
fb6b970
Replace one more slice::from_raw_mut_buf added with new io
mzabaluev Feb 5, 2015
5ad3488
unbreak tree for openbsd after #21787
semarie Feb 5, 2015
8fded29
Made external_crates feature work again.
Feb 5, 2015
be8d9bb
When elaborating predicates, purge duplicates from the initial vector.
nikomatsakis Feb 5, 2015
cb4965e
complete openbsd support for `std::env`
semarie Feb 5, 2015
023a931
Make the lifetime anchor immutable on std::mem::copy_mut_lifetime
mzabaluev Feb 5, 2015
8d9bb17
Extend the solution to encompass HRTB
nikomatsakis Feb 5, 2015
fab32b4
Now that the elaboration mechanism is suppressing defaults, we can re…
nikomatsakis Feb 5, 2015
bbf0898
Fix license
nikomatsakis Feb 5, 2015
fa9d223
make codemap more robust in face of ill-formed spans.
pnkfelix Feb 5, 2015
1e8e7dc
improve `compiletest` error message when path option missing.
pnkfelix Dec 22, 2014
e4a678d
Ported regions-mock-tcx to use TypedArena rather than Arena since it …
pnkfelix Feb 2, 2015
50c6742
Use a TypedArena rather than an Arena for the backing storage of vari…
pnkfelix Feb 2, 2015
e250fe3
misc collections code cleanup
Gankra Feb 5, 2015
1420ceb
remove unecessary lifetimes from a bunch of collections code
Gankra Feb 5, 2015
15fb06d
remove int_uint feature from libcollections
Gankra Feb 5, 2015
47c2091
Fix an ICE when translating some static expressions.
LeoTestard Feb 5, 2015
ccb513e
Improve ptr::read docs
steveklabnik Feb 6, 2015
ef0bbaa
Mention the queueueue-ness of mpsc.
steveklabnik Feb 6, 2015
3df2fbe
Fix name of variable referenced in featureck.py
iKevinY Feb 6, 2015
cad96b5
Rollup merge of #21987 - pnkfelix:eschew-arena-in-variance-analysis, …
Manishearth Feb 6, 2015
114324f
Rollup merge of #21986 - LeoTestard:identical-statics, r=eddyb
Manishearth Feb 6, 2015
05e45d0
Rollup merge of #21983 - pnkfelix:eschew-untyped-arena-in-regions-moc…
Manishearth Feb 6, 2015
60c9f56
Rollup merge of #21981 - pnkfelix:improve-compile-test-malformed-opti…
Manishearth Feb 6, 2015
ce3a4af
Rollup merge of #21980 - pnkfelix:more-robust-span-to-snippet, r=huonw
Manishearth Feb 6, 2015
5c172ad
Rollup merge of #21976 - mzabaluev:fix-copy-mut-lifetime, r=alexcrichton
Manishearth Feb 6, 2015
efdf16b
Rollup merge of #21964 - semarie:openbsd-env, r=alexcrichton
Manishearth Feb 6, 2015
6bf0cd8
Rollup merge of #21955 - jbcrail:fix-test-comments, r=steveklabnik
Manishearth Feb 6, 2015
08a2bef
Rollup merge of #21954 - jbcrail:fix-misspelled-comments, r=steveklabnik
Manishearth Feb 6, 2015
d1a1d33
Rollup merge of #21951 - Gankro:entry, r=aturon
Manishearth Feb 6, 2015
cfae247
Rollup merge of #21941 - dotdash:with_cond_false, r=Aatch
Manishearth Feb 6, 2015
67b5129
Rollup merge of #21925 - sfackler:allow-missing-copy, r=alexcrichton
Manishearth Feb 6, 2015
60cb151
Rollup merge of #21924 - steveklabnik:fix_try_docs, r=huonw
Manishearth Feb 6, 2015
f6d08b0
Rollup merge of #21969 - Gankro:collections-cleanup, r=alexcrichton
Manishearth Feb 6, 2015
6c28ad6
Rollup merge of #21926 - mzabaluev:raw-lifetime, r=alexcrichton
Manishearth Feb 6, 2015
8e4c00b
Rollup merge of #21958 - brson:stable-features, r=alexcrichton
Manishearth Feb 6, 2015
dfc9265
Rollup merge of #21966 - scialex:fix-extern, r=alexcrichton
Manishearth Feb 6, 2015
703364f
Rollup merge of #21968 - nikomatsakis:issue-21965-duplicate-preds-in-…
Manishearth Feb 6, 2015
c4e12c1
Rollup merge of #21989 - steveklabnik:gh21491, r=Gankro
Manishearth Feb 6, 2015
73b9aeb
remove int_uint feature from libcollections
Gankra Feb 5, 2015
f7aac93
libcollections: unit test fixes
Manishearth Feb 6, 2015
40d1b23
rm unused feature
Manishearth Feb 6, 2015
1a2b602
Rollup merge of #21991 - steveklabnik:gh21915, r=huonw
Manishearth Feb 6, 2015
1589dcf
Remove word syntax from obsolete syntax messages
nagisa Feb 6, 2015
e5f2524
More libcollections fixes
Manishearth Feb 6, 2015
3a9b4e5
fix outdated docs
Gankra Feb 6, 2015
e15538d
fix outdated docs
Gankra Feb 6, 2015
0346bcf
Rollup merge of #21994 - iKevinY:featureck-fix, r=brson
Manishearth Feb 6, 2015
fc1e045
Rollup merge of #22005 - nagisa:obsolete-ctx, r=alexcrichton
Manishearth Feb 6, 2015
df7db97
Rollup merge of #22009 - japaric:no-mov, r=alexcrichton
Manishearth Feb 6, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/compiletest/compiletest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ pub fn parse_config(args: Vec<String> ) -> Config {
}

fn opt_path(m: &getopts::Matches, nm: &str) -> Path {
Path::new(m.opt_str(nm).unwrap())
match m.opt_str(nm) {
Some(s) => Path::new(s),
None => panic!("no option (=path) found for {}", nm),
}
}

let filter = if !matches.free.is_empty() {
Expand Down
1 change: 0 additions & 1 deletion src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,6 @@ default visibility with the `priv` keyword. When an item is declared as `pub`,
it can be thought of as being accessible to the outside world. For example:

```
# #![allow(missing_copy_implementations)]
# fn main() {}
// Declare a private struct
struct Foo;
Expand Down
2 changes: 1 addition & 1 deletion src/doc/trpl/ownership.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ fn print<'a>(s: &'a str); // expanded
fn debug(lvl: u32, s: &str); // elided
fn debug<'a>(lvl: u32, s: &'a str); // expanded

// In the preceeding example, `lvl` doesn't need a lifetime because it's not a
// In the preceding example, `lvl` doesn't need a lifetime because it's not a
// reference (`&`). Only things relating to references (such as a `struct`
// which contains a reference) need lifetimes.

Expand Down
4 changes: 2 additions & 2 deletions src/etc/featureck.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@
if not name in joint_features:
print "error: feature '" + name + "' is both a lang and lib feature but not whitelisted"
errors = True
lang_status = lang_feature_stats[name][3]
lang_status = language_feature_stats[name][3]
lib_status = lib_feature_stats[name][3]
lang_stable_since = lang_feature_stats[name][4]
lang_stable_since = language_feature_stats[name][4]
lib_stable_since = lib_feature_stats[name][4]

if lang_status != lib_status and lib_status != "deprecated":
Expand Down
2 changes: 1 addition & 1 deletion src/grammar/parser-lalr.y
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ maybe_stmts
//
// There are also two other expr subtypes: first, nonparen_expr
// disallows exprs surrounded by parens (including tuple expressions),
// this is neccesary for BOX (place) expressions, so a parens expr
// this is necessary for BOX (place) expressions, so a parens expr
// following the BOX is always parsed as the place. There is also
// expr_norange used in index_expr, which disallows '..' in
// expressions as that has special meaning inside of brackets.
Expand Down
4 changes: 2 additions & 2 deletions src/liballoc/arc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ impl<T: Sync + Send> Drop for Arc<T> {
///
/// // stuff
///
/// drop(five); // explict drop
/// drop(five); // explicit drop
/// }
/// {
/// let five = Arc::new(5);
Expand Down Expand Up @@ -441,7 +441,7 @@ impl<T: Sync + Send> Drop for Weak<T> {
///
/// // stuff
///
/// drop(weak_five); // explict drop
/// drop(weak_five); // explicit drop
/// }
/// {
/// let five = Arc::new(5);
Expand Down
4 changes: 3 additions & 1 deletion src/liballoc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
#![feature(unboxed_closures)]
#![feature(core)]
#![feature(hash)]
#![feature(libc)]
#![cfg_attr(all(not(feature = "external_funcs"), not(feature = "external_crate")),
feature(libc))]


#[macro_use]
extern crate core;
Expand Down
4 changes: 2 additions & 2 deletions src/liballoc/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ impl<T> Drop for Rc<T> {
///
/// // stuff
///
/// drop(five); // explict drop
/// drop(five); // explicit drop
/// }
/// {
/// let five = Rc::new(5);
Expand Down Expand Up @@ -688,7 +688,7 @@ impl<T> Drop for Weak<T> {
///
/// // stuff
///
/// drop(weak_five); // explict drop
/// drop(weak_five); // explicit drop
/// }
/// {
/// let five = Rc::new(5);
Expand Down
35 changes: 17 additions & 18 deletions src/libcollections/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,40 @@ use std::rand;
use std::rand::Rng;
use test::{Bencher, black_box};

pub fn insert_rand_n<M, I, R>(n: uint,
pub fn insert_rand_n<M, I, R>(n: usize,
map: &mut M,
b: &mut Bencher,
mut insert: I,
mut remove: R) where
I: FnMut(&mut M, uint),
R: FnMut(&mut M, uint),
I: FnMut(&mut M, usize),
R: FnMut(&mut M, usize),
{
// setup
let mut rng = rand::weak_rng();

for _ in 0..n {
insert(map, rng.gen::<uint>() % n);
insert(map, rng.gen::<usize>() % n);
}

// measure
b.iter(|| {
let k = rng.gen::<uint>() % n;
let k = rng.gen::<usize>() % n;
insert(map, k);
remove(map, k);
});
black_box(map);
}

pub fn insert_seq_n<M, I, R>(n: uint,
pub fn insert_seq_n<M, I, R>(n: usize,
map: &mut M,
b: &mut Bencher,
mut insert: I,
mut remove: R) where
I: FnMut(&mut M, uint),
R: FnMut(&mut M, uint),
I: FnMut(&mut M, usize),
R: FnMut(&mut M, usize),
{
// setup
for i in 0u..n {
for i in 0..n {
insert(map, i * 2);
}

Expand All @@ -60,18 +60,17 @@ pub fn insert_seq_n<M, I, R>(n: uint,
black_box(map);
}

pub fn find_rand_n<M, T, I, F>(n: uint,
pub fn find_rand_n<M, T, I, F>(n: usize,
map: &mut M,
b: &mut Bencher,
mut insert: I,
mut find: F) where
I: FnMut(&mut M, uint),
F: FnMut(&M, uint) -> T,
I: FnMut(&mut M, usize),
F: FnMut(&M, usize) -> T,
{
// setup
let mut rng = rand::weak_rng();
let mut keys = (0..n).map(|_| rng.gen::<uint>() % n)
.collect::<Vec<_>>();
let mut keys: Vec<_> = (0..n).map(|_| rng.gen::<usize>() % n).collect();

for k in &keys {
insert(map, *k);
Expand All @@ -88,16 +87,16 @@ pub fn find_rand_n<M, T, I, F>(n: uint,
})
}

pub fn find_seq_n<M, T, I, F>(n: uint,
pub fn find_seq_n<M, T, I, F>(n: usize,
map: &mut M,
b: &mut Bencher,
mut insert: I,
mut find: F) where
I: FnMut(&mut M, uint),
F: FnMut(&M, uint) -> T,
I: FnMut(&mut M, usize),
F: FnMut(&M, usize) -> T,
{
// setup
for i in 0u..n {
for i in 0..n {
insert(map, i);
}

Expand Down
Loading