-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Improve the inline_fluent! macro
#152356
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
base: main
Are you sure you want to change the base?
Improve the inline_fluent! macro
#152356
Conversation
inline_fluent! macro and rename it to msg!inline_fluent! macro
e7ad0ed to
4cc0202
Compare
|
cc @davidtwco, @TaKO8Ki
cc @davidtwco, @TaKO8Ki Some changes occurred to the CTFE machinery |
|
Don't merge together with #152276, these will soft-conflict |
|
don't merge, #152276 goes first |
4cc0202 to
6eb2a8f
Compare
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred to the CTFE / Miri interpreter cc @rust-lang/miri |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Soft conflict is now resolved, safe to merge :) |
This comment was marked as outdated.
This comment was marked as outdated.
2 similar comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@bors r+ rollup |
…onszelmann Improve the `inline_fluent!` macro For rust-lang#151366 This PR turns `inline_fluent!` into a proc macro, so we can run validation on the messages in this macro :) I started a thread here because I don't like the name of the macro, but that's for a future PR: [#t-compiler > Bikeshed the new &rust-lang#96;inline_fluent!&rust-lang#96; macro](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Bikeshed.20the.20new.20.60inline_fluent!.60.20macro/with/572646242)
…onszelmann Improve the `inline_fluent!` macro For rust-lang#151366 This PR turns `inline_fluent!` into a proc macro, so we can run validation on the messages in this macro :) I started a thread here because I don't like the name of the macro, but that's for a future PR: [#t-compiler > Bikeshed the new &rust-lang#96;inline_fluent!&rust-lang#96; macro](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Bikeshed.20the.20new.20.60inline_fluent!.60.20macro/with/572646242)
…onszelmann Improve the `inline_fluent!` macro For rust-lang#151366 This PR turns `inline_fluent!` into a proc macro, so we can run validation on the messages in this macro :) I started a thread here because I don't like the name of the macro, but that's for a future PR: [#t-compiler > Bikeshed the new &rust-lang#96;inline_fluent!&rust-lang#96; macro](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Bikeshed.20the.20new.20.60inline_fluent!.60.20macro/with/572646242)
…uwer Rollup of 14 pull requests Successful merges: - #152323 (Fix ICE in borrowck when recovering `fn_sig` for `-> _`) - #152469 (Remove unused features) - #152515 (Extract `DepKindVTable` constructors to their own module) - #152555 (Port `#[rustc_diagnostic_item]` to the new attribute parsers) - #152218 (Report unconstrained region in hidden types lazily) - #152356 (Improve the `inline_fluent!` macro) - #152392 (Fix ICE in supertrait_vtable_slot when supertrait has missing generics) - #152407 (Add regression test for type_const with unit struct ctor under mGCA) - #152440 (Fix typos and grammar in compiler and build documentation) - #152536 (bootstrap: add explicit UTF-8 encoding to text-mode open() calls) - #152554 (Remove `deprecated_safe` and its corresponding feature gate) - #152556 (doc: move riscv64a23-unknown-linux-gnu to tier 2) - #152563 (Replace "bug" with "issue" in triagebot ping messages) - #152565 (fix missleading error for tuple ctor) Failed merges: - #152512 (core: Implement feature `float_exact_integer_constants`) - #152296 (Port `rust_nonnull_optimization_guaranteed` and `rustc_do_not_const_check` to the new attribute parser)
For #151366
This PR turns
inline_fluent!into a proc macro, so we can run validation on the messages in this macro :)I started a thread here because I don't like the name of the macro, but that's for a future PR: #t-compiler > Bikeshed the new `inline_fluent!` macro