Skip to content

Commit

Permalink
fix to bypass rust-lang#62696
Browse files Browse the repository at this point in the history
I think that PR is a problem (rust-lang#63145), but this makes the tests green for now.
  • Loading branch information
arielb1 committed Aug 3, 2019
1 parent 595c2e6 commit 4e437d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/librustc/traits/specialize/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ pub(super) fn specialization_graph_provider(
};

if let Some(overlap) = overlap {
debug!("found conflicting implementations {:?}", overlap);

let msg = format!("conflicting implementations of trait `{}`{}:{}",
overlap.trait_desc,
overlap.self_desc.clone().map_or(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

#![feature(rustc_attrs)]

trait MyTrait {}
pub trait MyTrait {}
#[rustc_reservation_impl="this impl is reserved"]
impl MyTrait for () {}

trait OtherTrait {}
pub trait OtherTrait {}
impl OtherTrait for () {}
impl<T: MyTrait> OtherTrait for T {}
//~^ ERROR conflicting implementations
Expand Down

0 comments on commit 4e437d6

Please sign in to comment.