about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-12-17ci: remove duplicate task definitionMarcoIeni-49/+41
2024-12-18Add suggestion for `--keep-stage 0` (#2164)Eric Huss-0/+6
2024-12-17ci: use ubuntu-22 for large runnersMarcoIeni-3/+3
2024-12-18refactor: replace &PathBuf with &Path to enhance generalityIntegral-15/+12
2024-12-17Fix intra doc links not generated inside footnote definitionsGuillaume Gomez-16/+50
2024-12-17Auto merge of #130766 - clarfonthey:stable-coverage-attribute, r=wesleywiserbors-31/+1
Stabilize #[coverage] attribute Closes #84605, which passed FCP. Stabilisation report here: https://github.com/rust-lang/rust/issues/84605#issuecomment-2166514660 Also added to reference here: rust-lang/reference#1628 --- try-job: aarch64-apple try-job: x86_64-gnu try-job: x86_64-msvc
2024-12-17Update to LLVM 19.1.6Nikita Popov-0/+0
2024-12-17bootstrap: use specific-purpose ui test path许杰友 Jieyou Xu (Joe)-1/+1
I wanted to move some ui tests around, which broke `test_valid` since it was referencing a non-specific-purpose ui test.
2024-12-17Rollup merge of #134409 - RalfJung:bootstrap-comment, r=jieyouxuJacob Pratt-2/+4
bootstrap: fix a comment I don't actually know if this is right, though... but "a single call to `paths` will only ever generate a single call to `paths`" just does not make sense.
2024-12-17Rollup merge of #134202 - nnethercote:rm-existing_doc_keyword, r=GuillaumeGomezJacob Pratt-1/+1
Remove `rustc::existing_doc_keyword` lint The check doesn't require a lint. r? ``@GuillaumeGomez``
2024-12-17clarify that path() is for on-disk pathsRalf Jung-1/+3
2024-12-17bootstrap: fix a commentRalf Jung-1/+1
2024-12-17Auto merge of #134302 - bjorn3:remove_driver_queries, r=oli-obk,jieyouxubors-62/+53
Remove queries from the driver interface All uses of driver queries in the public api of rustc_driver have been removed in https://github.com/rust-lang/rust/pull/134130 already. This removes driver queries from rustc_interface and does a couple of cleanups around TyCtxt construction and entering enabled by this removal. Finishes the removal of driver queries started with https://github.com/rust-lang/rust/pull/126834.
2024-12-17Remove `rustc::existing_doc_keyword` lint.Nicholas Nethercote-1/+1
`CheckAttrVisitor::check_doc_keyword` checks `#[doc(keyword = "..")]` attributes to ensure they are on an empty module, and that the value is a non-empty identifier. The `rustc::existing_doc_keyword` lint checks these attributes to ensure that the value is the name of a keyword. It's silly to have two different checking mechanisms for these attributes. This commit does the following. - Changes `check_doc_keyword` to check that the value is the name of a keyword (avoiding the need for the identifier check, which removes a dependency on `rustc_lexer`). - Removes the lint. - Updates tests accordingly. There is one hack: the `SelfTy` FIXME case used to used to be handled by disabling the lint, but now is handled with a special case in `is_doc_keyword`. That hack will go away if/when the FIXME is fixed. Co-Authored-By: Guillaume Gomez <guillaume1.gomez@gmail.com>
2024-12-16Stabilize #[coverage] attributeltdk-31/+1
2024-12-17Auto merge of #134132 - MarcoIeni:linux-4c-to-ubuntu-22, r=Kobzolbors-1/+1
CI: update linux 4c from ubuntu 20 to ubuntu 22
2024-12-16Auto merge of #134095 - Kobzol:datadog-lockfile, r=MarcoIenibors-8/+5015
[CI] Use a lockfile for installing the `datadog` package Without a lockfile, it could fail to compile when the dependencies have changed. Reported [here](https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/CI.20failure.20in.20DataDog.20upload). r? `@jdno` try-job: x86_64-msvc-ext2
2024-12-16Merge pull request #18700 from ChayimFriedman2/dyn-sendLukas Wirth-1/+18
fix: Fix a panic with a diagnostics fix when a keyword is used as a field
2024-12-16Use a record struct instead of a tuple for each namespace in `PerNs`Chayim Refael Friedman-133/+162
The reason I did this is because I plan to add another field to this struct (indicating whether the item was cfg'ed out), but it seems worthy even separately and removes a bunch of one-letter variable names and tuple-indexing. It is also easy to separate from future changes, so it will be easier to review this way.
2024-12-16Rollup merge of #134277 - notriddle:notriddle/inline-into, r=GuillaumeGomezMatthias Krüger-8/+24
rustdoc-search: handle `impl Into<X>` better This PR fixes two bugs I ran into while searching the compiler docs: - It omitted an `impl Trait` entry in the type signature field, producing `TyCtxt, , Symbol -> bool` - It didn't let me search for `TyCtxt, DefId, Symbol -> bool` even though that's a perfectly good description of the function I was looking for (the function actually used `impl Into<DefId>` r? ``@GuillaumeGomez`` cc ``@lolbinarycat``
2024-12-16Rollup merge of #134260 - GuillaumeGomez:doctest-attrs, r=notriddleMatthias Krüger-18/+42
Correctly handle comments in attributes in doctests source code Fixes https://github.com/rust-lang/rust/issues/134221. The problem was that attributes are "inlined" (backlines are stripped), then when there is an inline comment inside it, the attribute is never considered valid (since unclosed). Fix was to simply put back backlines in case it's a multiline attribute. r? ``@notriddle``
2024-12-16Rollup merge of #134124 - MarcoIeni:split-llvm-jobs, r=KobzolMatthias Krüger-44/+143
CI: use free runners for x86_64-gnu-llvm jobs try-job: x86_64-gnu-llvm-19-1 try-job: x86_64-gnu-llvm-19-2 try-job: x86_64-gnu-llvm-19-3 try-job: x86_64-gnu-llvm-18-1 try-job: x86_64-gnu-llvm-18-2 try-job: x86_64-gnu-llvm-18-3
2024-12-16rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structuresJonathan Dönszelmann-24/+27
2024-12-16split attributesJonathan Dönszelmann-7/+6
2024-12-16Fix a panic with a diagnostics fix when a keyword is used as a fieldChayim Refael Friedman-1/+18
I found it easiest to fix in the quickfix code, and not deeper (e.g. body lowering).
2024-12-16Remove unneeded handling of backlines in doctest attributesGuillaume Gomez-2/+0
2024-12-16Auto merge of #134377 - lnicola:sync-from-ra, r=lnicolabors-2118/+8734
Subtree update of `rust-analyzer` r? `@ghost`
2024-12-16Also handle cases where attributes are unclosedGuillaume Gomez-16/+40
2024-12-16fix: Fix path qualified auto-importing completions not working with re-exportsLukas Wirth-134/+221
Prior to this commit we used to generate import paths, then zipped them with the existing qualifier to check if they agree on the path to import. This is brittle when re-exports come into play causing items to have multiple applicable paths that refer to them. This commit instead rewrites this logic by generating the import path for the qualifier, verifying that the rest of the qualifier resolves and then doing a final lookup on that resolution result for the final segment instead.
2024-12-16[CI] Use a lockfile for installing the `datadog` packageJakub Beránek-8/+5015
Without a lockfile, it could fail to compile when the dependencies have changed.
2024-12-16Merge pull request #18698 from Veykril/push-vpqwrwxptsqlLukas Wirth-4/+12
internal: Don't serialize empty fields in completions and resolve payloads
2024-12-16Merge pull request #18690 from Giga-Bowser/extract-variable-stringLukas Wirth-15/+168
feat: Use string literal contents as a name when extracting into variable
2024-12-16internal: Don't serialize empty fields in completions and resolve payloadsLukas Wirth-4/+12
2024-12-16Merge pull request #18695 from roife/improve-tuple-destructionLukas Wirth-74/+74
minor: improve name suggestion for destructure_tuple_binding
2024-12-16Merge pull request #18696 from ChayimFriedman2/syn-synLukas Wirth-63/+110
feat: Report unresolved idents for implicit captures in `format_args!()`
2024-12-16Merge pull request #18697 from Veykril/push-qtmmtvpyrntrLukas Wirth-30/+9
internal: Simplify ratoml testdir usage
2024-12-16internal: Simplify ratoml testdir usageLukas Wirth-30/+9
2024-12-16try fix hir-attrs perfJonathan Dönszelmann-1/+1
2024-12-16Report unresolved idents for implicit captures in `format_args!()`Chayim Refael Friedman-63/+110
And also a bit of cleanup by storing the capture's span with the open quote included.
2024-12-16specify what a CGU is (#2163)Connor Tsui-9/+8
2024-12-16refactor: simplify `edit_tuple_usages` in destructure_tuple_bindingroife-46/+30
2024-12-15Auto merge of #131808 - jdonszelmann:hir-attributes, r=oli-obk,petrochenkovbors-149/+142
Hir attributes This PR needs some explanation, it's somewhat large. - This is step one as described in https://github.com/rust-lang/compiler-team/issues/796. I've added a new `hir::Attribute` which is a lowered version of `ast::Attribute`. Right now, this has few concrete effects, however every place that after this PR parses a `hir::Attribute` should later get a pre-parsed attribute as described in https://github.com/rust-lang/compiler-team/issues/796 and transitively https://github.com/rust-lang/rust/issues/131229. - an extension trait `AttributeExt` is added, which is implemented for both `ast::Attribute` and `hir::Atribute`. This makes `hir::Attributes` mostly compatible with code that used to parse `ast::Attribute`. All its methods are also added as inherent methods to avoid having to import the trait everywhere in the compiler. - Incremental can not not hash `ast::Attribute` at all.
2024-12-15Merge pull request #18693 from Veykril/push-wzoomkkmuolmLaurențiu Nicola-6/+3
fix: Fix proc-macro dylib names on windows
2024-12-15Add hir::AttributeJonathan Dönszelmann-149/+142
2024-12-16Rollup merge of #134331 - RalfJung:bootstrap-error-index, r=onur-ozkan许杰友 Jieyou Xu (Joe)-1/+3
bootstrap: make ./x test error-index work This makes it more likely that someone who sees an error index CI failure will be able to figure out how to reproduce that locally. Note that bootstrap already prints "Testing stage2 error-index", which is misleading since the test is actually called error_index_generator.
2024-12-16Rollup merge of #134111 - jyn514:run-make-nocapture, r=jieyouxu许杰友 Jieyou Xu (Joe)-56/+68
Fix `--nocapture` for run-make tests This was confusing because there are three layers of output hiding. 1. libtest shoves all output into a buffer and does not print it unless the test fails or `--nocapture` is passed. 2. compiletest chooses whether to print the output from any given process. 3. run-make-support chooses what output to print. This modifies 2 and 3. - compiletest: Don't require both `--verbose` and `--nocapture` to show the output of run-make tests. - compiletest: Print the output from `rmake` processes if they succeed. Previously this was only printed on failure. - compiletest: Distinguish rustc and rmake stderr by printing the command name (e.g. "--stderr--" to "--rustc stderr--"). - run-make-support: Unconditionally print the needle/haystack being searched. Previously this was only printed on failure. Before: ``` $ x t tests/run-make/linker-warning --force-rerun -- --nocapture running 1 tests . test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 377 filtered out; finished in 281.64ms $ x t tests/run-make/linker-warning --force-rerun -v -- --nocapture 2>&1 | wc -l 1004 $ x t tests/run-make/linker-warning --force-rerun -v -- --nocapture | tail -n40 running 1 tests ------stdout------------------------------ ------stderr------------------------------ warning: unused import: `std::path::Path` --> /home/jyn/src/rust2/tests/run-make/linker-warning/rmake.rs:1:5 | 1 | use std::path::Path; | ^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused import: `run_make_support::rfs::remove_file` --> /home/jyn/src/rust2/tests/run-make/linker-warning/rmake.rs:3:5 | 3 | use run_make_support::rfs::remove_file; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: 2 warnings emitted ------------------------------------------ test [run-make] tests/run-make/linker-warning ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 377 filtered out; finished in 285.89ms ``` After: ``` Testing stage1 compiletest suite=run-make mode=run-make (x86_64-unknown-linux-gnu) running 1 tests ------rmake stdout------------------------------ ------rmake stderr------------------------------ assert_contains_regex: === HAYSTACK === error: linking with `./fake-linker` failed: exit status: 1 | = note: LC_ALL="C" PATH="/home/jyn/src/rust2/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/bin:...:/bin" VSLANG="1033" "./fake-linker" "-m64" "/tmp/rustcYqdAZT/symbols.o" "main.main.d17f5fbe6225cf88-cgu.0.rcgu.o" "main.2uoctswmurc6ir5rvoay0p9ke.rcgu.o" "-Wl,--as-needed" "-Wl,-Bstatic" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/home/jyn/src/rust2/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/jyn/src/rust2/build/x86_64-unknown-linux-gnu/test/run-make/linker-warning/rmake_out" "-L" "/home/jyn/src/rust2/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "main" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "run_make_error" = note: error: baz error: aborting due to 1 previous error === NEEDLE === fake-linker.*run_make_error assert_not_contains_regex: === HAYSTACK === === NEEDLE === fake-linker.*run_make_error ------------------------------------------ . test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 377 filtered out; finished in 314.81ms ``` r? `@jieyouxu`
2024-12-15Rename `value` field to `expr` to simplify later commits' diffsOli Scherer-5/+5
2024-12-15fix: Fix proc-macro dylib names on windowsLukas Wirth-6/+3
2024-12-15internal: Show mir eval errors on hover with debug env var setLukas Wirth-97/+113
2024-12-15Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-2/+2