commit | c563f2ee799b285067124b516ce99f26063f8351 | [log] [tgz] |
---|---|---|
author | bors <bors@rust-lang.org> | Sat Mar 16 04:35:02 2024 +0000 |
committer | bors <bors@rust-lang.org> | Sat Mar 16 04:35:02 2024 +0000 |
tree | 91895e6faf0242cc634ab7041171ae4b603052fc | |
parent | c03ea3dfd907e7dc6305ebf20c94f3a1f1d9fed7 [diff] | |
parent | 746e4eff263527ba8960552ea62db11ab9821644 [diff] |
Auto merge of #122371 - oli-obk:visit_nested_body, r=tmiasko Stop walking the bodies of statics for reachability, and evaluate them instead cc `@saethlin` `@RalfJung` cc #119214 This reuses the `DefIdVisitor` from `rustc_privacy`, because they basically try to do the same thing. This PR's changes can probably be extended to constants, too, but let's tackle that separately, it's likely more involved.
This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.
Note: this README is for users rather than contributors. If you wish to contribute to the compiler, you should read CONTRIBUTING.md instead.
Read “Installation” from The Book.
If you really want to install from source (though this is not recommended), see INSTALL.md.
See https://www.rust-lang.org/community for a list of chat platforms and forums.
See CONTRIBUTING.md.
Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.
See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.
The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the “Rust Trademarks”).
If you want to use these names or brands, please read the media guide.
Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.