about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-08-07Auto merge of #3747 - RalfJung:sse-cleanup, r=RalfJungbors-77/+11
remove some SSE/SSE2 intrinsics that are no longer used by stdarch Fixes https://github.com/rust-lang/miri/issues/3691
2024-08-07remove some SSE/SSE2 intrinsics that are no longer used by stdarchRalf Jung-77/+11
2024-08-07Stabilize `unsafe_attributes`carbotaniuman-1/+0
2024-08-07Auto merge of #17813 - roife:fix-issue-17803, r=Veykrilbors-2/+32
fix: tyck for non-ADT types when searching refs for `Self` kw See https://github.com/rust-lang/rust-analyzer/pull/15864/files/e0276dc5ddc38c65240edb408522bb869f15afb4#r1389848845 For ADTs, to handle `{error}` in generic args, we should to convert them to ADT for comparisons; for others, we can directly compare the types.
2024-08-07Auto merge of #128768 - tgross35:rollup-aaq1ny7, r=tgross35bors-9/+34
Rollup of 7 pull requests Successful merges: - #128107 (Migrate `raw-dylib-alt-calling-convention`, `raw-dylib-c` and `redundant-libs` `run-make` tests to rmake) - #128362 (add test for symbol visibility of `#[naked]` functions) - #128417 (Add `f16` and `f128` math functions) - #128638 (run-make: enable msvc for `link-dedup`) - #128647 (Enable msvc for link-args-order) - #128649 (run-make: Enable msvc for `no-duplicate-libs` and `zero-extend-abi-param-passing`) - #128766 (Trivial grammar fix in const keyword docs) r? `@ghost` `@rustbot` modify labels: rollup
2024-08-07Merge from rustcThe Miri Cronjob Bot-119/+138
2024-08-07Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-08-07Auto merge of #128763 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 3 commits in fa646583675d7c140482bd906145c71b7fb4fc2b..94977cb1fab003d45eb5bb108cb5e2fa0149672a 2024-08-02 16:08:06 +0000 to 2024-08-06 21:42:10 +0000 - Don't specify the depedency name in the `cargo add` inferred name test (rust-lang/cargo#14357) - Fix renamed disallowed cfg lint name (rust-lang/cargo#14352) - fix(build-std): remove hack on creating virtual std workspace (rust-lang/cargo#14358) r? ghost
2024-08-06Rollup merge of #128649 - ChrisDenton:param-passing, r=jieyouxuTrevor Gross-6/+34
run-make: Enable msvc for `no-duplicate-libs` and `zero-extend-abi-param-passing` The common thing between these two tests is to use `#[link(..., kind="static")]` so that it doesn't try to do a DLL import. `zero-extend-abi-param-passing` also needs to have an optimized static library but there's only helper function for a non-optimized version. Rather than copy/pasting the code (and adding the optimization flag) I reused the same code so that it more easily be kept in sync. try-job: i686-msvc try-job: x86_64-msvc
2024-08-06Rollup merge of #128107 - Oneirical:tomato-hartester, r=jieyouxuTrevor Gross-3/+0
Migrate `raw-dylib-alt-calling-convention`, `raw-dylib-c` and `redundant-libs` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Please try: // try-job: x86_64-msvc // try-job: x86_64-mingw // try-job: i686-msvc try-job: x86_64-gnu-llvm-17 try-job: aarch64-apple
2024-08-06Update cargoWeihang Lo-0/+0
2024-08-07Allow rust-project.json to be hiddenAli Bektas-2/+14
2024-08-07Auto merge of #128761 - matthiaskrgr:rollup-5p1mlqq, r=matthiaskrgrbors-100/+85
Rollup of 9 pull requests Successful merges: - #124944 (On trait bound mismatch, detect multiple crate versions in dep tree) - #125048 (PinCoerceUnsized trait into core) - #128406 (implement BufReader::peek) - #128539 (Forbid unused unsafe in vxworks-specific std modules) - #128687 (interpret: refactor function call handling to be better-abstracted) - #128692 (Add a triagebot mention for `library/Cargo.lock`) - #128710 (Don't ICE when getting an input file name's stem fails) - #128718 (Consider `cfg_attr` checked by `CheckAttrVisitor`) - #128751 (std::thread: set_name implementation proposal for vxWorks.) r? `@ghost` `@rustbot` modify labels: rollup
2024-08-07Rollup merge of #128687 - RalfJung:interpret-call-refactor, r=WaffleLapkinMatthias Krüger-100/+85
interpret: refactor function call handling to be better-abstracted Add a new function `init_stack_frame` that pushes a stack frame and passes the arguments, and use that basically everywhere that the raw underlying `push_stack_frame` used to be called. This splits the previous monster function `eval_fn_call` into two parts: figuring out the MIR to call and the arguments to pass, and then actually setting up the stack frame. Also re-organize the files a bit: - The previous `terminator.rs` is split into a new `call.rs` with all the argument-passing logic, and the rest goes into `step.rs` where the other main dispatcher functions already live (in particular, `eval_statement`). - All the stack frame handling from `eval_context.rs` is moved to a new `stack.rs`.
2024-08-06rewrite pgo-gen-lto to rmakeOneirical-1/+0
2024-08-06Rollup merge of #128720 - y21:issue119620, r=compiler-errorsMatthias Krüger-14/+31
Pass the right `ParamEnv` to `might_permit_raw_init_strict` Fixes #119620 `might_permit_raw_init_strict` currently passes an empty `ParamEnv` to the `InterpCx`, instead of the actual `ParamEnv` that was passed in to `check_validity_requirement` at callsite. This leads to ICEs such as the linked issue where for `UnsafeCell<*mut T>` we initially get the layout with the right `ParamEnv` (which suceeds because it can prove that `T: Sized` and therefore `UnsafeCell<*mut T>` has a known layout) but then do the rest with an empty `ParamEnv` where `T: Sized` is not known to hold so getting the layout for `*mut T` later fails. This runs into an assertion in other layout code where it's making the (valid) assumption that, when we already have a layout for a struct (`UnsafeCell<*mut T>`), getting the layout of one of its fields (`*mut T`) should also succeed, which wasn't the case here due to using the wrong `ParamEnv`. So, this PR changes it to just use the same `ParamEnv` all the way throughout.
2024-08-06miri: make vtable addresses not globally uniqueRalf Jung-7/+57
2024-08-06rewrite long-linker-command-lines-cmd-exe to rmakeOneirical-1/+0
2024-08-06rewrite long-linker-command-lines to rmakeOneirical-1/+0
2024-08-06rewrite cross-lang-lto-upstream-rlibs to rmakeOneirical-1/+0
2024-08-06rewrite staticlib-dylib-linkage to rmakeOneirical-1/+0
2024-08-06fix: tyck for non-ADT types when searching refs for `Self` kwroife-2/+32
2024-08-06Include vendored crates in StaticIndexNicolas Guichard-24/+54
StaticIndex::compute filters out modules from libraries. This makes an exceptions for vendored libraries, ie libraries actually defined inside the workspace being indexed. This aims to solve https://bugzilla.mozilla.org/show_bug.cgi?id=1846041 In general StaticIndex is meant for code browsers, which likely want to index all visible source files.
2024-08-06Auto merge of #128245 - Oneirical:total-linkage-ownage, r=jieyouxubors-5/+22
Migrate `cdylib-dylib-linkage` `run-make` test to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). ~~Those sysroot tests are always fun. I'm getting local errors that don't make a lot of sense about my own sysroot not existing, so I am trying this in CI to see what happens.~~ ~~EDIT: I am getting the same error here. The strange thing is, when I try to navigate to `/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib` on my personal computer, the directory does exist, but the error message is that the directory does not.~~ EDIT 2: The sysroot path just needed to be trimmed! Please try: // try-job: x86_64-msvc // passed previously try-job: x86_64-mingw try-job: x86_64-gnu-llvm-18 try-job: i686-msvc try-job: aarch64-apple
2024-08-06Apparently library/std is now part of a workspace at library/Jonathan Pallant-1/+1
2024-08-06Update to rinja 0.3Jonathan Pallant-1/+1
2024-08-06generate-copyright: gather files inside interesting foldersJonathan Pallant-17/+33
2024-08-06generate-copyright: Render Node with rinja too.Jonathan Pallant-73/+73
2024-08-06generate-copyright: use rinja to format the outputJonathan Pallant-152/+146
I can't find a way to derive rinja::Template for Node - I think because it is a recursive type. So I rendered it manually using html_escape.
2024-08-06generate-copyright: use cargo-metadataJonathan Pallant-62/+19
2024-08-06generate-copyright: Fix typoJonathan Pallant-1/+1
2024-08-06generate-copyright: Produce HTML, not MarkdownJonathan Pallant-102/+151
This format works better with large amounts of structured data. We also mark which deps are in the stdlib
2024-08-06Update generate-copyrightJonathan Pallant-12/+316
This tool now scans for cargo dependencies and includes any important looking license files. We do this because cargo package metadata is not sufficient - the Apache-2.0 license says you have to include any NOTICE file, for example. And authors != copyright holders (cargo has the former, we must include the latter).
2024-08-06make some Frame fields more privateRalf Jung-17/+13
2024-08-06interpret: refactor function call handling to be better-abstractedRalf Jung-83/+72
2024-08-06Auto merge of #3792 - RalfJung:test-typo, r=RalfJungbors-39/+157
add and fix return-place-protection tests
2024-08-06add return-place-protection tail-call test, and fix previous testRalf Jung-39/+157
2024-08-06Auto merge of #17745 - regexident:improve-crate-manifests, r=Veykrilbors-38/+70
Improve crate manifests, adding missing `[package.repository]` and `[package.description]` fields As [discussed on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/Could.20we.20add.20repository.20url.20to.20.60ra_ap_.60.20crates.20on.20crates.2Eio.3F/near/455095161). cc `@Veykril` `@lnicola`
2024-08-06Auto merge of #17805 - ShoyuVanilla:issue-17578, r=Veykrilbors-5/+46
fix: Panic in path transform with default type parameters Fixes #17578
2024-08-06Merge from rustcThe Miri Cronjob Bot-56/+30
2024-08-06Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-08-06pass the right `ParamEnv` to `might_permit_raw_init_strict`y21-14/+31
2024-08-05Auto merge of #128707 - matthiaskrgr:rollup-63klywk, r=matthiaskrgrbors-1/+2
Rollup of 5 pull requests Successful merges: - #122049 (Promote riscv64gc-unknown-linux-musl to tier 2) - #128580 (Use `ParamEnv::reveal_all` in CFI) - #128688 (custom MIR: add support for tail calls) - #128694 (Normalize when equating `dyn` tails in MIR borrowck) - #128697 (interpret: move nullary-op evaluation into operator.rs) r? `@ghost` `@rustbot` modify labels: rollup
2024-08-06Replace `[package.repository] = "…"` of published crates with ↵Vincent Esche-34/+35
`[package.repository.workspace] = true`
2024-08-06Unify package descriptions by adding references to "rust-analyzer"Vincent Esche-12/+12
With the lack of a README on the individually published library crates and the somewhat cryptic `ra_ap_` prefix it is hard to figure out where those crates belong to, so mentioning "rust-analyzer" feels like auseful hint there.
2024-08-06Apply Veykril's change suggestionsVincent Esche-4/+4
2024-08-06Replace "`ra_ap_ide`" with "`ide` (aka `ra_ap_ide`)"Vincent Esche-1/+1
2024-08-06Fix spelling of "data structure"Vincent Esche-2/+2
2024-08-06Fix spelling of "object-oriented"Vincent Esche-2/+2
2024-08-06Fix obsolete repository URL in `[package.repository]` of `rust-analyzer` crateVincent Esche-1/+1