Skip to content

Commit e3da30e

Browse files
Samy KacimiAlexander Regueiro
authored andcommitted
update tests following backticks modification of compiler messages
1 parent 07762a1 commit e3da30e

File tree

418 files changed

+1024
-1024
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

418 files changed

+1024
-1024
lines changed

src/doc/rustc-guide

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
}

src/test/run-pass-fulldeps/auxiliary/lint-for-crate.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ macro_rules! fake_lint_pass {
4141
}
4242
}
4343

44-
declare_lint!(CRATE_NOT_OKAY, Warn, "crate not marked with #![crate_okay]");
45-
declare_lint!(CRATE_NOT_RED, Warn, "crate not marked with #![crate_red]");
46-
declare_lint!(CRATE_NOT_BLUE, Warn, "crate not marked with #![crate_blue]");
47-
declare_lint!(CRATE_NOT_GREY, Warn, "crate not marked with #![crate_grey]");
48-
declare_lint!(CRATE_NOT_GREEN, Warn, "crate not marked with #![crate_green]");
44+
declare_lint!(CRATE_NOT_OKAY, Warn, "crate not marked with `#![crate_okay]`");
45+
declare_lint!(CRATE_NOT_RED, Warn, "crate not marked with `#![crate_red]`");
46+
declare_lint!(CRATE_NOT_BLUE, Warn, "crate not marked with `#![crate_blue]`");
47+
declare_lint!(CRATE_NOT_GREY, Warn, "crate not marked with `#![crate_grey]`");
48+
declare_lint!(CRATE_NOT_GREEN, Warn, "crate not marked with `#![crate_green]`");
4949

5050
fake_lint_pass! {
5151
PassOkay,

src/test/run-pass/extern/extern-prelude-core.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ warning: the feature `extern_prelude` has been stable since 1.30.0 and no longer
44
LL | #![feature(extern_prelude, lang_items, start)]
55
| ^^^^^^^^^^^^^^
66
|
7-
= note: #[warn(stable_features)] on by default
7+
= note: `#[warn(stable_features)]` on by default
88

src/test/run-pass/extern/extern-prelude-std.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ warning: the feature `extern_prelude` has been stable since 1.30.0 and no longer
44
LL | #![feature(extern_prelude)]
55
| ^^^^^^^^^^^^^^
66
|
7-
= note: #[warn(stable_features)] on by default
7+
= note: `#[warn(stable_features)]` on by default
88

src/test/run-pass/if-ret.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ warning: unreachable block in `if` expression
44
LL | fn foo() { if (return) { } }
55
| ^^^
66
|
7-
= note: #[warn(unreachable_code)] on by default
7+
= note: `#[warn(unreachable_code)]` on by default
88

src/test/run-pass/macros/macro-use-all-and-none.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ warning: unused attribute
44
LL | #[macro_use()]
55
| ^^^^^^^^^^^^^^
66
|
7-
= note: #[warn(unused_attributes)] on by default
7+
= note: `#[warn(unused_attributes)]` on by default
88

src/test/run-pass/rfcs/rfc-2126-crate-paths/crate-path-absolute.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ warning: the feature `crate_in_paths` has been stable since 1.30.0 and no longer
44
LL | #![feature(crate_in_paths)]
55
| ^^^^^^^^^^^^^^
66
|
7-
= note: #[warn(stable_features)] on by default
7+
= note: `#[warn(stable_features)]` on by default
88

src/test/run-pass/rfcs/rfc-2126-crate-paths/crate-path-visibility-ambiguity.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ warning: the feature `crate_in_paths` has been stable since 1.30.0 and no longer
44
LL | #![feature(crate_in_paths)]
55
| ^^^^^^^^^^^^^^
66
|
7-
= note: #[warn(stable_features)] on by default
7+
= note: `#[warn(stable_features)]` on by default
88

src/test/ui-fulldeps/auxiliary/lint-for-crate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use syntax::symbol::Symbol;
1616
declare_lint! {
1717
CRATE_NOT_OKAY,
1818
Warn,
19-
"crate not marked with #![crate_okay]"
19+
"crate not marked with `#![crate_okay]`"
2020
}
2121

2222
declare_lint_pass!(Pass => [CRATE_NOT_OKAY]);
@@ -25,7 +25,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
2525
fn check_crate(&mut self, cx: &LateContext, krate: &hir::Crate) {
2626
if !attr::contains_name(&krate.attrs, Symbol::intern("crate_okay")) {
2727
cx.span_lint(CRATE_NOT_OKAY, krate.span,
28-
"crate is not marked with #![crate_okay]");
28+
"crate is not marked with `#![crate_okay]`");
2929
}
3030
}
3131
}

0 commit comments

Comments
 (0)