rust/src/tools
Matthias Krüger 2e58d62fec
Rollup merge of #128932 - bvanjoi:issue-128813, r=petrochenkov
skip updating when external binding is existed

Fixes #128813

For following code:

```rs
extern crate core;

fn f() {
    use ::core;
}

macro_rules! m {
    () => {
        extern crate std as core;
    };
}

m!();

fn main() {}
```

- In the first loop, we define `extern crate core` and `use ::core` will be referred to `core` (yes, it does not consider if there are some macros that are not expanded. Ideally, this should be delayed if there are some unexpanded macros in the root, but I didn't change it like that because it seems like a huge change).
- Then `m` is expanded, which makes `extern_prelude('core')` return `std` rather than `core`, causing the inconsistency.

r? `@petrochenkov`
2024-08-20 22:21:56 +02:00
..
build-manifest Promote Mac Catalyst targets to tier 2, and ship with rustup 2024-08-14 02:12:14 +02:00
build_helper Reformat use declarations. 2024-07-29 08:26:52 +10:00
bump-stage0 bump-stage0: use IndexMap for determinism 2024-07-30 15:13:58 -07:00
cargo@ba8b39413c Update cargo 2024-08-16 21:18:24 -04:00
cargotest Reformat use declarations. 2024-07-29 08:26:52 +10:00
clippy rename AddressOf -> RawBorrow inside the compiler 2024-08-18 19:46:53 +02:00
collect-license-metadata Update generate-copyright 2024-08-06 11:04:55 +01:00
compiletest Auto merge of #129218 - saethlin:gdb-supports-rust-now, r=jieyouxu 2024-08-19 12:16:20 +00:00
coverage-dump Reformat use declarations. 2024-07-29 08:26:52 +10:00
error_index_generator Reformat use declarations. 2024-07-29 08:26:52 +10:00
generate-copyright Apparently library/std is now part of a workspace at library/ 2024-08-06 12:12:57 +01:00
generate-windows-sys Add windows-targets crate to std's sysroot 2024-08-09 10:43:43 +00:00
html-checker Reformat use declarations. 2024-07-29 08:26:52 +10:00
jsondocck Reformat use declarations. 2024-07-29 08:26:52 +10:00
jsondoclint rustdoc: Remove OpaqueTy 2024-08-01 15:57:45 +00:00
libcxx-version skip src/tools/libcxx-version from tidy 2024-06-06 07:01:37 +03:00
linkchecker Reformat use declarations. 2024-07-29 08:26:52 +10:00
lint-docs lint on tail expr drop order change in Edition 2024 2024-08-21 01:05:21 +08:00
lld-wrapper Reformat use declarations. 2024-07-29 08:26:52 +10:00
llvm-bitcode-linker Reformat use declarations. 2024-07-29 08:26:52 +10:00
miri stabilize raw_ref_op 2024-08-18 19:46:53 +02:00
miropt-test-tools tidy: wrap regexes with lazy_static 2024-02-17 12:29:05 +03:00
opt-dist Update sysinfo version to 0.31.2 2024-08-01 16:39:55 +02:00
remote-test-client Reformat use declarations. 2024-07-29 08:26:52 +10:00
remote-test-server Reformat use declarations. 2024-07-29 08:26:52 +10:00
replace-version-placeholder Reformat use declarations. 2024-07-29 08:26:52 +10:00
rls Reformat use declarations. 2024-07-29 08:26:52 +10:00
run-make-support Update some dependency versions that allow better licensing 2024-08-18 13:59:27 -05:00
rust-analyzer Rollup merge of #129086 - slanterns:is_none_or, r=dtolnay 2024-08-16 19:58:58 +02:00
rust-installer Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustbook Update Cargo.lock 2024-08-14 08:09:38 -07:00
rustc-perf@d5055e7804 bump up rustc-perf's version 2024-08-09 01:24:39 +09:00
rustc-perf-wrapper impl compare command and benchmark command to rustc-perf-wrapper 2024-08-09 20:03:14 +09:00
rustdoc Link std statically in rustc_driver 2024-08-11 04:16:53 +02:00
rustdoc-gui Other EcmaScript version bump 2024-06-07 08:44:52 +08:00
rustdoc-gui-test Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustdoc-js Other EcmaScript version bump 2024-06-07 08:44:52 +08:00
rustdoc-themes
rustfmt Auto merge of #128771 - carbotaniuman:stabilize_unsafe_attr, r=nnethercote 2024-08-17 22:48:42 +00:00
suggest-tests Reformat use declarations. 2024-07-29 08:26:52 +10:00
tidy skip updating when external binding is existed 2024-08-20 20:34:13 +08:00
tier-check Add NuttX based targets for RISC-V and ARM 2024-07-19 22:00:42 +08:00
unicode-table-generator Reformat use declarations. 2024-07-29 08:26:52 +10:00
unstable-book-gen Reformat use declarations. 2024-07-29 08:26:52 +10:00
wasm-component-ld Promote the wasm32-wasip2 target to Tier 2 2024-07-09 12:11:08 -07:00
x Reformat use declarations. 2024-07-29 08:26:52 +10:00
cherry-pick.sh
publish_toolstate.py CI: fix toolstate publishing 2024-05-15 15:48:52 +02:00