Skip to content

Commit e9df821

Browse files
committed
spell "referring" correctly
1 parent f2b91cc commit e9df821

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Diff for: compiler/rustc_lint/messages.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ lint_unexpected_cfg_doc_cargo = see <https://doc.rust-lang.org/nightly/rustc/che
813813
lint_unexpected_cfg_doc_rustc = see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
814814
815815
lint_unexpected_cfg_from_external_macro_origin = using a cfg inside a {$macro_kind} will use the cfgs from the destination crate and not the ones from the defining crate
816-
lint_unexpected_cfg_from_external_macro_refer = try refering to `{$macro_name}` crate for guidance on how handle this unexpected cfg
816+
lint_unexpected_cfg_from_external_macro_refer = try referring to `{$macro_name}` crate for guidance on how handle this unexpected cfg
817817
lint_unexpected_cfg_name = unexpected `cfg` condition name: `{$name}`
818818
lint_unexpected_cfg_name_expected_names = expected names are: {$possibilities}{$and_more ->
819819
[0] {""}

Diff for: compiler/rustc_lint/src/unqualified_local_imports.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ declare_lint! {
3131
///
3232
/// This lint is meant to be used with the (unstable) rustfmt setting `group_imports = "StdExternalCrate"`.
3333
/// That setting makes rustfmt group `self::`, `super::`, and `crate::` imports separately from those
34-
/// refering to other crates. However, rustfmt cannot know whether `use c::S;` refers to a local module `c`
34+
/// referring to other crates. However, rustfmt cannot know whether `use c::S;` refers to a local module `c`
3535
/// or an external crate `c`, so it always gets categorized as an import from another crate.
3636
/// To ensure consistent grouping of imports from the local crate, all local imports must
3737
/// start with `self::`, `super::`, or `crate::`. This lint can be used to enforce that style.

Diff for: tests/ui/check-cfg/report-in-external-macros.cargo.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | cfg_macro::my_lib_macro!();
66
|
77
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
88
= note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate
9-
= help: try refering to `cfg_macro::my_lib_macro` crate for guidance on how handle this unexpected cfg
9+
= help: try referring to `cfg_macro::my_lib_macro` crate for guidance on how handle this unexpected cfg
1010
= help: the macro `cfg_macro::my_lib_macro` may come from an old version of the `cfg_macro` crate, try updating your dependency with `cargo update -p cfg_macro`
1111
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
1212
= note: `#[warn(unexpected_cfgs)]` on by default
@@ -20,7 +20,7 @@ LL | cfg_macro::my_lib_macro_value!();
2020
|
2121
= note: expected values for `panic` are: `abort` and `unwind`
2222
= note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate
23-
= help: try refering to `cfg_macro::my_lib_macro_value` crate for guidance on how handle this unexpected cfg
23+
= help: try referring to `cfg_macro::my_lib_macro_value` crate for guidance on how handle this unexpected cfg
2424
= help: the macro `cfg_macro::my_lib_macro_value` may come from an old version of the `cfg_macro` crate, try updating your dependency with `cargo update -p cfg_macro`
2525
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
2626
= note: this warning originates in the macro `cfg_macro::my_lib_macro_value` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -33,7 +33,7 @@ LL | cfg_macro::my_lib_macro_feature!();
3333
|
3434
= note: no expected values for `feature`
3535
= note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate
36-
= help: try refering to `cfg_macro::my_lib_macro_feature` crate for guidance on how handle this unexpected cfg
36+
= help: try referring to `cfg_macro::my_lib_macro_feature` crate for guidance on how handle this unexpected cfg
3737
= help: the macro `cfg_macro::my_lib_macro_feature` may come from an old version of the `cfg_macro` crate, try updating your dependency with `cargo update -p cfg_macro`
3838
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
3939
= note: this warning originates in the macro `cfg_macro::my_lib_macro_feature` (in Nightly builds, run with -Z macro-backtrace for more info)

Diff for: tests/ui/check-cfg/report-in-external-macros.rustc.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | cfg_macro::my_lib_macro!();
66
|
77
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
88
= note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate
9-
= help: try refering to `cfg_macro::my_lib_macro` crate for guidance on how handle this unexpected cfg
9+
= help: try referring to `cfg_macro::my_lib_macro` crate for guidance on how handle this unexpected cfg
1010
= help: to expect this configuration use `--check-cfg=cfg(my_lib_cfg)`
1111
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
1212
= note: `#[warn(unexpected_cfgs)]` on by default
@@ -20,7 +20,7 @@ LL | cfg_macro::my_lib_macro_value!();
2020
|
2121
= note: expected values for `panic` are: `abort` and `unwind`
2222
= note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate
23-
= help: try refering to `cfg_macro::my_lib_macro_value` crate for guidance on how handle this unexpected cfg
23+
= help: try referring to `cfg_macro::my_lib_macro_value` crate for guidance on how handle this unexpected cfg
2424
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
2525
= note: this warning originates in the macro `cfg_macro::my_lib_macro_value` (in Nightly builds, run with -Z macro-backtrace for more info)
2626

@@ -33,7 +33,7 @@ LL | cfg_macro::my_lib_macro_feature!();
3333
= note: no expected values for `feature`
3434
= help: to expect this configuration use `--check-cfg=cfg(feature, values("UNEXPECTED_FEATURE"))`
3535
= note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate
36-
= help: try refering to `cfg_macro::my_lib_macro_feature` crate for guidance on how handle this unexpected cfg
36+
= help: try referring to `cfg_macro::my_lib_macro_feature` crate for guidance on how handle this unexpected cfg
3737
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
3838
= note: this warning originates in the macro `cfg_macro::my_lib_macro_feature` (in Nightly builds, run with -Z macro-backtrace for more info)
3939

0 commit comments

Comments
 (0)