about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-01-21Make our `DIFlags` match `LLVMDIFlags` in the LLVM-C APIZalathar-117/+85
2025-01-20Auto merge of #134286 - Urgau:unreach_pub-std, r=ibraheemdevbors-131/+150
Enable `unreachable_pub` lint in core This PR enables the [`unreachable_pub`](https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#unreachable-pub) as warn in `core`, `rtstartup` and `panic_unwind`. The motivation is similar to the compiler [MCP: Enable deny(unreachable_pub) on `rustc_*` crates](https://github.com/rust-lang/compiler-team/issues/773#issue-2467219005) : > "Where is this thing used?" is a question I ask all the time when reading unfamiliar code. Because of this, I generally find it annoying when things are marked with a more permissive visibility than necessary. "This thing marked pub, which other crates is it used in? Oh, it's not used in any other crates." Another motivation is to help to lint by utilizing it in-tree and seeing it's limitation in more complex scenarios. The diff was mostly generated with `./x.py fix --stage 1 library/core/ -- --broken-code`, as well as manual edits for code in macros, generated code and other targets. r? libs
2025-01-20Auto merge of #135789 - matthiaskrgr:rollup-4cvw8s4, r=matthiaskrgrbors-3037/+9572
Rollup of 7 pull requests Successful merges: - #133695 (Reexport likely/unlikely in std::hint) - #135330 (Respect --sysroot for rustc -vV and -Cpasses=list) - #135333 (Partial progress on #132735: Replace extern "rust-intrinsic" with #[rustc_intrinsic] across the codebase) - #135741 (Recognise new IPv6 documentation range from IETF RFC 9637) - #135770 (Update contributing docs for submodule/subtree changes) - #135775 (Subtree update of `rust-analyzer`) - #135776 (Subtree sync for rustc_codegen_cranelift) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-20Rollup merge of #135776 - bjorn3:sync_cg_clif-2025-01-20, r=bjorn3Matthias Krüger-5/+12
Subtree sync for rustc_codegen_cranelift Nothing too exciting this time, but this includes a fix for a linker hang on Windows: https://github.com/rust-lang/rustc_codegen_cranelift/pull/1554 r? ``@ghost`` ``@rustbot`` label +A-codegen +A-cranelift +T-compiler
2025-01-20Rollup merge of #135775 - lnicola:sync-from-ra, r=lnicolaMatthias Krüger-2920/+9088
Subtree update of `rust-analyzer` r? ``@ghost``
2025-01-20Rollup merge of #135770 - jieyouxu:subtree-submodule-contributing, r=KobzolMatthias Krüger-0/+9
Update contributing docs for submodule/subtree changes Noticed in https://github.com/rust-lang/rust/pull/135337#issuecomment-2602434736. r? ``@Kobzol`` (or anyone really)
2025-01-20Rollup merge of #135741 - bardiharborow:std/net/rfc9637, r=AmanieuMatthias Krüger-4/+17
Recognise new IPv6 documentation range from IETF RFC 9637 This PR adds the `3fff::/20` range defined by [IETF RFC 9637](https://datatracker.ietf.org/doc/rfc9637/) to those ranges which `Ipv6Addr::is_documentation` recognises as a documentation IP. See also: https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml Unstable tracking issue: #27709
2025-01-20Rollup merge of #135333 - vayunbiyani:test-environment, r=RalfJungMatthias Krüger-85/+61
Partial progress on #132735: Replace extern "rust-intrinsic" with #[rustc_intrinsic] across the codebase Part of #132735: Replace `extern "rust-intrinsic"` with `#[rustc_intrinsic]` macro - Updated all instances of `extern "rust-intrinsic"` to use the `#[rustc_intrinsic]` macro. - Skipped `.md` files and test files to avoid unnecessary changes.
2025-01-20Rollup merge of #135330 - bjorn3:respect_sysroot_in_version_printing, r=lqdMatthias Krüger-19/+31
Respect --sysroot for rustc -vV and -Cpasses=list This is necessary when the specified codegen backend is in a custom sysroot. Fixes https://github.com/rust-lang/rust/issues/135165
2025-01-20Rollup merge of #133695 - x17jiri:hint_likely, r=AmanieuMatthias Krüger-4/+354
Reexport likely/unlikely in std::hint Since `likely`/`unlikely` should be working now, we could reexport them in `std::hint`. I'm not sure if this is already approved or if it requires approval Tracking issue: #26179
2025-01-20core: `#[allow(unreachable_pub)]` on unreachable `pub use`Urgau-1/+9
2025-01-20core: add `#![warn(unreachable_pub)]`Urgau-104/+112
2025-01-20rtstartup: add `#![warn(unreachable_pub)]`Urgau-0/+2
2025-01-20panic_unwind: add `#![warn(unreachable_pub)]`Urgau-26/+27
2025-01-20Auto merge of #135769 - jieyouxu:rollup-3h384pz, r=jieyouxubors-31/+44
Rollup of 5 pull requests Successful merges: - #135433 (Add Profile Override for Non-Git Sources) - #135626 (doc: Point to methods on `Command` as alternatives to `set/remove_var`) - #135658 (Do not include GCC source code in source tarballs) - #135676 (rustc_resolve: use structured fields in traces) - #135762 (Correct counting to four in cell module docs) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-20Respect --target in get_backend_from_raw_matchesbjorn3-9/+15
2025-01-20Merge commit '728bc27f32c05ac8a9b5eb33fd101e479072984f' into ↵bjorn3-5/+12
sync_cg_clif-2025-01-20
2025-01-201. Removed 'rustc_nounwind' 2. Rewording of commentsJiri Bobek-11/+6
2025-01-20Rustup to rustc 1.86.0-nightly (9a1d156f3 2025-01-19)bjorn3-1/+1
2025-01-20Sync from rust 9a1d156f38c51441ee51e5a068f1d0caf4bb0f27bjorn3-1/+11
2025-01-20Auto merge of #135643 - khuey:135332, r=jieyouxubors-52/+111
When LLVM's location discriminator value limit is exceeded, emit locations with dummy spans instead of dropping them entirely Dropping them fails `-Zverify-llvm-ir`. Fixes #135332. r? `@jieyouxu`
2025-01-20Updated several files to use rust intrinsic macros instead of the legacy ↵vayunbiyani-85/+61
extern "rust-intrinsic" blocks
2025-01-20docs: update contributing docs for submodule/subtree changes许杰友 Jieyou Xu (Joe)-0/+9
2025-01-20Merge pull request #18967 from Veykril/push-pwonkmwqmmolLukas Wirth-265/+368
Properly record meaningful imports as re-exports in symbol index
2025-01-20Merge pull request #18934 from 1hakusai1/goto_definition_from_intoLukas Wirth-2/+278
feat: Add the ability to jump from `into` to `from` definitions
2025-01-20Merge pull request #18982 from Veykril/push-lstmvzsowxytLukas Wirth-7/+15
Extract variable assist triggers less eagerly
2025-01-20Rollup merge of #135762 - TomFryersMidsummer:patch-1, r=joboet许杰友 Jieyou Xu (Joe)-2/+2
Correct counting to four in cell module docs It could also be argued that `OnceCell<T>` and `LazyCell<T>` don't really provide safe interior mutability in different ways. But it's a vague enough claim that I'm not sure it's worth being pedantic about.
2025-01-20Rollup merge of #135676 - yotamofek:resolve-cleanups, r=BoxyUwU许杰友 Jieyou Xu (Joe)-24/+15
rustc_resolve: use structured fields in traces I think this crate was written before `tracing` was adopted, and was manually writing fields into trace logs instead of using structured fields. I kept function names in the trace messages even though I added `#[instrument]` invocations so that the events will be in named spans, wasn't sure if spans are always printed.
2025-01-20Rollup merge of #135658 - Kobzol:src-tarball-remove-gcc, r=jieyouxu许杰友 Jieyou Xu (Joe)-1/+12
Do not include GCC source code in source tarballs The licensing story is unclear, it makes the archive much larger, and we should not need it for building anything in the tarballs (yet). ``` Before: 121s building the archive 1.3 GiB gzipped size 5.7 GiB extracted size 402519 extracted files After: 64s building the archive 961 MiB gzipped size 4.5 GiB extracted size 257719 extracfed files ``` Fixes: https://github.com/rust-lang/rust/issues/135606 r? `@ehuss`
2025-01-20Rollup merge of #135626 - clubby789:env-note, r=ibraheemdev许杰友 Jieyou Xu (Joe)-0/+8
doc: Point to methods on `Command` as alternatives to `set/remove_var` Make these methods more discoverable, as configuring a child process is a common reason for manipulating the environment.
2025-01-20Rollup merge of #135433 - tanvincible:patch-1, r=onur-ozkan许杰友 Jieyou Xu (Joe)-4/+7
Add Profile Override for Non-Git Sources ## PR description - Fixes #135358 This PR introduces the following updates to 1. `bootstrap.py`: - If the `profile` is `None` and the source is non-git, the `profile` is automatically overridden to `"dist"`. - Ensures that options like `download-ci-llvm` and `download-rustc` are not used with non-git sources. An exception is raised if these options are present in the configuration when the source is non-git. 2. `bootstrap_test.py` - Added unit tests to verify both the profile override mechanism and the assertion for restricted options. These tests ensure the correct behavior for non-git sources and the handling of `if-unchanged` options. r? `@onur-ozkan` `@rustbot` T-bootstrap
2025-01-20Merge pull request #18972 from ↵Lukas Wirth-12/+42
osiewicz/drop-outgoing-messages-on-background-thread lsp-server: Drop outgoing messages on background thread
2025-01-20Merge pull request #18976 from ChayimFriedman2/non-module-generic-argsLukas Wirth-29/+81
fix: Fix a bug where enum variants were not considered properly in type ns resolution
2025-01-20Fix import search not discarding rawnessLukas Wirth-29/+65
2025-01-20Less allocsLukas Wirth-19/+30
2025-01-20Preserve impl assoc names in ImplDataLukas Wirth-89/+78
2025-01-20Vec -> Box<[_]>Lukas Wirth-9/+6
2025-01-20Properly record meaningful imports as re-exports in symbol indexLukas Wirth-143/+213
2025-01-20Add a test case1hakusai1-0/+24
2025-01-20Use Semantics::resolve_method_call_as_callable to find implementation1hakusai1-59/+89
2025-01-20Auto merge of #135754 - jieyouxu:rollup-j4q1hpr, r=jieyouxubors-138/+367
Rollup of 7 pull requests Successful merges: - #135542 (Add the concrete syntax for precise capturing to 1.82 release notes.) - #135700 (Emit single privacy error for struct literal with multiple private fields and add test for `default_field_values` privacy) - #135722 (make it possible to use ci-rustc on tarball sources) - #135729 (Add debug assertions to compiler profile) - #135736 (rustdoc: Fix flaky doctest test) - #135738 (Replace usages of `map_or(bool, ...)` with `is_{some_and|none_or|ok_and}`) - #135747 (Rename FileName::QuoteExpansion to CfgSpec) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-20Correct counting to four in cell module docsTom Fryers-2/+2
2025-01-20Merge pull request #18981 from Fabian-Gruenbichler/proc-macro-srv-portabilityLaurențiu Nicola-3/+10
proc-macro-srv: make usage of RTLD_DEEPBIND portable
2025-01-20Merge pull request #18980 from lnicola/sync-from-rustLaurențiu Nicola-18578/+31797
minor: Sync from downstream
2025-01-20proc-macro-srv: make usage of RTLD_DEEPBIND portableFabian Grünbichler-3/+10
the constant is wrong on some platforms (e.g., on mips64el it's 0x10, and 0x8 is RTLD_NOLOAD which makes all this functionality broken), the libc crate takes care of those differences for us. fallback to not setting the flag in non-glibc environments - some of them might have support for it using a different value that we don't know about, and some of them lack it entirely. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2025-01-20Bump rustc cratesLaurențiu Nicola-17/+17
2025-01-20Merge from rust-lang/rustLaurențiu Nicola-18560/+31779
2025-01-20Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-01-20Auto merge of #135755 - jieyouxu:rollup-rdwbhod, r=jieyouxubors-901/+822
Rollup of 5 pull requests Successful merges: - #134276 (fully de-stabilize all custom inner attributes) - #135237 (Match Ergonomics 2024: document and reorganize the currently-implemented feature gates) - #135310 (Always force non-trimming of path in `unreachable_patterns` lint) - #135446 (further improve panic_immediate_abort by removing rtprintpanic! messages) - #135491 (Remove dead rustc_allowed_through_unstable_modules for std::os::fd contents) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-20rustc_resolve: use structured fields in tracesYotam Ofek-24/+15