Skip to content

Rollup of 7 pull requests #124295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7731135
alloc::Layout: explicitly document size invariant on the type level
RalfJung Mar 25, 2024
aa1653e
Rename coroutine_stalled_predicates
compiler-errors Apr 15, 2024
d29178c
Do check_coroutine_obligations once per typeck root
compiler-errors Apr 15, 2024
0650115
redundant ::{self}
compiler-errors Apr 15, 2024
a8c9a0b
crash -> test
compiler-errors Apr 16, 2024
f7ebad4
Emit suggestions when equality constraints are wrongly used
gurry Apr 16, 2024
c623319
Lower deref patterns to MIR
Nadrieril Mar 9, 2024
1dabacd
Don't fake borrow inside a deref pattern
Nadrieril Mar 9, 2024
5c4909b
Track mutability of deref patterns
Nadrieril Apr 3, 2024
377e095
Allow mutable bindings inside deref patterns
Nadrieril Apr 3, 2024
b55afe4
Address closure-related review
Nadrieril Apr 5, 2024
511bd78
Rework fake borrow calculation
Nadrieril Apr 6, 2024
5053180
Add a non-shallow fake borrow
Nadrieril Apr 6, 2024
436c612
Use deep fake borrows for deref patterns
Nadrieril Apr 5, 2024
217a4df
Test or-patterns inside deref patterns
Nadrieril Apr 8, 2024
726fb55
Fix documentation of `BorrowKind::Fake`
Nadrieril Apr 20, 2024
5646b65
Pass translation closure to add_to_diag_with() as reference
Xiretza Apr 18, 2024
c88bb6c
Allow nesting subdiagnostics
Xiretza Apr 20, 2024
b220b74
Fix source ordering of IntoDiagArg impls
Xiretza Apr 20, 2024
6974e9c
Move "elided lifetime in path" to subdiagnostic struct
Xiretza Apr 20, 2024
31e581e
Wrap dyn type with parentheses in suggestion
long-long-float Jan 25, 2024
4815155
Mark @RUSTC_BUILTIN search path usage as unstable
Veykril Apr 23, 2024
80f2b91
Rollup merge of #120929 - long-long-float:wrap-dyn-in-suggestion, r=f…
fmease Apr 23, 2024
68939f7
Rollup merge of #122591 - gurry:122162-impl-type-binding-suggestion, …
fmease Apr 23, 2024
332cac2
Rollup merge of #122598 - Nadrieril:full-derefpats, r=matthewjasper
fmease Apr 23, 2024
2d7d480
Rollup merge of #123048 - RalfJung:layout, r=dtolnay
fmease Apr 23, 2024
e15d6f9
Rollup merge of #123993 - compiler-errors:coroutine-obl, r=lcnr
fmease Apr 23, 2024
6e423e1
Rollup merge of #124218 - Xiretza:subsubdiagnostics, r=davidtwco
fmease Apr 23, 2024
5ff1fa9
Rollup merge of #124285 - ferrocene:unstable-L-rust-builtin, r=petroc…
fmease Apr 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
redundant ::{self}
  • Loading branch information
compiler-errors committed Apr 15, 2024
commit 06501156d15120ff4a14c8f5b714c8c46563b58d
2 changes: 1 addition & 1 deletion compiler/rustc_hir_analysis/src/check/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ use rustc_middle::ty::{
};
use rustc_session::lint::builtin::{UNINHABITED_STATIC, UNSUPPORTED_CALLING_CONVENTIONS};
use rustc_target::abi::FieldIdx;
use rustc_trait_selection::traits;
use rustc_trait_selection::traits::error_reporting::on_unimplemented::OnUnimplementedDirective;
use rustc_trait_selection::traits::error_reporting::TypeErrCtxtExt as _;
use rustc_trait_selection::traits::outlives_bounds::InferCtxtExt as _;
use rustc_trait_selection::traits::{self};
use rustc_type_ir::fold::TypeFoldable;

use std::cell::LazyCell;
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use rustc_hir::{
};
use rustc_hir_analysis::collect::suggest_impl_trait;
use rustc_hir_analysis::hir_ty_lowering::HirTyLowerer;
use rustc_infer::traits::{self};
use rustc_infer::traits;
use rustc_middle::lint::in_external_macro;
use rustc_middle::middle::stability::EvalResult;
use rustc_middle::ty::print::with_no_trimmed_paths;
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_span/src/source_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use rustc_data_structures::sync::{IntoDynSyncSend, MappedReadGuard, ReadGuard, R
use rustc_data_structures::unhash::UnhashMap;
use std::fs;
use std::io::{self, BorrowedBuf, Read};
use std::path::{self};
use std::path;

#[cfg(test)]
mod tests;
Expand Down