Skip to content

Commit 3381009

Browse files
Samy KacimiAlexander Regueiro
authored andcommitted
add space either side of / in unchecked_dirty_clean.rs test
1 parent e3da30e commit 3381009

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/librustc_incremental/persist/dirty_clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ impl FindAllAttrs<'tcx> {
610610
for attr in &self.found_attrs {
611611
if !checked_attrs.contains(&attr.id) {
612612
self.tcx.sess.span_err(attr.span, &format!("found unchecked \
613-
#[rustc_dirty]/#[rustc_clean] attribute"));
613+
`#[rustc_dirty]` / `#[rustc_clean]` attribute"));
614614
}
615615
}
616616
}

src/test/incremental/unchecked_dirty_clean.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@
1111
fn main() {
1212

1313
#[rustc_dirty(label="Hir", cfg="cfail2")]
14-
//[cfail2]~^ ERROR found unchecked `#[rustc_dirty]`/`#[rustc_clean]` attribute
14+
//[cfail2]~^ ERROR found unchecked `#[rustc_dirty]` / `#[rustc_clean]` attribute
1515
{
1616
// empty block
1717
}
1818

1919
#[rustc_clean(label="Hir", cfg="cfail2")]
20-
//[cfail2]~^ ERROR found unchecked `#[rustc_dirty]`/`#[rustc_clean]` attribute
20+
//[cfail2]~^ ERROR found unchecked `#[rustc_dirty]` / `#[rustc_clean]` attribute
2121
{
2222
// empty block
2323
}
2424
}
2525

2626
struct _Struct {
2727
#[rustc_dirty(label="Hir", cfg="cfail2")]
28-
//[cfail2]~^ ERROR found unchecked `#[rustc_dirty]`/`#[rustc_clean]` attribute
28+
//[cfail2]~^ ERROR found unchecked `#[rustc_dirty]` / `#[rustc_clean]` attribute
2929
_field1: i32,
3030

3131
#[rustc_clean(label="Hir", cfg="cfail2")]
32-
//[cfail2]~^ ERROR found unchecked `#[rustc_dirty]`/`#[rustc_clean]` attribute
32+
//[cfail2]~^ ERROR found unchecked `#[rustc_dirty]` / `#[rustc_clean]` attribute
3333
_field2: i32,
3434
}

0 commit comments

Comments
 (0)