rust/src/tools
Noah Lev 37ed7a4438 Add ConstArgKind::Path and make ConstArg its own HIR node
This is a very large commit since a lot needs to be changed in order to
make the tests pass. The salient changes are:

- `ConstArgKind` gets a new `Path` variant, and all const params are now
  represented using it. Non-param paths still use `ConstArgKind::Anon`
  to prevent this change from getting too large, but they will soon use
  the `Path` variant too.

- `ConstArg` gets a distinct `hir_id` field and its own variant in
  `hir::Node`. This affected many parts of the compiler that expected
  the parent of an `AnonConst` to be the containing context (e.g., an
  array repeat expression). They have been changed to check the
  "grandparent" where necessary.

- Some `ast::AnonConst`s now have their `DefId`s created in
  rustc_ast_lowering rather than `DefCollector`. This is because in some
  cases they will end up becoming a `ConstArgKind::Path` instead, which
  has no `DefId`. We have to solve this in a hacky way where we guess
  whether the `AnonConst` could end up as a path const since we can't
  know for sure until after name resolution (`N` could refer to a free
  const or a nullary struct). If it has no chance as being a const
  param, then we create a `DefId` in `DefCollector` -- otherwise we
  decide during ast_lowering. This will have to be updated once all path
  consts use `ConstArgKind::Path`.

- We explicitly use `ConstArgHasType` for array lengths, rather than
  implicitly relying on anon const type feeding -- this is due to the
  addition of `ConstArgKind::Path`.

- Some tests have their outputs changed, but the changes are for the
  most part minor (including removing duplicate or almost-duplicate
  errors). One test now ICEs, but it is for an incomplete, unstable
  feature and is now tracked at #127009.
2024-07-16 19:27:28 -07:00
..
build-manifest Rollup merge of #126298 - heiher:loongarch64-musl-ci, r=Mark-Simulacrum 2024-06-24 06:27:13 +02:00
build_helper Move force_coloring_in_ci from builder_helper to bootstrap 2024-07-15 20:07:57 +02:00
bump-stage0 move comments position in src/stage0 2024-05-11 20:49:01 +03:00
cargo@154fdac39a Update cargo 2024-07-07 10:21:28 -04:00
cargotest
clippy Add ConstArgKind::Path and make ConstArg its own HIR node 2024-07-16 19:27:28 -07:00
collect-license-metadata
compiletest compiletest: Better error message for bad normalize-* headers 2024-07-11 21:51:20 +10:00
coverage-dump Add an alternate --demangle mode to coverage-dump 2024-05-31 21:52:45 +10:00
error_index_generator
generate-copyright
generate-windows-sys Update windows-bindgen to 0.58.0 2024-07-04 12:18:38 +00:00
html-checker rustdoc: allow custom element rustdoc-search 2024-05-06 21:50:27 -07:00
jsondocck Rollup merge of #127309 - its-the-shrimp:jsondocck_add_file_var, r=aDotInTheVoid 2024-07-04 18:16:25 +02:00
jsondoclint Add rustdoc-json support for use<> 2024-07-12 05:24:51 -04:00
libcxx-version skip src/tools/libcxx-version from tidy 2024-06-06 07:01:37 +03:00
linkchecker add new_range_api for RFC 3550 2024-07-05 16:33:58 -06:00
lint-docs use "bootstrap" instead of "rustbuild" in comments and docs 2024-07-07 00:07:08 +03:00
lld-wrapper Fix typos (taking into account review comments) 2024-05-18 18:12:18 +02:00
llvm-bitcode-linker Distribute LLVM bitcode linker as a preview component 2024-04-15 15:11:28 +02:00
miri Rollup merge of #124921 - RalfJung:offset-from-same-addr, r=oli-obk 2024-07-15 21:11:47 +02:00
miropt-test-tools
opt-dist opt-dist: apply considerable clippy suggestions 2024-06-13 18:41:49 +03:00
remote-test-client Give remote-test-client a longer timeout 2024-07-02 10:09:40 -07:00
remote-test-server remote-test-server: apply considerable clippy suggestions 2024-06-13 18:41:43 +03:00
replace-version-placeholder
rls
run-make-support run-make-support: update gimli to 0.31.0 2024-07-16 11:01:35 +02:00
rust-analyzer Auto merge of #127617 - lnicola:sync-from-ra, r=lnicola 2024-07-16 10:54:30 +00:00
rust-installer use "bootstrap" instead of "rustbuild" in comments and docs 2024-07-07 00:07:08 +03:00
rustbook Add translation support by mdbook-i18n-helpers to bootstrap 2024-06-03 16:48:27 +09:00
rustc-perf@c64bb60dd1 Update rustc-perf submodule 2024-06-12 11:45:52 +02:00
rustc-perf-wrapper Review changes 2024-06-29 16:07:22 +02:00
rustdoc Change SIGPIPE ui from #[unix_sigpipe = "..."] to -Zon-broken-pipe=... 2024-05-02 19:48:29 +02:00
rustdoc-gui Other EcmaScript version bump 2024-06-07 08:44:52 +08:00
rustdoc-gui-test compiletest: Allow multiple //@ run-flags: headers 2024-06-07 01:51:57 +10:00
rustdoc-js Other EcmaScript version bump 2024-06-07 08:44:52 +08:00
rustdoc-themes
rustfmt Implement RTN support in rustfmt 2024-06-28 14:20:44 -04:00
suggest-tests Remove direct dependencies on lazy_static, once_cell and byteorder 2024-04-28 14:35:00 +01:00
tidy Auto merge of #127831 - tgross35:rollup-c0j9n7b, r=tgross35 2024-07-16 21:46:24 +00:00
tier-check
unicode-table-generator Add a lower bound check to unicode-table-generator output 2024-04-20 10:16:45 +02:00
unstable-book-gen
wasm-component-ld Promote the wasm32-wasip2 target to Tier 2 2024-07-09 12:11:08 -07:00
x
cherry-pick.sh
publish_toolstate.py CI: fix toolstate publishing 2024-05-15 15:48:52 +02:00