Skip to content

Commit

Permalink
Pacify tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Oct 5, 2019
1 parent a0cf531 commit 98f02b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/librustc/ty/query/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ impl<'tcx, M: QueryAccessors<'tcx, Key = DefId>> QueryDescription<'tcx> for M {
false
}

default fn try_load_from_disk(_: TyCtxt<'tcx>, _: SerializedDepNodeIndex) -> Option<Self::Value> {
default fn try_load_from_disk(
_: TyCtxt<'tcx>,
_: SerializedDepNodeIndex,
) -> Option<Self::Value> {
bug!("QueryDescription::load_from_disk() called for an unsupported query.")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl Foo for Box<i32> {}
// Can't override a non-`default` fn
impl Foo for Box<i64> {
fn foo(&self) -> bool { true }
//~^ error: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
//~^ error: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
}


Expand All @@ -37,7 +37,7 @@ impl Foo for Vec<()> {}

impl Foo for Vec<bool> {
fn foo(&self) -> bool { true }
//~^ error: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
//~^ error: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
}

fn main() {}

0 comments on commit 98f02b2

Please sign in to comment.