8000 Rollup of 10 pull requests by Centril · Pull Request #64826 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Rollup of 10 pull requests #64826

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

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
c015927
Fix ICE in rustdoc when merging generic and where bounds in the case …
Nashenas88 Aug 27, 2019
09f6b44
Simplify some code in rustdoc's simplify
Nashenas88 Aug 27, 2019
143b83a
Add regression test for issue, apply suggestion to convert to assert_eq
Nashenas88 Aug 28, 2019
612ef5f
add new tests for re_rebalance_coherence
nikomatsakis Sep 12, 2019
e69d1b6
change to check-pass
nikomatsakis Sep 13, 2019
3f004a1
Fix re-rebalance coherence implementation for fundamental types
weiznich Sep 17, 2019
a9c38d9
Add more tests
weiznich Sep 18, 2019
31b3012
Split line to fix tidy
weiznich Sep 18, 2019
3ee2920
Fix some unused variable warnings
weiznich Sep 22, 2019
d2762ac
Differentiate AArch64 bare-metal targets between hf and non-hf.
andre-richter Sep 18, 2019
2666ae5
Remove whitespace from testname
weiznich Sep 23, 2019
9249a73
More path name fixes
weiznich Sep 24, 2019
5122091
Turn `walk_parent_nodes` method into an iterator
estebank Sep 26, 2019
0ec4513
Fix format macro expansions spans to be macro-generated
rinon Sep 25, 2019
dd38a0f
update rtpSpawn's parameters type(It's prototype has been updated in …
bpangWR Sep 26, 2019
ab86cec
Account for tail expressions when pointing at return type
estebank Sep 26, 2019
7f318f6
[const-prop] Replace `eval_place()` with use of `InterpCx`
wesleywiser Sep 4, 2019
1a78e66
[const-prop] Replace `Use` handling with use of `InterpCx`
wesleywiser Sep 6, 2019
570748d
[const-prop] Replace `Cast` handling with use of `InterpCx`
wesleywiser Sep 6, 2019
243f99e
[const-prop] Replace `NullaryOp` handling with use of `InterpCx`
wesleywiser Sep 6, 2019
0162021
[const-prop] Replace most `UnaryOp` handling with use of `InterpCx`
wesleywiser Sep 6, 2019
233925d
[const-prop] Replace `CheckedBinaryOp` handling with use of `InterpCx`
wesleywiser Sep 9, 2019
bf770f9
[const-prop] Replace some `Binaryp` handling with use of `InterpCx`
wesleywiser Sep 10, 2019
82f38c4
[const-prop] Replace `Ref` handling with use of `InterpCx`
wesleywiser Sep 11, 2019
0d09424
Don't run the ConstProp MIR pass on generators
wesleywiser Sep 13, 2019
0cf9c5b
Respond to code review feedback and fix tidy
wesleywiser Sep 13, 2019
59f2e13
Move Ref-from-arg checking from `step.rs` to `const_prop.rs`
wesleywiser Sep 14, 2019
c8336f3
Work around for #64506
wesleywiser Sep 17, 2019
9b4fae7
Introduce a `ConstPropMachine`
wesleywiser Sep 25, 2019
737fb99
Allow reading non-mutable statics in const prop
wesleywiser Sep 25, 2019
377a70d
Fix div_duration() marked as stable by mistake
JMS55 Sep 26, 2019
c81d359
Merge pull request #30 from Wind-River/update
n-salim Sep 26, 2019
e9aa0e7
Use existing Handler to print query stack
Aaron1011 Sep 26, 2019
97906bc
Add note about global state in try_print_query_stack
Aaron1011 Sep 26, 2019
fdeb4ca
review comments
estebank Sep 26, 2019
821ff46
Include message on tests that should panic
kungfukennyg Sep 24, 2019
65af1ff
Rollup merge of #63937 - Nashenas88:rustdoc_57180, r=GuillaumeGomez
Centril Sep 27, 2019
931b795
Rollup merge of #64419 - wesleywiser:const_prop_use_ecx, r=oli-obk
Centril Sep 27, 2019
0286ed0
Rollup merge of #64546 - weiznich:bugfix/rfc-2451-rerebalance-tests, …
Centril Sep 27, 2019
daa632b
Rollup merge of #64589 - andre-richter:aarch64_bare_metal, r=Amanieu
Centril Sep 27, 2019
9c1b008
Rollup merge of #64745 - kennethbgoodin:should-panic-msg, r=varkor
Centril Sep 27, 2019
b0bfef1
Rollup merge of #64793 - immunant:format_spans, r=matthewjasper
Centril Sep 27, 2019
19f99b8
Rollup merge of #64799 - Aaron1011:fix/double-panic, r=Mark-Simulacrum
Centril Sep 27, 2019
ea31935
Rollup merge of #64802 - estebank:walk-parents-iterator, r=matthewjasper
Centril Sep 27, 2019
c02e798
Rollup merge of #64815 - JMS55:patch-1, r=jonas-schievink
Centril Sep 27, 2019
51f7b2b
Rollup merge of #64818 - Wind-River:master, r=alexcrichton
Centril Sep 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
Prev Previous commit
Next Next commit
add new tests for re_rebalance_coherence
  • Loading branch information
nikomatsakis committed Sep 13, 2019
commit 612ef5f518198448c43959a6416b9da2964f9167
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#![feature(re_rebalance_coherence)]

// run-pass
// compile-flags:--crate-name=test
// aux-build:coherence_lib.rs

extern crate coherence_lib as lib;
use lib::*;
use std::rc::Rc;

struct Local;
impl<T> Remote2<Rc<T>, Local> for usize { }

fn main() {}
21 changes: 21 additions & 0 deletions src/test/ui/coherence/impl[t]-foreign[local]-for-fundamental[t].rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#![feature(re_rebalance_coherence)]

// compile-flags:--crate-name=test
// aux-build:coherence_lib.rs
// run-pass

extern crate coherence_lib as lib;
use lib::*;
use std::rc::Rc;

struct Local;

impl<T> Remote1<Local> for Box<T> {
// FIXME(#64412) -- this is expected to error
}

impl<T> Remote1<Local> for &T {
// FIXME(#64412) -- this is expected to error
}

fn main() {}
16 changes: 16 additions & 0 deletions src/test/ui/coherence/impl[t]-foreign[local]-for-t.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#![feature(re_rebalance_coherence)]

// compile-flags:--crate-name=test
// aux-build:coherence_lib.rs

extern crate coherence_lib as lib;
use lib::*;
use std::rc::Rc;

struct Local;

impl<T> Remote1<Local> for T {
//~^ ERROR type parameter `T` must be used as the type parameter for some local type
}

fn main() {}
11 changes: 11 additions & 0 deletions src/test/ui/coherence/impl[t]-foreign[local]-for-t.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
--> $DIR/impl[t]-foreign[local]-for-t.rs:12:1
|
LL | impl<T> Remote1<Local> for T {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` must be used as the type parameter for some local type
|
= note: only traits defined in the current crate can be implemented for a type parameter

error: aborting due to previous error

For more information about this error, try `rustc --explain E0210`.
14 changes: 0 additions & 14 deletions src/test/ui/coherence/re-rebalance-coherence-rpass.rs

This file was deleted.

0