Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b51a8ed
test(rustfmt): Verify frontmatter is preserved
epage Aug 8, 2025
e50fed7
add regression test for #145529
lolbinarycat Aug 17, 2025
15a8999
refactor rustdoc::invalid_html_tags tag parser
lolbinarycat Aug 17, 2025
d022089
rustdoc::invalid_html_tags(unclosed comment): fix off by one in span
lolbinarycat Aug 19, 2025
10fde9e
Implement some more checks for `ptr_guaranteed_cmp` in consteval:
zachs18 Jul 28, 2025
25afbbc
Remove arm::t32-specific function pointer test.
zachs18 Aug 24, 2025
5d41f7c
Fix some minor issues in comments
houpo-bob Aug 24, 2025
46a7d28
Handle unwinding fatal errors in codegen workers
bjorn3 Aug 24, 2025
00fe7d1
Move `NativeLibKind` from `rustc_session` to `rustc_hir`
JonathanBrouwer Jul 16, 2025
525c6a3
Directly raise fatal errors inside the codegen backends
bjorn3 Aug 24, 2025
9567812
compiletest: if a compiler fails outside a ui test, show its output
lolbinarycat Aug 24, 2025
8533310
Port the `#[link]` attribute to the new parser
JonathanBrouwer Jul 16, 2025
ff053ba
Changes to the uitests
JonathanBrouwer Jul 16, 2025
a3229e4
Make `x test distcheck` more self-contained
Kobzol Aug 25, 2025
89f9cf3
Handle tarballs in `x test tidy`
Kobzol Aug 25, 2025
8fa5fc6
Do not forward CI configure arguments to `distcheck` builds
Kobzol Aug 25, 2025
2ea8621
Override `GITHUB_ACTIONS=0` for tidy tests
Kobzol Aug 25, 2025
d262463
Don't show warnings from xcrun with -Zverbose-internals
madsmtm Aug 25, 2025
cce9479
Wait for DPkg frontend lock when trying to remove packages
jieyouxu Aug 24, 2025
f43c6f9
Update books
rustbot Aug 25, 2025
85b5ec9
Update wasm-component-ld dependency
alexcrichton Aug 25, 2025
64cbe52
Allow linking a prebuilt optimized compiler-rt builtins library
Jun 24, 2025
148a07c
Refactor *.optimized-compiler-builtins bootstrap options
pmur Aug 20, 2025
ad553e2
Rollup merge of #143193 - JonathanBrouwer:link_rework, r=jdonszelmann
Zalathar Aug 26, 2025
5892fa9
Rollup merge of #143689 - pmur:murp/external-rt-optimized-compiler-bu…
Zalathar Aug 26, 2025
80b7dd2
Rollup merge of #144885 - zachs18:ptr_guaranteed_cmp_more, r=RalfJung
Zalathar Aug 26, 2025
de250e5
Rollup merge of #145535 - lolbinarycat:rustdoc-invalid_html_tags-svg-…
Zalathar Aug 26, 2025
f2b7d28
Rollup merge of #145766 - epage:rustfmt, r=calebcartwright
Zalathar Aug 26, 2025
7eb60ee
Rollup merge of #145811 - houpo-bob:master, r=samueltardieu
Zalathar Aug 26, 2025
8741485
Rollup merge of #145814 - bjorn3:codegen_worker_fatal_error, r=petroc…
Zalathar Aug 26, 2025
24e9b6d
Rollup merge of #145815 - jieyouxu:pr-check-timeout, r=marcoieni
Zalathar Aug 26, 2025
af51d80
Rollup merge of #145821 - lolbinarycat:compiletest-error-show, r=club…
Zalathar Aug 26, 2025
09af407
Rollup merge of #145845 - Kobzol:fix-distcheck, r=jieyouxu
Zalathar Aug 26, 2025
a72bfd3
Rollup merge of #145847 - madsmtm:no-xcrun-warnings, r=jieyouxu
Zalathar Aug 26, 2025
30f7ddc
Rollup merge of #145856 - rustbot:docs-update, r=ehuss
Zalathar Aug 26, 2025
1730b2d
Rollup merge of #145858 - alexcrichton:update-wasm-component-ld, r=lqd
Zalathar Aug 26, 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
72 changes: 31 additions & 41 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3480,6 +3480,7 @@ dependencies = [
"rustc_parse",
"rustc_session",
"rustc_span",
"rustc_target",
"thin-vec",
]

Expand Down Expand Up @@ -5988,9 +5989,9 @@ dependencies = [

[[package]]
name = "wasi-preview1-component-adapter-provider"
version = "34.0.2"
version = "36.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33696c5f1ff1e083de9f36c3da471abd736362bc173e093f8b0b1ed5a387e39b"
checksum = "20689c88791776219f78c2529700d15e6a9bd57a27858c62e9ef8487956b571c"

[[package]]
name = "wasm-bindgen"
Expand Down Expand Up @@ -6052,17 +6053,17 @@ dependencies = [

[[package]]
name = "wasm-component-ld"
version = "0.5.15"
version = "0.5.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d95124e34fee1316222e03b9bbf41af186ecbae2c8b79f8debe6e21b3ff60c5"
checksum = "14cd35d6cae91109a0ffd207b573cf3c741cab7e921dd376ea7aaf2c52a3408c"
dependencies = [
"anyhow",
"clap",
"lexopt",
"libc",
"tempfile",
"wasi-preview1-component-adapter-provider",
"wasmparser 0.234.0",
"wasmparser 0.237.0",
"wat",
"windows-sys 0.59.0",
"winsplit",
Expand All @@ -6089,34 +6090,24 @@ dependencies = [

[[package]]
name = "wasm-encoder"
version = "0.234.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "170a0157eef517a179f2d20ed7c68df9c3f7f6c1c047782d488bf5a464174684"
dependencies = [
"leb128fmt",
"wasmparser 0.234.0",
]

[[package]]
name = "wasm-encoder"
version = "0.236.1"
version = "0.237.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "724fccfd4f3c24b7e589d333fc0429c68042897a7e8a5f8694f31792471841e7"
checksum = "efe92d1321afa53ffc88a57c497bb7330c3cf84c98ffdba4a4caf6a0684fad3c"
dependencies = [
"leb128fmt",
"wasmparser 0.236.1",
"wasmparser 0.237.0",
]

[[package]]
name = "wasm-metadata"
version = "0.234.0"
version = "0.237.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a42fe3f5cbfb56fc65311ef827930d06189160038e81db62188f66b4bf468e3a"
checksum = "4cc0b0a0c4f35ca6efa7a797671372915d4e9659dba2d59edc6fafc931d19997"
dependencies = [
"anyhow",
"indexmap",
"wasm-encoder 0.234.0",
"wasmparser 0.234.0",
"wasm-encoder 0.237.0",
"wasmparser 0.237.0",
]

[[package]]
Expand All @@ -6131,46 +6122,45 @@ dependencies = [

[[package]]
name = "wasmparser"
version = "0.234.0"
version = "0.236.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be22e5a8f600afce671dd53c8d2dd26b4b7aa810fd18ae27dfc49737f3e02fc5"
checksum = "a9b1e81f3eb254cf7404a82cee6926a4a3ccc5aad80cc3d43608a070c67aa1d7"
dependencies = [
"bitflags",
"hashbrown",
"indexmap",
"semver",
"serde",
]

[[package]]
name = "wasmparser"
version = "0.236.1"
version = "0.237.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a9b1e81f3eb254cf7404a82cee6926a4a3ccc5aad80cc3d43608a070c67aa1d7"
checksum = "7d2a40ca0d2bdf4b0bf36c13a737d0b2c58e4c8aaefe1c57f336dd75369ca250"
dependencies = [
"bitflags",
"hashbrown",
"indexmap",
"semver",
"serde",
]

[[package]]
name = "wast"
version = "236.0.1"
version = "237.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3bec4b4db9c6808d394632fd4b0cd4654c32c540bd3237f55ee6a40fff6e51f"
checksum = "fcf66f545acbd55082485cb9a6daab54579cb8628a027162253e8e9f5963c767"
dependencies = [
"bumpalo",
"leb128fmt",
"memchr",
"unicode-width 0.2.1",
"wasm-encoder 0.236.1",
"wasm-encoder 0.237.0",
]

[[package]]
name = "wat"
version = "1.236.1"
version = "1.237.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "64475e2f77d6071ce90624098fc236285ddafa8c3ea1fb386f2c4154b6c2bbdb"
checksum = "27975186f549e4b8d6878b627be732863883c72f7bf4dcf8f96e5f8242f73da9"
dependencies = [
"wast",
]
Expand Down Expand Up @@ -6659,9 +6649,9 @@ dependencies = [

[[package]]
name = "wit-component"
version = "0.234.0"
version = "0.237.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a8888169acf4c6c4db535beb405b570eedac13215d6821ca9bd03190f7f8b8c"
checksum = "bfb7674f76c10e82fe00b256a9d4ffb2b8d037d42ab8e9a83ebb3be35c9d0bf6"
dependencies = [
"anyhow",
"bitflags",
Expand All @@ -6670,17 +6660,17 @@ dependencies = [
"serde",
"serde_derive",
"serde_json",
"wasm-encoder 0.234.0",
"wasm-encoder 0.237.0",
"wasm-metadata",
"wasmparser 0.234.0",
"wasmparser 0.237.0",
"wit-parser",
]

[[package]]
name = "wit-parser"
version = "0.234.0"
version = "0.237.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "465492df47d8dcc015a3b7f241aed8ea03688fee7c5e04162285c5b1a3539c8b"
checksum = "ce2596a5bc7c24cc965b56ad6ff9e32394c4e401764f89620a888519c6e849ab"
dependencies = [
"anyhow",
"id-arena",
Expand All @@ -6691,7 +6681,7 @@ dependencies = [
"serde_derive",
"serde_json",
"unicode-xid",
"wasmparser 0.234.0",
"wasmparser 0.237.0",
]

[[package]]
Expand Down
17 changes: 11 additions & 6 deletions bootstrap.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,11 @@
#build.profiler = false

# Use the optimized LLVM C intrinsics for `compiler_builtins`, rather than Rust intrinsics.
# Requires the LLVM submodule to be managed by bootstrap (i.e. not external) so that `compiler-rt`
# sources are available.
# Choosing true requires the LLVM submodule to be managed by bootstrap (i.e. not external)
# so that `compiler-rt` sources are available.
#
# Setting this to a path removes the requirement for a C toolchain, but requires setting the
# path to an existing library containing the builtins library from LLVM's compiler-rt.
#
# Setting this to `false` generates slower code, but removes the requirement for a C toolchain in
# order to run `x check`.
Expand Down Expand Up @@ -1041,13 +1044,15 @@
#runner = <none> (string)

# Use the optimized LLVM C intrinsics for `compiler_builtins`, rather than Rust intrinsics
# on this target.
# Requires the LLVM submodule to be managed by bootstrap (i.e. not external) so that `compiler-rt`
# sources are available.
# on this target. Choosing true requires the LLVM submodule to be managed by bootstrap
# (i.e. not external) so that `compiler-rt` sources are available.
#
# Setting this to a path removes the requirement for a C toolchain, but requires setting the
# path to an existing library containing the builtins library from LLVM's compiler-rt.
#
# Setting this to `false` generates slower code, but removes the requirement for a C toolchain in
# order to run `x check`.
#optimized-compiler-builtins = build.optimized-compiler-builtins (bool)
#optimized-compiler-builtins = build.optimized-compiler-builtins (bool or path)

# Link the compiler and LLVM against `jemalloc` instead of the default libc allocator.
# This overrides the global `rust.jemalloc` option. See that option for more info.
Expand Down
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 = "0.2.12"
# 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 @@ -189,3 +189,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