Skip to content

Commit 8f284de

Browse files
committed
use backticks instead of single quotes when reporting "use of unstable library feature feature"
This is consistent with all other diagnostics I could find containing features and enables the use of `DiagSymbolList` for generalizing diagnostics for unstable library features to multiple features.
1 parent 35fd749 commit 8f284de

File tree

116 files changed

+443
-443
lines changed

Some content is hidden

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

116 files changed

+443
-443
lines changed

compiler/rustc_error_codes/src/error_codes/E0658.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ An unstable feature was used.
33
Erroneous code example:
44

55
```compile_fail,E0658
6-
#[repr(u128)] // error: use of unstable library feature 'repr128'
6+
#[repr(u128)] // error: use of unstable library feature `repr128`
77
enum Foo {
88
Bar(u64),
99
}

compiler/rustc_hir_analysis/messages.ftl

+2-2
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ hir_analysis_missing_trait_item_suggestion = implement the missing item: `{$snip
309309
310310
hir_analysis_missing_trait_item_unstable = not all trait items implemented, missing: `{$missing_item_name}`
311311
.note = default implementation of `{$missing_item_name}` is unstable
312-
.some_note = use of unstable library feature '{$feature}': {$reason}
313-
.none_note = use of unstable library feature '{$feature}'
312+
.some_note = use of unstable library feature `{$feature}`: {$reason}
313+
.none_note = use of unstable library feature `{$feature}`
314314
315315
hir_analysis_missing_type_params =
316316
the type {$parameterCount ->

compiler/rustc_middle/src/middle/stability.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ pub fn report_unstable(
114114
let attr::Unstability { feature, reason, issue, .. } = denial.unstability;
115115

116116
let msg = match reason.to_opt_reason() {
117-
Some(r) => format!("use of unstable library feature '{feature}': {r}"),
118-
None => format!("use of unstable library feature '{feature}'"),
117+
Some(r) => format!("use of unstable library feature `{feature}`: {r}"),
118+
None => format!("use of unstable library feature `{feature}`"),
119119
};
120120

121121
if is_soft {

tests/ui-fulldeps/hash-stable-is-unstable.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
//@ compile-flags: -Zdeduplicate-diagnostics=yes
22
extern crate rustc_data_structures;
3-
//~^ use of unstable library feature 'rustc_private'
3+
//~^ use of unstable library feature `rustc_private`
44
//~| NOTE: issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
55
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
66
extern crate rustc_macros;
7-
//~^ use of unstable library feature 'rustc_private'
7+
//~^ use of unstable library feature `rustc_private`
88
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
99
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1010
extern crate rustc_query_system;
11-
//~^ use of unstable library feature 'rustc_private'
11+
//~^ use of unstable library feature `rustc_private`
1212
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
1313
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1414

1515
use rustc_macros::HashStable;
16-
//~^ use of unstable library feature 'rustc_private'
16+
//~^ use of unstable library feature `rustc_private`
1717
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
1818
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1919

2020
#[derive(HashStable)]
21-
//~^ use of unstable library feature 'rustc_private'
21+
//~^ use of unstable library feature `rustc_private`
2222
//~| NOTE: in this expansion of #[derive(HashStable)]
2323
//~| NOTE: in this expansion of #[derive(HashStable)]
2424
//~| NOTE: in this expansion of #[derive(HashStable)]

tests/ui-fulldeps/hash-stable-is-unstable.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
1+
error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
22
--> $DIR/hash-stable-is-unstable.rs:2:1
33
|
44
LL | extern crate rustc_data_structures;
@@ -8,7 +8,7 @@ LL | extern crate rustc_data_structures;
88
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
99
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1010

11-
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
11+
error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
1212
--> $DIR/hash-stable-is-unstable.rs:6:1
1313
|
1414
LL | extern crate rustc_macros;
@@ -18,7 +18,7 @@ LL | extern crate rustc_macros;
1818
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
1919
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2020

21-
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
21+
error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
2222
--> $DIR/hash-stable-is-unstable.rs:10:1
2323
|
2424
LL | extern crate rustc_query_system;
@@ -28,7 +28,7 @@ LL | extern crate rustc_query_system;
2828
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
2929
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
3030

31-
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
31+
error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
3232
--> $DIR/hash-stable-is-unstable.rs:15:5
3333
|
3434
LL | use rustc_macros::HashStable;
@@ -38,7 +38,7 @@ LL | use rustc_macros::HashStable;
3838
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
3939
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
4040

41-
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
41+
error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
4242
--> $DIR/hash-stable-is-unstable.rs:20:10
4343
|
4444
LL | #[derive(HashStable)]

tests/ui-fulldeps/pathless-extern-unstable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
// Test that `--extern rustc_middle` fails with `rustc_private`.
55

66
pub use rustc_middle;
7-
//~^ ERROR use of unstable library feature 'rustc_private'
7+
//~^ ERROR use of unstable library feature `rustc_private`
88

99
fn main() {}

tests/ui-fulldeps/pathless-extern-unstable.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
1+
error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
22
--> $DIR/pathless-extern-unstable.rs:6:9
33
|
44
LL | pub use rustc_middle;

tests/ui/associated-inherent-types/assoc-inherent-unstable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
#![feature(inherent_associated_types)]
55
#![allow(incomplete_features)]
66

7-
type Data = aux::Owner::Data; //~ ERROR use of unstable library feature 'data'
7+
type Data = aux::Owner::Data; //~ ERROR use of unstable library feature `data`
88

99
fn main() {}

tests/ui/associated-inherent-types/assoc-inherent-unstable.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: use of unstable library feature 'data'
1+
error[E0658]: use of unstable library feature `data`
22
--> $DIR/assoc-inherent-unstable.rs:7:13
33
|
44
LL | type Data = aux::Owner::Data;

tests/ui/async-await/async-fn/edition-2015.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ fn foo(x: impl async Fn()) -> impl async Fn() { x }
33
//~| ERROR `async` trait bounds are only allowed in Rust 2018 or later
44
//~| ERROR async closures are unstable
55
//~| ERROR async closures are unstable
6-
//~| ERROR use of unstable library feature 'async_closure'
7-
//~| ERROR use of unstable library feature 'async_closure'
6+
//~| ERROR use of unstable library feature `async_closure`
7+
//~| ERROR use of unstable library feature `async_closure`
88

99
fn main() {}

tests/ui/async-await/async-fn/edition-2015.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ LL | fn foo(x: impl async Fn()) -> impl async Fn() { x }
3838
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
3939
= help: to use an async block, remove the `||`: `async {`
4040

41-
error[E0658]: use of unstable library feature 'async_closure'
41+
error[E0658]: use of unstable library feature `async_closure`
4242
--> $DIR/edition-2015.rs:1:42
4343
|
4444
LL | fn foo(x: impl async Fn()) -> impl async Fn() { x }
@@ -48,7 +48,7 @@ LL | fn foo(x: impl async Fn()) -> impl async Fn() { x }
4848
= help: add `#![feature(async_closure)]` to the crate attributes to enable
4949
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
5050

51-
error[E0658]: use of unstable library feature 'async_closure'
51+
error[E0658]: use of unstable library feature `async_closure`
5252
--> $DIR/edition-2015.rs:1:22
5353
|
5454
LL | fn foo(x: impl async Fn()) -> impl async Fn() { x }

tests/ui/box/alloc-unstable-fail.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ use std::boxed::Box;
22

33
fn main() {
44
let _boxed: Box<u32, _> = Box::new(10);
5-
//~^ ERROR use of unstable library feature 'allocator_api'
5+
//~^ ERROR use of unstable library feature `allocator_api`
66
}

tests/ui/box/alloc-unstable-fail.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: use of unstable library feature 'allocator_api'
1+
error[E0658]: use of unstable library feature `allocator_api`
22
--> $DIR/alloc-unstable-fail.rs:4:26
33
|
44
LL | let _boxed: Box<u32, _> = Box::new(10);
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#[cfg_accessible(std)] //~ ERROR use of unstable library feature 'cfg_accessible'
1+
#[cfg_accessible(std)] //~ ERROR use of unstable library feature `cfg_accessible`
22
fn main() {}

tests/ui/conditional-compilation/cfg_accessible-unstable.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: use of unstable library feature 'cfg_accessible': `cfg_accessible` is not fully implemented
1+
error[E0658]: use of unstable library feature `cfg_accessible`: `cfg_accessible` is not fully implemented
22
--> $DIR/cfg_accessible-unstable.rs:1:3
33
|
44
LL | #[cfg_accessible(std)]

tests/ui/consts/unstable-const-stable.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: use of unstable library feature 'unstable'
1+
error[E0658]: use of unstable library feature `unstable`
22
--> $DIR/unstable-const-stable.rs:7:5
33
|
44
LL | some_unstable_fn();
@@ -8,7 +8,7 @@ LL | some_unstable_fn();
88
= help: add `#![feature(unstable)]` to the crate attributes to enable
99
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1010

11-
error[E0658]: use of unstable library feature 'unstable'
11+
error[E0658]: use of unstable library feature `unstable`
1212
--> $DIR/unstable-const-stable.rs:8:14
1313
|
1414
LL | unsafe { write_bytes(4 as *mut u8, 0, 0) };
@@ -18,7 +18,7 @@ LL | unsafe { write_bytes(4 as *mut u8, 0, 0) };
1818
= help: add `#![feature(unstable)]` to the crate attributes to enable
1919
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2020

21-
error[E0658]: use of unstable library feature 'unstable'
21+
error[E0658]: use of unstable library feature `unstable`
2222
--> $DIR/unstable-const-stable.rs:12:5
2323
|
2424
LL | some_unstable_fn();
@@ -28,7 +28,7 @@ LL | some_unstable_fn();
2828
= help: add `#![feature(unstable)]` to the crate attributes to enable
2929
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
3030

31-
error[E0658]: use of unstable library feature 'unstable'
31+
error[E0658]: use of unstable library feature `unstable`
3232
--> $DIR/unstable-const-stable.rs:13:14
3333
|
3434
LL | unsafe { write_bytes(4 as *mut u8, 0, 0) };

tests/ui/derives/rustc-decodable-issue-123156.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Future incompatibility report: Future breakage diagnostic:
2-
warning: use of unstable library feature 'rustc_encodable_decodable': derive macro for `rustc-serialize`; should not be used in new code
2+
warning: use of unstable library feature `rustc_encodable_decodable`: derive macro for `rustc-serialize`; should not be used in new code
33
--> $DIR/rustc-decodable-issue-123156.rs:10:10
44
|
55
LL | #[derive(RustcDecodable)]

tests/ui/explore-issue-38412.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn main() {
1818

1919
let Record { a_stable_pub: _, a_unstable_declared_pub: _, a_unstable_undeclared_pub: _, .. } =
2020
Record::new();
21-
//~^^ ERROR use of unstable library feature 'unstable_undeclared'
21+
//~^^ ERROR use of unstable library feature `unstable_undeclared`
2222

2323
let r = Record::new();
2424
let t = Tuple::new();

tests/ui/explore-issue-38412.stderr

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: use of unstable library feature 'unstable_undeclared'
1+
error[E0658]: use of unstable library feature `unstable_undeclared`
22
--> $DIR/explore-issue-38412.rs:19:63
33
|
44
LL | let Record { a_stable_pub: _, a_unstable_declared_pub: _, a_unstable_undeclared_pub: _, .. } =
@@ -8,7 +8,7 @@ LL | let Record { a_stable_pub: _, a_unstable_declared_pub: _, a_unstable_un
88
= help: add `#![feature(unstable_undeclared)]` to the crate attributes to enable
99
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1010

11-
error[E0658]: use of unstable library feature 'unstable_undeclared'
11+
error[E0658]: use of unstable library feature `unstable_undeclared`
1212
--> $DIR/explore-issue-38412.rs:28:5
1313
|
1414
LL | r.a_unstable_undeclared_pub;
@@ -36,7 +36,7 @@ error[E0616]: field `d_priv` of struct `Record` is private
3636
LL | r.d_priv;
3737
| ^^^^^^ private field
3838

39-
error[E0658]: use of unstable library feature 'unstable_undeclared'
39+
error[E0658]: use of unstable library feature `unstable_undeclared`
4040
--> $DIR/explore-issue-38412.rs:35:5
4141
|
4242
LL | t.2;
@@ -64,7 +64,7 @@ error[E0616]: field `5` of struct `pub_and_stability::Tuple` is private
6464
LL | t.5;
6565
| ^ private field
6666

67-
error[E0658]: use of unstable library feature 'unstable_undeclared'
67+
error[E0658]: use of unstable library feature `unstable_undeclared`
6868
--> $DIR/explore-issue-38412.rs:42:7
6969
|
7070
LL | r.unstable_undeclared_trait_method();
@@ -74,7 +74,7 @@ LL | r.unstable_undeclared_trait_method();
7474
= help: add `#![feature(unstable_undeclared)]` to the crate attributes to enable
7575
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
7676

77-
error[E0658]: use of unstable library feature 'unstable_undeclared'
77+
error[E0658]: use of unstable library feature `unstable_undeclared`
7878
--> $DIR/explore-issue-38412.rs:46:7
7979
|
8080
LL | r.unstable_undeclared();
@@ -117,7 +117,7 @@ LL | r.private();
117117
LL | fn private(&self) -> i32 { self.d_priv }
118118
| ------------------------ private method defined here
119119

120-
error[E0658]: use of unstable library feature 'unstable_undeclared'
120+
error[E0658]: use of unstable library feature `unstable_undeclared`
121121
--> $DIR/explore-issue-38412.rs:55:7
122122
|
123123
LL | t.unstable_undeclared_trait_method();
@@ -127,7 +127,7 @@ LL | t.unstable_undeclared_trait_method();
127127
= help: add `#![feature(unstable_undeclared)]` to the crate attributes to enable
128128
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
129129

130-
error[E0658]: use of unstable library feature 'unstable_undeclared'
130+
error[E0658]: use of unstable library feature `unstable_undeclared`
131131
--> $DIR/explore-issue-38412.rs:59:7
132132
|
133133
LL | t.unstable_undeclared();

tests/ui/feature-gates/bench.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//@ edition:2018
22

3-
#[bench] //~ ERROR use of unstable library feature 'test'
3+
#[bench] //~ ERROR use of unstable library feature `test`
44
//~| WARN this was previously accepted
55
fn bench() {}
66

7-
use bench as _; //~ ERROR use of unstable library feature 'test'
7+
use bench as _; //~ ERROR use of unstable library feature `test`
88
//~| WARN this was previously accepted
99
fn main() {}

tests/ui/feature-gates/bench.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable
1+
error: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable
22
--> $DIR/bench.rs:3:3
33
|
44
LL | #[bench]
@@ -8,7 +8,7 @@ LL | #[bench]
88
= note: for more information, see issue #64266 <https://github.com/rust-lang/rust/issues/64266>
99
= note: `#[deny(soft_unstable)]` on by default
1010

11-
error: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable
11+
error: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable
1212
--> $DIR/bench.rs:7:5
1313
|
1414
LL | use bench as _;
@@ -20,7 +20,7 @@ LL | use bench as _;
2020
error: aborting due to 2 previous errors
2121

2222
Future incompatibility report: Future breakage diagnostic:
23-
error: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable
23+
error: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable
2424
--> $DIR/bench.rs:3:3
2525
|
2626
LL | #[bench]
@@ -31,7 +31,7 @@ LL | #[bench]
3131
= note: `#[deny(soft_unstable)]` on by default
3232

3333
Future breakage diagnostic:
34-
error: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable
34+
error: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable
3535
--> $DIR/bench.rs:7:5
3636
|
3737
LL | use bench as _;

tests/ui/feature-gates/feature-gate-alloc-error-handler.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use core::alloc::Layout;
77

8-
#[alloc_error_handler] //~ ERROR use of unstable library feature 'alloc_error_handler'
8+
#[alloc_error_handler] //~ ERROR use of unstable library feature `alloc_error_handler`
99
fn oom(info: Layout) -> ! {
1010
loop {}
1111
}

tests/ui/feature-gates/feature-gate-alloc-error-handler.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: use of unstable library feature 'alloc_error_handler'
1+
error[E0658]: use of unstable library feature `alloc_error_handler`
22
--> $DIR/feature-gate-alloc-error-handler.rs:8:3
33
|
44
LL | #[alloc_error_handler]

tests/ui/feature-gates/feature-gate-autodiff-use.has_support.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: use of unstable library feature 'autodiff'
1+
error[E0658]: use of unstable library feature `autodiff`
22
--> $DIR/feature-gate-autodiff-use.rs:13:3
33
|
44
LL | #[autodiff(dfoo, Reverse)]
@@ -8,7 +8,7 @@ LL | #[autodiff(dfoo, Reverse)]
88
= help: add `#![feature(autodiff)]` to the crate attributes to enable
99
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1010

11-
error[E0658]: use of unstable library feature 'autodiff'
11+
error[E0658]: use of unstable library feature `autodiff`
1212
--> $DIR/feature-gate-autodiff-use.rs:9:5
1313
|
1414
LL | use std::autodiff::autodiff;

tests/ui/feature-gates/feature-gate-autodiff-use.no_support.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: use of unstable library feature 'autodiff'
1+
error[E0658]: use of unstable library feature `autodiff`
22
--> $DIR/feature-gate-autodiff-use.rs:13:3
33
|
44
LL | #[autodiff(dfoo, Reverse)]
@@ -14,7 +14,7 @@ error: this rustc version does not support autodiff
1414
LL | #[autodiff(dfoo, Reverse)]
1515
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
1616

17-
error[E0658]: use of unstable library feature 'autodiff'
17+
error[E0658]: use of unstable library feature `autodiff`
1818
--> $DIR/feature-gate-autodiff-use.rs:9:5
1919
|
2020
LL | use std::autodiff::autodiff;

tests/ui/feature-gates/feature-gate-autodiff-use.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
#![crate_type = "lib"]
88

99
use std::autodiff::autodiff;
10-
//[has_support]~^ ERROR use of unstable library feature 'autodiff'
11-
//[no_support]~^^ ERROR use of unstable library feature 'autodiff'
10+
//[has_support]~^ ERROR use of unstable library feature `autodiff`
11+
//[no_support]~^^ ERROR use of unstable library feature `autodiff`
1212

1313
#[autodiff(dfoo, Reverse)]
14-
//[has_support]~^ ERROR use of unstable library feature 'autodiff' [E0658]
15-
//[no_support]~^^ ERROR use of unstable library feature 'autodiff' [E0658]
14+
//[has_support]~^ ERROR use of unstable library feature `autodiff` [E0658]
15+
//[no_support]~^^ ERROR use of unstable library feature `autodiff` [E0658]
1616
//[no_support]~| ERROR this rustc version does not support autodiff
1717
fn foo() {}

0 commit comments

Comments
 (0)