Skip to content

Commit 4b1c372

Browse files
bors[bot]matklad
andauthored
Merge #5340 #5341
5340: Prefill reviewer r=matklad a=matklad bors r+ πŸ€– 5341: Reorder imports r=matklad a=matklad bors r+ πŸ€– Co-authored-by: Aleksey Kladov <[email protected]>
3 parents eac48f2 + 6db29e6 + 82b025b commit 4b1c372

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

β€Žcrates/ra_hir_ty/src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ use crate::{
1212
diagnostics::{
1313
MismatchedArgCount, MissingFields, MissingMatchArms, MissingOkInTailExpr, MissingPatFields,
1414
},
15+
match_checking::{is_useful, MatchCheckCtx, Matrix, PatStack, Usefulness},
1516
utils::variant_data,
1617
ApplicationTy, InferenceResult, Ty, TypeCtor,
17-
_match::{is_useful, MatchCheckCtx, Matrix, PatStack, Usefulness},
1818
};
1919

2020
pub use hir_def::{

β€Žcrates/ra_hir_ty/src/lib.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ pub mod traits;
3131
pub mod method_resolution;
3232
mod op;
3333
mod lower;
34+
mod match_checking;
3435
pub(crate) mod infer;
35-
pub mod display;
3636
pub(crate) mod utils;
37+
38+
pub mod display;
3739
pub mod db;
3840
pub mod diagnostics;
3941
pub mod expr;
@@ -43,26 +45,24 @@ pub mod unsafe_validation;
4345
mod tests;
4446
#[cfg(test)]
4547
mod test_db;
46-
mod _match;
4748

48-
use std::ops::Deref;
49-
use std::sync::Arc;
50-
use std::{iter, mem};
49+
use std::{iter, mem, ops::Deref, sync::Arc};
5150

5251
use hir_def::{
5352
expr::ExprId,
5453
type_ref::{Mutability, Rawness},
5554
AdtId, AssocContainerId, DefWithBodyId, GenericDefId, HasModule, Lookup, TraitId, TypeAliasId,
5655
TypeParamId,
5756
};
57+
use itertools::Itertools;
5858
use ra_db::{impl_intern_key, salsa, CrateId};
5959

6060
use crate::{
6161
db::HirDatabase,
62+
display::HirDisplay,
6263
primitive::{FloatTy, IntTy},
6364
utils::{generics, make_mut_slice, Generics},
6465
};
65-
use display::HirDisplay;
6666

6767
pub use autoderef::autoderef;
6868
pub use infer::{InferTy, InferenceResult};
@@ -74,7 +74,6 @@ pub use lower::{
7474
pub use traits::{InEnvironment, Obligation, ProjectionPredicate, TraitEnvironment};
7575

7676
pub use chalk_ir::{BoundVar, DebruijnIndex};
77-
use itertools::Itertools;
7877

7978
/// A type constructor or type name: this might be something like the primitive
8079
/// type `bool`, a struct like `Vec`, or things like function pointers or

β€Žxtask/src/release.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ impl PromoteCmd {
9393
run!("git commit -m':arrow_up: rust-analyzer'")?;
9494
if !self.dry_run {
9595
run!("git push")?;
96-
run!("xdg-open https://github.com/matklad/rust/pull/new/{}", branch)?;
96+
run!(
97+
"xdg-open https://github.com/matklad/rust/pull/new/{}?body=r%3F%20%40ghost",
98+
branch
99+
)?;
97100
}
98101
Ok(())
99102
}

0 commit comments

Comments
Β (0)