Skip to content

Commit 98f02b2

Browse files
committedOct 5, 2019
Pacify tidy
1 parent a0cf531 commit 98f02b2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
 

‎src/librustc/ty/query/config.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ impl<'tcx, M: QueryAccessors<'tcx, Key = DefId>> QueryDescription<'tcx> for M {
7878
false
7979
}
8080

81-
default fn try_load_from_disk(_: TyCtxt<'tcx>, _: SerializedDepNodeIndex) -> Option<Self::Value> {
81+
default fn try_load_from_disk(
82+
_: TyCtxt<'tcx>,
83+
_: SerializedDepNodeIndex,
84+
) -> Option<Self::Value> {
8285
bug!("QueryDescription::load_from_disk() called for an unsupported query.")
8386
}
8487
}

‎src/test/ui/specialization/specialization-default-methods-fail.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl Foo for Box<i32> {}
2525
// Can't override a non-`default` fn
2626
impl Foo for Box<i64> {
2727
fn foo(&self) -> bool { true }
28-
//~^ error: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
28+
//~^ error: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
2929
}
3030

3131

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

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

4343
fn main() {}

0 commit comments

Comments
 (0)
Please sign in to comment.