Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 9 pull requests #108465

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
41ff6a8
Update LLVM submodule
icedrocket Feb 10, 2023
bf1afe1
Treat `str` as containing `[u8]` for auto trait purposes
compiler-errors Feb 11, 2023
e9a8ff7
Special note for str in auto traits
compiler-errors Feb 14, 2023
313f04f
Add regression test for #105626
icedrocket Feb 22, 2023
a914f37
Add lint against `Iterator::map` receiving a callable that returns `()`
obeis Feb 16, 2023
ddd7d10
Add ui test for `map_unit_fn` lint
obeis Feb 16, 2023
a87443a
Emit `map_unit_fn` lint in closure case
obeis Feb 16, 2023
b93d545
Add ui test for `map_unit_fn` lint in closure case
obeis Feb 16, 2023
99344a8
Add ui test for `E0271` error
obeis Feb 20, 2023
37d4302
Add regression test for #107918
GuillaumeGomez Feb 24, 2023
dca52ac
make "proc macro panicked" translatable
tshepang Feb 24, 2023
60ac309
add `known-bug` test for unsoundness issue #108425
gburgessiv Feb 25, 2023
9f876cc
docs/test: add UI test and docs for `E0476`
Ezrashaw Feb 25, 2023
7d83d69
add `known-bug` test for unsoundness issue #107975
gburgessiv Feb 25, 2023
6adc76d
add `known-bug` test for unsoundness issue #105787
gburgessiv Feb 25, 2023
3b51e9f
fix: fix issue in macro
Ezrashaw Feb 25, 2023
ed34354
Do not lint unresolved trait for ineffective unstable trait impl
fee1-dead Feb 25, 2023
c934ee8
Don't run issue-107918.rs test on windows
GuillaumeGomez Feb 25, 2023
885f9e7
Complete migrating `ast_passes` to derive diagnostics
clubby789 Feb 25, 2023
181e38d
Rollup merge of #107879 - icedrocket:update-llvm, r=cuviper
compiler-errors Feb 25, 2023
9960a3e
Rollup merge of #107890 - obeis:mapping-to-unit, r=cjgillot
compiler-errors Feb 25, 2023
a2329e0
Rollup merge of #107941 - compiler-errors:str-has-u8-slice-for-auto, …
compiler-errors Feb 25, 2023
eb2da60
Rollup merge of #108431 - GuillaumeGomez:regression-test-for-107918, …
compiler-errors Feb 25, 2023
ec85ac5
Rollup merge of #108436 - tshepang:translatable-proc-macro-panicked, …
compiler-errors Feb 25, 2023
c894630
Rollup merge of #108444 - Ezrashaw:add-test+docs-for-e0476, r=Guillau…
compiler-errors Feb 25, 2023
fd548b2
Rollup merge of #108445 - gburgessiv:add-known-bug, r=compiler-errors
compiler-errors Feb 25, 2023
7e9f0b7
Rollup merge of #108449 - fee1-dead-contrib:do_not_lint_unresolved, r…
compiler-errors Feb 25, 2023
91a6f37
Rollup merge of #108456 - clubby789:ast-passes-diag-migrate, r=compil…
compiler-errors Feb 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 147 additions & 0 deletions compiler/rustc_ast_passes/locales/en-US.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,150 @@ ast_passes_fn_without_body =
.suggestion = provide a definition for the function
ast_passes_extern_block_suggestion = if you meant to declare an externally defined function, use an `extern` block
ast_passes_bound_in_context = bounds on `type`s in {$ctx} have no effect
ast_passes_extern_types_cannot = `type`s inside `extern` blocks cannot have {$descr}
.suggestion = remove the {$remove_descr}
.label = `extern` block begins here
ast_passes_extern_keyword_link = for more information, visit https://doc.rust-lang.org/std/keyword.extern.html
ast_passes_body_in_extern = incorrect `{$kind}` inside `extern` block
.cannot_have = cannot have a body
.invalid = the invalid body
.existing = `extern` blocks define existing foreign {$kind}s and {$kind}s inside of them cannot have a body
ast_passes_fn_body_extern = incorrect function inside `extern` block
.cannot_have = cannot have a body
.suggestion = remove the invalid body
.help = you might have meant to write a function accessible through FFI, which can be done by writing `extern fn` outside of the `extern` block
.label = `extern` blocks define existing foreign functions and functions inside of them cannot have a body
ast_passes_extern_fn_qualifiers = functions in `extern` blocks cannot have qualifiers
.label = in this `extern` block
.suggestion = remove the qualifiers
ast_passes_extern_item_ascii = items in `extern` blocks cannot use non-ascii identifiers
.label = in this `extern` block
.note = this limitation may be lifted in the future; see issue #83942 <https://github.com/rust-lang/rust/issues/83942> for more information
ast_passes_bad_c_variadic = only foreign or `unsafe extern "C"` functions may be C-variadic
ast_passes_item_underscore = `{$kind}` items in this context need a name
.label = `_` is not a valid name for this `{$kind}` item
ast_passes_nomangle_ascii = `#[no_mangle]` requires ASCII identifier
ast_passes_module_nonascii = trying to load file for module `{$name}` with non-ascii identifier name
.help = consider using the `#[path]` attribute to specify filesystem path
ast_passes_auto_generic = auto traits cannot have generic parameters
.label = auto trait cannot have generic parameters
.suggestion = remove the parameters
ast_passes_auto_super_lifetime = auto traits cannot have super traits or lifetime bounds
.label = {ast_passes_auto_super_lifetime}
.suggestion = remove the super traits or lifetime bounds
ast_passes_auto_items = auto traits cannot have associated items
.label = {ast_passes_auto_items}
.suggestion = remove these associated items
ast_passes_generic_before_constraints = generic arguments must come before the first constraint
.constraints = {$constraint_len ->
[one] constraint
*[other] constraints
}
.args = generic {$args_len ->
[one] argument
*[other] arguments
}
.empty_string = {""},
.suggestion = move the {$constraint_len ->
[one] constraint
*[other] constraints
} after the generic {$args_len ->
[one] argument
*[other] arguments
}
ast_passes_pattern_in_fn_pointer = patterns aren't allowed in function pointer types
ast_passes_trait_object_single_bound = only a single explicit lifetime bound is permitted
ast_passes_impl_trait_path = `impl Trait` is not allowed in path parameters
ast_passes_nested_impl_trait = nested `impl Trait` is not allowed
.outer = outer `impl Trait`
.inner = nested `impl Trait` here
ast_passes_at_least_one_trait = at least one trait must be specified
ast_passes_extern_without_abi = extern declarations without an explicit ABI are deprecated
ast_passes_out_of_order_params = {$param_ord} parameters must be declared prior to {$max_param} parameters
.suggestion = reorder the parameters: lifetimes, then consts and types
ast_passes_obsolete_auto = `impl Trait for .. {"{}"}` is an obsolete syntax
.help = use `auto trait Trait {"{}"}` instead
ast_passes_unsafe_negative_impl = negative impls cannot be unsafe
.negative = negative because of this
.unsafe = unsafe because of this
ast_passes_inherent_cannot_be = inherent impls cannot be {$annotation}
.because = {$annotation} because of this
.type = inherent impl for this type
.only_trait = only trait implementations may be annotated with {$annotation}
ast_passes_unsafe_item = {$kind} cannot be declared unsafe
ast_passes_fieldless_union = unions cannot have zero fields
ast_passes_where_after_type_alias = where clauses are not allowed after the type for type aliases
.note = see issue #89122 <https://github.com/rust-lang/rust/issues/89122> for more information
ast_passes_generic_default_trailing = generic parameters with a default must be trailing
ast_passes_nested_lifetimes = nested quantification of lifetimes
ast_passes_optional_trait_supertrait = `?Trait` is not permitted in supertraits
.note = traits are `?{$path_str}` by default
ast_passes_optional_trait_object = `?Trait` is not permitted in trait object types
ast_passes_tilde_const_disallowed = `~const` is not allowed here
.trait = trait objects cannot have `~const` trait bounds
.closure = closures cannot have `~const` trait bounds
.function = this function is not `const`, so it cannot have `~const` trait bounds
ast_passes_optional_const_exclusive = `~const` and `?` are mutually exclusive
ast_passes_const_and_async = functions cannot be both `const` and `async`
.const = `const` because of this
.async = `async` because of this
.label = {""}
ast_passes_pattern_in_foreign = patterns aren't allowed in foreign function declarations
.label = pattern not allowed in foreign function
ast_passes_pattern_in_bodiless = patterns aren't allowed in functions without bodies
.label = pattern not allowed in function without body
ast_passes_equality_in_where = equality constraints are not yet supported in `where` clauses
.label = not supported
.suggestion = if `{$ident}` is an associated type you're trying to set, use the associated type binding syntax
.suggestion_path = if `{$trait_segment}::{$potential_assoc}` is an associated type you're trying to set, use the associated type binding syntax
.note = see issue #20041 <https://github.com/rust-lang/rust/issues/20041> for more information
ast_passes_stability_outside_std = stability attributes may not be used outside of the standard library
ast_passes_feature_on_non_nightly = `#![feature]` may not be used on the {$channel} release channel
.suggestion = remove the attribute
.stable_since = the feature `{$name}` has been stable since `{$since}` and no longer requires an attribute to enable
ast_passes_incompatbile_features = `{$f1}` and `{$f2}` are incompatible, using them at the same time is not allowed
.help = remove one of these features
ast_passes_show_span = {$msg}
Loading