about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2023-11-16bootstrap: only show PGO warnings when verboseJosh Stone-1/+3
Building rustc with `--rust-profile-use` is currently dumping a lot of warnings of "no profile data available for function" from `rustc_smir` and `stable_mir`. These simply aren't exercised by the current profile- gathering steps, but that's to be expected for new or experimental functionality. I think for most people, these warnings will be just noise, so it makes sense to only have them in verbose builds.
2023-11-16Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyupPhilipp Krones-1/+1
2023-11-16Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyupPhilipp Krones-10369/+10338
2023-11-16Auto merge of #3166 - devnexen:reallocarray, r=RalfJungbors-1/+48
reallocarray shim linux/freebsd support proposal.
2023-11-16reallocarray shim linux/freebsd support proposal.David Carlier-1/+48
2023-11-16Auto merge of #117875 - Mark-Simulacrum:bootstrap-bump, r=clubby789bors-635/+671
Bootstrap bump Bumps bootstrap compiler to just-released beta. https://forge.rust-lang.org/release/process.html#master-bootstrap-update-t-2-day-tuesday
2023-11-16Auto merge of #117955 - notriddle:master, r=GuillaumeGomezbors-61/+10
rustdoc-search: simplify the checkTypes fast path This reduces code size while still matching the common case for plain, concrete types. This should not introduce any user-visible behavior changes. The perf impact of the change was evaluated using <https://gitlab.com/notriddle/rustdoc-js-profile>. The output of the tool can be found here: http://notriddle.com/rustdoc-html-demo-5/profile-1/index.html r? `@GuillaumeGomez`
2023-11-16Auto merge of #3168 - RalfJung:set_var, r=RalfJungbors-5/+5
get rid of our last uses of set_var Fixes https://github.com/rust-lang/miri/issues/2783
2023-11-16get rid of our last uses of set_varRalf Jung-5/+5
2023-11-16Merge from rustcRalf Jung-41/+65
2023-11-16Preparing for merge from rustcRalf Jung-1/+1
2023-11-16Update cargoWeihang Lo-0/+0
2023-11-16Add test suggestions for `mir-opt` and `coverage`Zalathar-0/+11
2023-11-16Support multiple globs in static suggestionsZalathar-13/+15
2023-11-16Allow trailing commas in static suggestionsZalathar-5/+5
2023-11-15Re-format code with new rustfmtMark Rousskov-232/+295
2023-11-15Bump cfg(bootstrap)sMark Rousskov-29/+10
2023-11-15Bump stage0 to latestMark Rousskov-374/+366
2023-11-15rustdoc-search: simplify the checkTypes fast pathMichael Howell-61/+10
This reduces code size while still matching the common case for plain, concrete types.
2023-11-15Auto merge of #3164 - devnexen:fbsd_upd3, r=RalfJungbors-2/+20
freebsd adding getrandom interception. note that os support was added in same time as getentropy.
2023-11-15freebsd adding getrandom interception.David Carlier-2/+20
note that os support was added in same time as getentropy.
2023-11-15Auto merge of #116555 - paulmenage:llvm-module-flag, r=wesleywiserbors-0/+12
Add -Z llvm_module_flag Allow adding values to the `!llvm.module.flags` metadata for a generated module. The syntax is `-Z llvm_module_flag=<name>:<type>:<value>:<behavior>` Currently only u32 values are supported but the type is required to be specified for forward compatibility. The `behavior` element must match one of the named LLVM metadata behaviors.viors. This flag is expected to be perma-unstable.
2023-11-15Auto merge of #117908 - lcnr:region-kind-rename, r=BoxyUwUbors-10/+10
finish `RegionKind` renaming second step of https://github.com/rust-lang/types-team/issues/95 continues the work from #117876. While working on this and I encountered a bunch of further cleanup which I'll either open a tracking issue for or will do in a separate PR: - rewrite the `RegionKind` docs, they still talk about `ReEmpty` and are generally out of date - rename `DescriptionCtx` to `DescriptionCtxt` - what is `CheckRegions::Bound`? - `collect_late_bound_regions` et al - `erase_late_bound_regions` -> `instantiate_bound_regions_with_erased`? - `EraseEarlyRegions` visitor should be removed, feels duplicate r? `@BoxyUwU`
2023-11-15Add arm64e-apple-darwin targetArtyom Tetyukhin-0/+39
2023-11-15Add arm64e-apple-ios targetArtyom Tetyukhin-0/+40
2023-11-15Auto merge of #117814 - RalfJung:rustc-logger-without-set-var, r=TaKO8Kibors-31/+43
rustc_log: provide a way to init logging based on the values, not names, of the env vars Miri wants to affect how rustc does logging. So far this required setting environment variables before calling `rustc_driver::init_rustc_env_logger`. However, `set_var` is a function one should really [avoid calling](https://github.com/rust-lang/rust/issues/90308), so this adds the necessary APIs to rustc such that Miri can just pass it the *values* of all the log-relevant environment variables, rather than having to change the global environment.
2023-11-15Merge from rustcThe Miri Conjob Bot-2685/+15959
2023-11-15Preparing for merge from rustcThe Miri Conjob Bot-1/+1
2023-11-14Auto merge of #117915 - matthiaskrgr:rollup-ztljqrr, r=matthiaskrgrbors-1/+1
Rollup of 5 pull requests Successful merges: - #116244 (Apply structured suggestion that allows test to work since 1.64) - #117686 (Build pre-coroutine-transform coroutine body on error) - #117834 (target_feature: make it more clear what that 'Option' means) - #117893 (Suggest dereferencing the LHS for binops such as `&T == T`) - #117911 (Fix some typos) r? `@ghost` `@rustbot` modify labels: rollup
2023-11-14Rollup merge of #116244 - estebank:issue-73497, r=b-naberMatthias Krüger-1/+1
Apply structured suggestion that allows test to work since 1.64 Close #73497.
2023-11-14Auto merge of #117907 - nikic:update-llvm-17, r=cuviperbors-0/+0
Update to LLVM 17.0.5 Fixes https://github.com/rust-lang/rust/issues/116177. Fixes the compile-time issue reported at https://internals.rust-lang.org/t/significant-increase-in-fat-lto-time-post-update-to-rustc-1-75-0-nightly/19765. r? `@cuviper`
2023-11-14Auto merge of #117701 - lnicola:sync-from-ra, r=onur-ozkan,HKalbasibors-2066/+14906
Subtree update of `rust-analyzer` r? `@HKalbasi`
2023-11-14Depend on rustc_driverLaurențiu Nicola-0/+4
2023-11-14Auto merge of #117849 - compiler-errors:cycle, r=cjgillotbors-1/+1
make `LayoutError::Cycle` carry `ErrorGuaranteed` Addresses a FIXME, and also I think it's wise for error variants to carry their `ErrorGuaranteed` -- makes it easier to use that `ErrorGuaranteed` for creating, e.g. `TyKind::Error` and other error kinds. Splitting out from #117703.
2023-11-14finish `RegionKind` renamelcnr-10/+10
- `ReFree` -> `ReLateParam` - `ReEarlyBound` -> `ReEarlyParam`
2023-11-14Update to LLVM 17.0.5Nikita Popov-0/+0
2023-11-14Auto merge of #117330 - tmiasko:custom-mir-cleanup-blocks, r=cjgillotbors-31/+31
Custom MIR: Support cleanup blocks Cleanup blocks are declared with `bb (cleanup) = { ... }`. `Call` and `Drop` terminators take an additional argument describing the unwind action, which is one of the following: * `UnwindContinue()` * `UnwindUnreachable()` * `UnwindTerminate(reason)`, where reason is `ReasonAbi` or `ReasonInCleanup` * `UnwindCleanup(block)` Also support unwind resume and unwind terminate terminators: * `UnwindResume()` * `UnwindTerminate(reason)`
2023-11-14Custom MIR: Support cleanup blocksTomasz Miąsko-31/+31
Cleanup blocks are declared with `bb (cleanup) = { ... }`. `Call` and `Drop` terminators take an additional argument describing the unwind action, which is one of the following: * `UnwindContinue()` * `UnwindUnreachable()` * `UnwindTerminate(reason)`, where reason is `ReasonAbi` or `ReasonInCleanup` * `UnwindCleanup(block)` Also support unwind resume and unwind terminate terminators: * `UnwindResume()` * `UnwindTerminate(reason)`
2023-11-13doc: add release notes to standalone doc bundleMichael Howell-9/+113
This is a workaround for #101714 on top of being a useful addition in its own right. It is intended to change the "canonical URL" for viewing the release notes from GitHub, which is relatively slow, to a pre-rendered HTML file that loads from the same CDN as the standard library docs. It also means you get a copy of the release notes when installing the rust-docs with rustup.
2023-11-13don't expose all the borrow tracker stuff to the entire crateRalf Jung-41/+47
2023-11-13Add missing rustc_private featuresLaurențiu Nicola-1/+8
2023-11-13Try Mode::ToolRustcLaurențiu Nicola-6/+6
2023-11-13share getentropy shim across various unixesRalf Jung-36/+48
2023-11-13Auto merge of #117881 - TaKO8Ki:rollup-n7jtmgj, r=TaKO8Kibors-4/+1
Rollup of 5 pull requests Successful merges: - #117737 (Remove `-Zkeep-hygiene-data`.) - #117830 (Small improvements in object lifetime default code) - #117858 (Compute layout with spans for better cycle errors in coroutines) - #117863 (Remove some unused stuff from `rustc_index`) - #117872 (Cranelift isn't available on non-nightly channels) r? `@ghost` `@rustbot` modify labels: rollup
2023-11-13organize pass-dep tests more by the crate they testRalf Jung-14/+18
2023-11-14Rollup merge of #117872 - Mark-Simulacrum:fwd-port-cranelift, r=onur-ozkanTakayuki Maeda-4/+1
Cranelift isn't available on non-nightly channels This commit already landed as part of beta branching, this PR just puts it on master.
2023-11-13update type flagslcnr-3/+3
- `HAS_RE_LATE_BOUND` -> `HAS_RE_BOUND` - `HAS_TY_LATE_BOUND` -> `HAS_TY_BOUND` - `HAS_CT_LATE_BOUND` -> `HAS_CT_BOUND` - `HAS_LATE_BOUND` -> `HAS_BOUND_VARS` - `fn has_late_bound_regions` -> `fn has_bound_regions` - `fnhas_non_region_late_bound` -> `fn has_non_region_bound_vars` - `fn has_late_bound_vars` -> `fn has_bound_vars`
2023-11-13rename `ReLateBound` to `ReBound`lcnr-14/+10
other changes: - `Region::new_late_bound` -> `Region::new_bound` - `Region::is_late_bound` -> `Region::is_bound`
2023-11-13freebsd adding getentropy interception supportDavid Carlier-1/+29
2023-11-13set CFG_OMIT_GIT_HASH=1 during builds when omit-git-hash is enabledPietro Albini-0/+7