about summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-12-17 12:07:32 +0000
committerbors <bors@rust-lang.org>2024-12-17 12:07:32 +0000
commitf23a80a4c2fbca593b64e70f5970368824b4c5e9 (patch)
treefb6111f5c9f9064163fc6d3c6afcd5f158dc2f58 /compiler/rustc_mir_build/src/lib.rs
parent604d6691d9ee5c88a05569dd3f707b20afd76e97 (diff)
parentcdd71c9f3d6c08cd35edddf56800aa1aacbdaedc (diff)
downloadrust-f23a80a4c2fbca593b64e70f5970368824b4c5e9.tar.gz
rust-f23a80a4c2fbca593b64e70f5970368824b4c5e9.zip
Auto merge of #134414 - jhpratt:rollup-4gtfd1h, r=jhpratt
Rollup of 10 pull requests

Successful merges:

 - #134202 (Remove `rustc::existing_doc_keyword` lint)
 - #134354 (Handle fndef rendering together with signature rendering)
 - #134365 (Rename `rustc_mir_build::build` to `builder`)
 - #134368 (Use links to edition guide for edition migrations)
 - #134397 (rustc_borrowck: Suggest changing `&raw const` to `&raw mut` if applicable)
 - #134398 (AIX: add alignment info for test)
 - #134400 (Fix some comments related to upvars handling)
 - #134406 (Fix `-Z input-stats` ordering)
 - #134409 (bootstrap: fix a comment)
 - #134412 (small borrowck cleanup)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_mir_build/src/lib.rs')
-rw-r--r--compiler/rustc_mir_build/src/lib.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/compiler/rustc_mir_build/src/lib.rs b/compiler/rustc_mir_build/src/lib.rs
index 833e5019865..467725841dc 100644
--- a/compiler/rustc_mir_build/src/lib.rs
+++ b/compiler/rustc_mir_build/src/lib.rs
@@ -11,7 +11,10 @@
 #![warn(unreachable_pub)]
 // tidy-alphabetical-end
 
-mod build;
+// The `builder` module used to be named `build`, but that was causing GitHub's
+// "Go to file" feature to silently ignore all files in the module, probably
+// because it assumes that "build" is a build-output directory. See #134365.
+mod builder;
 mod check_tail_calls;
 mod check_unsafety;
 mod errors;
@@ -25,9 +28,9 @@ rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
 pub fn provide(providers: &mut Providers) {
     providers.check_match = thir::pattern::check_match;
     providers.lit_to_const = thir::constant::lit_to_const;
-    providers.hooks.build_mir = build::mir_build;
+    providers.hooks.build_mir = builder::mir_build;
     providers.closure_saved_names_of_captured_variables =
-        build::closure_saved_names_of_captured_variables;
+        builder::closure_saved_names_of_captured_variables;
     providers.check_unsafety = check_unsafety::check_unsafety;
     providers.check_tail_calls = check_tail_calls::check_tail_calls;
     providers.thir_body = thir::cx::thir_body;