Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ed81a11
wasm: rm static mut
hkBst Jun 19, 2025
8835ea8
fix: Don't add an end column separator after a file with no source
Muscraft Jul 22, 2025
93d16c5
fix: Add col separator before secondary messages with no source
Muscraft Jul 3, 2025
2bd47d2
fix: Render continuation between no source labels
Muscraft Jul 22, 2025
0da328b
Add spin_loop hint for LoongArch
heiher Aug 27, 2025
dacae07
Rename `Location::file_with_nul` to `file_as_c_str`
Darksonn Aug 27, 2025
113aeac
Remove several remnants of the old libtest-based executor
Zalathar Aug 27, 2025
e06cd9f
`const`ify (the unstable) `str::as_str`
GrigorenkoPV Aug 27, 2025
aab5e0b
Move `NativeLibKind` from `rustc_session` to `rustc_hir`
JonathanBrouwer Jul 16, 2025
e8d08b5
Port the `#[link]` attribute to the new parser
JonathanBrouwer Jul 16, 2025
7db1840
Changes to the uitests
JonathanBrouwer Jul 16, 2025
a8c837e
Disable `int_to_ptr_transmutes` suggestion for unsized types
Urgau Aug 27, 2025
d82a20e
Bump icu_list to 2.0
robertbastian Aug 28, 2025
359cbd2
Use default locale fallback data
robertbastian Aug 28, 2025
bd8fb60
Rollup merge of #142727 - hkBst:rm-static-mut-wasm, r=ChrisDenton
Zalathar Aug 28, 2025
a65ed63
Rollup merge of #143193 - JonathanBrouwer:link_rework, r=jdonszelmann
Zalathar Aug 28, 2025
2fae59a
Rollup merge of #144864 - Muscraft:no-source-fixes, r=jieyouxu
Zalathar Aug 28, 2025
3f89664
Rollup merge of #145913 - heiher:loong-hint, r=joshtriplett
Zalathar Aug 28, 2025
d2ce84e
Rollup merge of #145926 - Zalathar:no-libtest, r=jieyouxu
Zalathar Aug 28, 2025
c838117
Rollup merge of #145928 - Darksonn:file_as_c_str, r=joshtriplett
Zalathar Aug 28, 2025
f6c56bc
Rollup merge of #145930 - GrigorenkoPV:const_str_as_str, r=joshtriplett
Zalathar Aug 28, 2025
72727b1
Rollup merge of #145941 - Urgau:int_to_ptr_transmutes-unsized, r=lcnr
Zalathar Aug 28, 2025
556d2fa
Rollup merge of #145953 - robertbastian:master, r=Manishearth
Zalathar Aug 28, 2025
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
235 changes: 50 additions & 185 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions compiler/rustc_attr_parsing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ rustc_macros = { path = "../rustc_macros" }
rustc_parse = { path = "../rustc_parse" }
rustc_session = { path = "../rustc_session" }
rustc_span = { path = "../rustc_span" }
rustc_target = { path = "../rustc_target" }
thin-vec.workspace = true
# tidy-alphabetical-end
52 changes: 52 additions & 0 deletions compiler/rustc_attr_parsing/messages.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,55 @@ attr_parsing_invalid_meta_item = expected a literal (`1u8`, `1.0f32`, `"string"`

attr_parsing_suffixed_literal_in_attribute = suffixed literals are not allowed in attributes
.help = instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)

attr_parsing_as_needed_compatibility =
linking modifier `as-needed` is only compatible with `dylib` and `framework` linking kinds

attr_parsing_bundle_needs_static =
linking modifier `bundle` is only compatible with `static` linking kind

attr_parsing_empty_link_name =
link name must not be empty
.label = empty link name

attr_parsing_import_name_type_raw =
import name type can only be used with link kind `raw-dylib`

attr_parsing_import_name_type_x86 =
import name type is only supported on x86

attr_parsing_incompatible_wasm_link =
`wasm_import_module` is incompatible with other arguments in `#[link]` attributes

attr_parsing_invalid_link_modifier =
invalid linking modifier syntax, expected '+' or '-' prefix before one of: bundle, verbatim, whole-archive, as-needed

attr_parsing_link_arg_unstable =
link kind `link-arg` is unstable

attr_parsing_link_cfg_unstable =
link cfg is unstable

attr_parsing_link_framework_apple =
link kind `framework` is only supported on Apple targets

attr_parsing_link_requires_name =
`#[link]` attribute requires a `name = "string"` argument
.label = missing `name` argument

attr_parsing_multiple_modifiers =
multiple `{$modifier}` modifiers in a single `modifiers` argument

attr_parsing_multiple_renamings =
multiple renamings were specified for library `{$lib_name}`
attr_parsing_raw_dylib_no_nul =
link name must not contain NUL characters if link kind is `raw-dylib`

attr_parsing_raw_dylib_elf_unstable =
link kind `raw-dylib` is unstable on ELF platforms

attr_parsing_raw_dylib_only_windows =
link kind `raw-dylib` is only supported on Windows targets

attr_parsing_whole_archive_needs_static =
linking modifier `whole-archive` is only compatible with `static` linking kind
2 changes: 1 addition & 1 deletion compiler/rustc_attr_parsing/src/attributes/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub fn parse_cfg_attr<'c, S: Stage>(
parse_cfg_entry(cx, single)
}

fn parse_cfg_entry<S: Stage>(
pub(crate) fn parse_cfg_entry<S: Stage>(
cx: &mut AcceptContext<'_, '_, S>,
item: &MetaItemOrLitParser<'_>,
) -> Option<CfgEntry> {
Expand Down
Loading
Loading