Skip to content

Commit a2d45f7

Browse files
committed
Auto merge of rust-lang#143601 - matthiaskrgr:rollup-9iw2sqk, r=matthiaskrgr
Rollup of 9 pull requests Successful merges: - rust-lang#132469 (Do not suggest borrow that is already there in fully-qualified call) - rust-lang#143340 (awhile -> a while where appropriate) - rust-lang#143438 (Fix the link in `rustdoc.md`) - rust-lang#143539 (Regression tests for repr ICEs) - rust-lang#143566 (Fix `x86_64-unknown-netbsd` platform support page) - rust-lang#143572 (Remove unused allow attrs) - rust-lang#143583 (`loop_match`: fix 'no terminator on block') - rust-lang#143584 (make `Machine::load_mir` infallible) - rust-lang#143591 (Fix missing words in future tracking issue) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 2f8eeb2 + ff6b881 commit a2d45f7

File tree

30 files changed

+311
-76
lines changed

30 files changed

+311
-76
lines changed

.github/ISSUE_TEMPLATE/tracking_issue_future.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ it would be `T-libs-api`.
1414
Also check for any `A-` labels to add.
1515
-->
1616

17-
This is the **tracking issue** for the `YOUR_LINT_NAME_HERE` future-compatibility warning and other related errors. The goal of this page is describe why this change was made and how you can fix code that is affected by it. It also provides a place to ask questions or register a complaint if you feel the change should not be made. For more information on the policy around future-compatibility warnings, see our [breaking change policy guidelines][guidelines].
17+
This is the **tracking issue** for the `YOUR_LINT_NAME_HERE` future-compatibility warning and other related errors. The goal of this page is to describe why this change was made and how you can fix code that is affected by it. It also provides a place to ask questions or register a complaint if you feel the change should not be made. For more information on the policy around future-compatibility warnings, see our [breaking change policy guidelines][guidelines].
1818

1919
[guidelines]: https://rustc-dev-guide.rust-lang.org/bug-fix-procedure.html
2020

@@ -44,7 +44,7 @@ This is the **tracking issue** for the `YOUR_LINT_NAME_HERE` future-compatibilit
4444

4545
- [ ] Implement the lint
4646
- [ ] Raise lint level to deny
47-
- [ ] Make lint report in dependencies
47+
- [ ] Change the lint to report in dependencies
4848
- [ ] Switch to a hard error
4949

5050
### Implementation history

compiler/rustc_codegen_gcc/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#![doc(rust_logo)]
2020
#![feature(rustdoc_internals)]
2121
#![feature(rustc_private)]
22-
#![allow(broken_intra_doc_links)]
2322
#![recursion_limit = "256"]
2423
#![warn(rust_2018_idioms)]
2524
#![warn(unused_lifetimes)]

compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(non_camel_case_types)]
21
#![expect(dead_code)]
32

43
use libc::{c_char, c_uint};

compiler/rustc_const_eval/src/const_eval/machine.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,10 @@ impl<'tcx> interpret::Machine<'tcx> for CompileTimeMachine<'tcx> {
331331
fn load_mir(
332332
ecx: &InterpCx<'tcx, Self>,
333333
instance: ty::InstanceKind<'tcx>,
334-
) -> InterpResult<'tcx, &'tcx mir::Body<'tcx>> {
334+
) -> &'tcx mir::Body<'tcx> {
335335
match instance {
336-
ty::InstanceKind::Item(def) => interp_ok(ecx.tcx.mir_for_ctfe(def)),
337-
_ => interp_ok(ecx.tcx.instance_mir(instance)),
336+
ty::InstanceKind::Item(def) => ecx.tcx.mir_for_ctfe(def),
337+
_ => ecx.tcx.instance_mir(instance),
338338
}
339339
}
340340

compiler/rustc_const_eval/src/interpret/eval_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
272272
let def = instance.def_id();
273273
&self.tcx.promoted_mir(def)[promoted]
274274
} else {
275-
M::load_mir(self, instance)?
275+
M::load_mir(self, instance)
276276
};
277277
// do not continue if typeck errors occurred (can only occur in local crate)
278278
if let Some(err) = body.tainted_by_errors {

compiler/rustc_const_eval/src/interpret/machine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ pub trait Machine<'tcx>: Sized {
189189
fn load_mir(
190190
ecx: &InterpCx<'tcx, Self>,
191191
instance: ty::InstanceKind<'tcx>,
192-
) -> InterpResult<'tcx, &'tcx mir::Body<'tcx>> {
193-
interp_ok(ecx.tcx.instance_mir(instance))
192+
) -> &'tcx mir::Body<'tcx> {
193+
ecx.tcx.instance_mir(instance)
194194
}
195195

196196
/// Entry point to all function calls.

compiler/rustc_errors/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//! This module contains the code for creating and emitting diagnostics.
44
55
// tidy-alphabetical-start
6-
#![allow(incomplete_features)]
76
#![allow(internal_features)]
87
#![allow(rustc::diagnostic_outside_of_impl)]
98
#![allow(rustc::direct_use_of_rustc_type_ir)]

compiler/rustc_infer/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
1515
// tidy-alphabetical-start
1616
#![allow(internal_features)]
17-
#![allow(rustc::diagnostic_outside_of_impl)]
1817
#![allow(rustc::direct_use_of_rustc_type_ir)]
19-
#![allow(rustc::untranslatable_diagnostic)]
2018
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2119
#![doc(rust_logo)]
2220
#![feature(assert_matches)]

compiler/rustc_lint/src/early/diagnostics.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#![allow(rustc::diagnostic_outside_of_impl)]
2-
#![allow(rustc::untranslatable_diagnostic)]
3-
41
use std::borrow::Cow;
52

63
use rustc_ast::util::unicode::TEXT_FLOW_CONTROL_CHARS;

compiler/rustc_lint/src/lints.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(rustc::diagnostic_outside_of_impl)]
21
#![allow(rustc::untranslatable_diagnostic)]
32
use std::num::NonZero;
43

0 commit comments

Comments
 (0)