Skip to content
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

Rollup of 14 pull requests #59461

Closed
wants to merge 51 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
36bcbc3
Add FromStr impl for NonZero types
hellow554 Feb 25, 2019
ce30d4e
replaced nonzeroparseerror with regular interror
hellow554 Feb 27, 2019
912ad68
fixed nonzero tests
hellow554 Feb 28, 2019
ad240ea
add feature flag to test
hellow554 Feb 28, 2019
7330525
fixed tests again
hellow554 Feb 28, 2019
8740d5d
Add benchmarks for [u8]::make_ascii_uppercase
SimonSapin Mar 18, 2019
ce933f7
Make u8::to_ascii_lowercase and to_ascii_uppercase branchless
SimonSapin Mar 18, 2019
fbe34cc
Add benchmark for not-quite-correct “fake SIMD” make_ascii_uppercase
SimonSapin Mar 18, 2019
e3fb6f8
Tidy
SimonSapin Mar 18, 2019
525a043
Rename src/libcore/benches/ascii_case.rs to ascii.rs
SimonSapin Mar 18, 2019
6d3840b
Add benchmarks for `u8::is_ascii*`
SimonSapin Mar 18, 2019
b4faa9b
Remove ASCII_CHARACTER_CLASS table, use `match` with range patterns i…
SimonSapin Mar 18, 2019
4a3241a
Benchmark more possibles impls of [u8]::make_ascii_uppercase
SimonSapin Mar 18, 2019
0ad91f7
Simplify u8::to_ascii_{upp,low}ercase while keeping it fast
SimonSapin Mar 18, 2019
c1ec29a
ASCII uppercase: add "subtract shifted bool" benchmark
SimonSapin Mar 19, 2019
7fad370
ASCII uppercase: add "subtract multiplied bool" benchmark
SimonSapin Mar 19, 2019
b34a71b
add suggestions to trim_{left,right} deprecations
euclio Mar 22, 2019
ac3290e
Add suggestion to use `&*var` when `&str: From<String>` is expected
estebank Mar 18, 2019
2f7b320
extend on-unimplemented docs
estebank Mar 18, 2019
e929d19
review comments
estebank Mar 23, 2019
4b38294
syntax: Remove warning for unnecessary path disambiguators
petrochenkov Jan 13, 2019
7e156c2
Make some lints incremental
Zoxc Jun 11, 2018
32bc4a5
Make more lints incremental
Zoxc Mar 3, 2019
00d8fa3
Update tests
Zoxc Mar 13, 2019
4bad56e
When moving out of a for loop head, suggest borrowing it in nll mode
estebank Mar 26, 2019
630d5a4
renames EvalContext to InterpretCx.
kenta7777 Mar 26, 2019
0e0383a
adjust MaybeUninit API to discussions
RalfJung Mar 18, 2019
853ae8d
fix some uses I missed
RalfJung Mar 19, 2019
6ea6e62
Update jemalloc-sys to version 0.3.0
gnzlbg Mar 26, 2019
b73886d
Update Cargo.lock
gnzlbg Mar 26, 2019
4093bec
Exclude UnusedBrokenConst from module lints
Zoxc Mar 26, 2019
24a0cae
librustc_driver => 2018
taiki-e Mar 26, 2019
8733b2a
Add `Default` to `std::alloc::System`
TimDiekmann Mar 26, 2019
892f7c4
renames EvalContext to InterpretCx in docs and comments.
kenta7777 Mar 27, 2019
14f3f6c
librustc_interface => 2018
Centril Mar 26, 2019
bf1068b
librustc_interface => 2018; rename rustc-rayon to rayon in Cargo.toml
Centril Mar 27, 2019
2368aa8
Add some tests
JohnTitor Mar 27, 2019
4c76175
Rollup merge of #57293 - Zoxc:incr-passes3, r=michaelwoerister
Centril Mar 27, 2019
a489ec6
Rollup merge of #57565 - petrochenkov:turbowarn, r=Centril
Centril Mar 27, 2019
290146c
Rollup merge of #58253 - taiki-e:librustc_driver-2018, r=petrochenkov
Centril Mar 27, 2019
7070d87
Rollup merge of #58717 - hellow554:nonzero_parse, r=Amanieu
Centril Mar 27, 2019
692760d
Rollup merge of #58837 - Centril:librustc_interface_2018, r=petrochenkov
Centril Mar 27, 2019
dfce933
Rollup merge of #59268 - estebank:from-string, r=QuietMisdreavus
Centril Mar 27, 2019
2ccc054
Rollup merge of #59283 - SimonSapin:branchless-ascii-case, r=joshtrip…
Centril Mar 27, 2019
0052b80
Rollup merge of #59284 - RalfJung:maybe-uninit, r=sfackler
Centril Mar 27, 2019
58bda0c
Rollup merge of #59372 - euclio:rename-trim, r=rkruppe
Centril Mar 27, 2019
61a8293
Rollup merge of #59429 - estebank:for-loop-move-nll, r=petrochenkov
Centril Mar 27, 2019
0ea791e
Rollup merge of #59430 - kenta7777:rename-evalcontext-to-interpretcx,…
Centril Mar 27, 2019
c22ed88
Rollup merge of #59436 - gnzlbg:update_jemalloc, r=alexcrichton
Centril Mar 27, 2019
a077493
Rollup merge of #59451 - TimDiekmann:patch-1, r=sfackler
Centril Mar 27, 2019
1d5a6b6
Rollup merge of #59459 - JohnTitor:add-tests, r=Centril
Centril Mar 27, 2019
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
12 changes: 6 additions & 6 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "jemalloc-sys"
version = "0.1.8"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"cc 1.0.28 (registry+https://github.com/rust-lang/crates.io-index)",
Expand Down Expand Up @@ -2066,7 +2066,7 @@ name = "rand_chacha"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"rand_core 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_core 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
]

Expand All @@ -2088,7 +2088,7 @@ name = "rand_hc"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"rand_core 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_core 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
]

[[package]]
Expand All @@ -2113,7 +2113,7 @@ name = "rand_xorshift"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"rand_core 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_core 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
]

[[package]]
Expand Down Expand Up @@ -2492,7 +2492,7 @@ dependencies = [
name = "rustc-main"
version = "0.0.0"
dependencies = [
"jemalloc-sys 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
"jemalloc-sys 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc_codegen_ssa 0.0.0",
"rustc_driver 0.0.0",
"rustc_target 0.0.0",
Expand Down Expand Up @@ -4087,7 +4087,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum itertools 0.7.8 (registry+https://github.com/rust-lang/crates.io-index)" = "f58856976b776fedd95533137617a02fb25719f40e7d9b01c7043cd65474f450"
"checksum itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5b8467d9c1cebe26feb08c640139247fac215782d35371ade9a2136ed6085358"
"checksum itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1306f3464951f30e30d12373d31c79fbd52d236e5e896fd92f96ec7babbbe60b"
"checksum jemalloc-sys 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "bfc62c8e50e381768ce8ee0428ee53741929f7ebd73e4d83f669bcf7693e00ae"
"checksum jemalloc-sys 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7bef0d4ce37578dfd80b466e3d8324bd9de788e249f1accebb0c472ea4b52bdc"
"checksum jobserver 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "dd80e58f77e0cdea53ba96acc5e04479e5ffc5d869626a6beafe50fed867eace"
"checksum json 0.11.13 (registry+https://github.com/rust-lang/crates.io-index)" = "9ad0485404155f45cce53a40d4b2d6ac356418300daed05273d9e26f91c390be"
"checksum jsonrpc-core 10.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7a5152c3fda235dfd68341b3edf4121bc4428642c93acbd6de88c26bf95fc5d7"
Expand Down
13 changes: 13 additions & 0 deletions src/doc/unstable-book/src/language-features/on-unimplemented.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,16 @@ error[E0277]: `&str` is not an iterator
= help: the trait `std::iter::Iterator` is not implemented for `&str`
= note: required by `std::iter::IntoIterator::into_iter`
```

If you need to filter on multiple attributes, you can use `all`, `any` or
`not` in the following way:

```rust,compile_fail
#[rustc_on_unimplemented(
on(
all(_Self="&str", T="std::string::String"),
note="you can coerce a `{T}` into a `{Self}` by writing `&*variable`"
)
)]
pub trait From<T>: Sized { /* ... */ }
```
10 changes: 5 additions & 5 deletions src/liballoc/collections/btree/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl<K, V> LeafNode<K, V> {
keys: uninitialized_array![_; CAPACITY],
vals: uninitialized_array![_; CAPACITY],
parent: ptr::null(),
parent_idx: MaybeUninit::uninitialized(),
parent_idx: MaybeUninit::uninit(),
len: 0
}
}
Expand All @@ -129,7 +129,7 @@ unsafe impl Sync for NodeHeader<(), ()> {}
// ever take a pointer past the first key.
static EMPTY_ROOT_NODE: NodeHeader<(), ()> = NodeHeader {
parent: ptr::null(),
parent_idx: MaybeUninit::uninitialized(),
parent_idx: MaybeUninit::uninit(),
len: 0,
keys_start: [],
};
Expand Down Expand Up @@ -261,7 +261,7 @@ impl<K, V> Root<K, V> {
-> NodeRef<marker::Mut<'_>, K, V, marker::Internal> {
debug_assert!(!self.is_shared_root());
let mut new_node = Box::new(unsafe { InternalNode::new() });
new_node.edges[0].set(unsafe { BoxedNode::from_ptr(self.node.as_ptr()) });
new_node.edges[0].write(unsafe { BoxedNode::from_ptr(self.node.as_ptr()) });

self.node = BoxedNode::from_internal(new_node);
self.height += 1;
Expand Down Expand Up @@ -737,7 +737,7 @@ impl<'a, K, V> NodeRef<marker::Mut<'a>, K, V, marker::Internal> {
unsafe {
ptr::write(self.keys_mut().get_unchecked_mut(idx), key);
ptr::write(self.vals_mut().get_unchecked_mut(idx), val);
self.as_internal_mut().edges.get_unchecked_mut(idx + 1).set(edge.node);
self.as_internal_mut().edges.get_unchecked_mut(idx + 1).write(edge.node);

(*self.as_leaf_mut()).len += 1;

Expand Down Expand Up @@ -1080,7 +1080,7 @@ impl<'a, K, V> Handle<NodeRef<marker::Mut<'a>, K, V, marker::Internal>, marker::
let mut child = self.descend();
unsafe {
(*child.as_leaf_mut()).parent = ptr;
(*child.as_leaf_mut()).parent_idx.set(idx);
(*child.as_leaf_mut()).parent_idx.write(idx);
}
}

Expand Down
Loading