about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-09-23fix broken links (#2063)Max Heller-2/+2
2024-09-23Revert "internal: Disable GitHub releases for now"Laurențiu Nicola-6/+6
2024-09-23Add advice about submitting potentially hard-to-review PRs (#2036)许杰友 Jieyou Xu (Joe)-0/+34
2024-09-23update miri testjoboet-1/+1
2024-09-23miri: shim `CCRandomGenerateBytes`joboet-0/+17
2024-09-23Disable GitHub releases for nowLaurențiu Nicola-6/+6
2024-09-23check if the LLVM submodule is fetched in `is_ci_llvm_modified`onur-ozkan-3/+11
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-23Edit a sentence for clarity (#2071)joculatrix-2/+2
2024-09-23Fix the testKirill Bulatov-1/+1
2024-09-23Less clonesKirill Bulatov-5/+5
2024-09-23Resolve completion itemsKirill Bulatov-11/+42
2024-09-23Omit completion fields to be resolved laterKirill Bulatov-62/+99
2024-09-23Prepare for omittiong parts of completion data that need to be resolvedKirill Bulatov-16/+99
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-905/+743
2024-09-22Bump stage0Michael Goulet-450/+450
2024-09-23Fix a bug in span map merge, and add explanations of how span maps are storedChayim Refael Friedman-5/+33
Because it took me hours to figure out that contrary to common sense, the offset stored is the *end* of the node, and we search by the *start*. Which is why we need a convoluted `partition_point()` instead of a simple `binary_search()`. And this was not documented at all. Which made me make mistakes with my implementation of `SpanMap::merge()`. The other bug fixed about span map merging is correctly keeping track of the current offset in presence of multiple sibling macro invocations. Unrelated, but because of the previous issue it took me hours to debug, so I figured out I'll put them together for posterity.
2024-09-22Auto merge of #130710 - GuillaumeGomez:rollup-mfuha68, r=GuillaumeGomezbors-0/+12
Rollup of 5 pull requests Successful merges: - #130658 (Fix docs of compare_bytes) - #130670 (delay uncapping the max_read_size in File::read_to_end) - #130690 (interpret: remove outdated FIXME) - #130692 (make unstable Result::flatten a const fn) - #130702 (Add some missing unstable book tracking issue links) r? `@ghost` `@rustbot` modify labels: rollup
2024-09-22FormattingPhilipp Krones-1/+1
2024-09-22Auto merge of #130709 - RalfJung:miri-sync, r=RalfJungbors-2149/+2200
Miri subtree update r? `@ghost`
2024-09-22Auto merge of #3852 - tiif:rwrefactor, r=RalfJungbors-153/+249
Refactor fd read/write This PR passed the responsibility of reading to user supplied buffer and dest place to each implementation of ``FileDescription::read/write/pread/pwrite``. This is part of #3665.
2024-09-22simplify eventfd handling a bitRalf Jung-49/+30
2024-09-22remove some unnecessary to_ownedRalf Jung-9/+9
2024-09-22read, write: move cast-to-usize logic up and deduplicate itRalf Jung-4/+6
2024-09-22further tweak FileDescription commentsRalf Jung-17/+12
2024-09-22Pass pointer and len to FileDescription::write and change the type of len in ↵tiif-47/+60
read to usize
2024-09-22Use &[u8] instead of Vec<u8> and improve docstiif-13/+25
2024-09-22Add some missing tracking issue linksclubby789-0/+12
2024-09-22Consider lifetime GATs object unsafeChayim Refael Friedman-1/+14
2024-09-22try to give the CI job permission to create PRsRalf Jung-0/+3
2024-09-22rustfmt: switch over to setting style_editionRalf Jung-1/+1
2024-09-22Merge from rustcRalf Jung-11/+13
2024-09-22Preparing for merge from rustcRalf Jung-1/+1
2024-09-21Rollup merge of #130664 - GuillaumeGomez:generate-line-numbers-on-non-rust, ↵Jubilee-12/+14
r=notriddle Generate line numbers for non-rust code examples as well Currently, the "enable line numbers" setting only generated it for rust code examples. Found this limitation a bit strange so I decided to remove it. You can test it [here](https://rustdoc.crud.net/imperio/generate-line-number-non-rust/doc/lib2/sub_mod/struct.Foo.html). r? ``@notriddle``
2024-09-21Rollup merge of #130648 - onur-ozkan:enzyme-linking, r=KobzolJubilee-6/+4
move enzyme flags from general cargo to rustc-specific cargo Resolves #130637.
2024-09-22Include dereferences in consuming postfix completions (e.g. `call`)Chayim Refael Friedman-0/+31
2024-09-22Properly account for mutable references when postfix-completing consuming ↵Chayim Refael Friedman-1/+21
completions (e.g. `call`)
2024-09-22Fix name resolution when an import is resolved to some namespace and then ↵Chayim Refael Friedman-13/+82
later in the algorithm another namespace is added The import is flagged as "indeterminate", and previously it was re-resolved, but only at the end of name resolution, when it's already too late for anything that depends on it. This issue was tried to fix in https://github.com/rust-lang/rust-analyzer/pull/2466, but it was not fixed fully.
2024-09-22Generate line numbers for non-rust code examples as wellGuillaume Gomez-7/+9
2024-09-22Strip last backline from non-rust code examplesGuillaume Gomez-5/+5
2024-09-21Rollup merge of #130651 - qwertynerd97:patch-1, r=KobzolMichael Goulet-1/+1
Add --enable-profiler to armhf dist Adds the --enable-profiler flag to the RUST_CONFIGURE_ARGS for armhf distribution for Linux. This enables running coverage for tests in builds for this target try-job: dist-armhf-linux
2024-09-21Rollup merge of #127766 - folkertdev:c-cmse-nonsecure-entry, r=jackh726Michael Goulet-5/+9
add `extern "C-cmse-nonsecure-entry" fn` tracking issue #75835 in https://github.com/rust-lang/rust/issues/75835#issuecomment-1183517255 it was decided that using an abi, rather than an attribute, was the right way to go for this feature. This PR adds that ABI and removes the `#[cmse_nonsecure_entry]` attribute. All relevant tests have been updated, some are now obsolete and have been removed. Error 0775 is no longer generated. It contains the list of targets that support the CMSE feature, and maybe we want to still use this? right now a generic "this abi is not supported on this platform" error is returned when this abi is used on an unsupported platform. On the other hand, users of this abi are likely to be experienced rust users, so maybe the generic error is good enough.
2024-09-21Auto merge of #127546 - workingjubilee:5-level-paging-exists, r=saethlinbors-4/+2
Correct outdated object size limit The comment here about 48 bit addresses being enough was written in 2016 but was made incorrect in 2019 by 5-level paging, and then persisted for another 5 years before being noticed and corrected. The bolding of the "exclusive" part is merely to call attention to something I missed when reading it and doublechecking the math. try-job: i686-msvc try-job: test-various
2024-09-21Auto merge of #129283 - saethlin:unreachable-allocas, r=scottmcmbors-1/+1
Don't alloca for unused locals We already have a concept of mono-unreachable basic blocks; this is primarily useful for ensuring that we do not compile code under an `if false`. But since we never gave locals the same analysis, a large local only used under an `if false` will still have stack space allocated for it. There are 3 places we traverse MIR during monomorphization: Inside the collector, `non_ssa_locals`, and the walk to generate code. Unfortunately, https://github.com/rust-lang/rust/pull/129283#issuecomment-2297925578 indicates that we cannot afford the expense of tracking reachable locals during the collector's traversal, so we do need at least two mono-reachable traversals. And of course caching is of no help here because the benchmarks that regress are incr-unchanged; they don't do any codegen. This fixes the second problem in https://github.com/rust-lang/rust/issues/129282, and brings us anther step toward `const if` at home.
2024-09-21remove `#[cmse_nonsecure_entry]`Folkert-5/+4
2024-09-21add `C-cmse-nonsecure-entry` ABIFolkert de Vries-0/+5
2024-09-21Add an option of using nix-shell instead of nix flakeMaybe Lapkin-0/+34
2024-09-21Remove x86_64-fuchsia and aarch64-fuchsia target aliasesArtyom Tetyukhin-2/+0
2024-09-21fmt (with a huge diff for some reason)Ralf Jung-205/+180
2024-09-21Merge from rustcRalf Jung-4099/+7524
2024-09-21Preparing for merge from rustcRalf Jung-1/+1