Skip to content

Commit 6848248

Browse files
author
Alexander Regueiro
committed
A few drive-by cosmetic changes.
1 parent 8ce3f84 commit 6848248

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

src/librustc_mir/interpret/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
108108
idx: u64,
109109
) -> InterpResult<'tcx, FnVal<'tcx, M::ExtraFnVal>> {
110110
let ptr_size = self.pointer_size();
111-
// Skip over the 'drop_ptr', 'size', and 'align' fields.
111+
// Skip over the `drop_ptr`, `size`, and `align` fields.
112112
let vtable_slot = vtable.ptr_offset(ptr_size * idx.checked_add(3).unwrap(), self)?;
113113
let vtable_slot = self
114114
.memory

src/librustc_trait_selection/traits/util.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
use rustc_errors::DiagnosticBuilder;
2-
use rustc_span::Span;
3-
use smallvec::smallvec;
4-
use smallvec::SmallVec;
1+
use super::{Normalized, Obligation, ObligationCause, PredicateObligation, SelectionContext};
52

63
use rustc_data_structures::fx::FxHashSet;
4+
use rustc_errors::DiagnosticBuilder;
75
use rustc_hir::def_id::DefId;
6+
pub use rustc_infer::traits::util::*;
87
use rustc_middle::ty::subst::{GenericArg, Subst, SubstsRef};
98
use rustc_middle::ty::{self, ToPredicate, Ty, TyCtxt, WithConstness};
9+
use rustc_span::Span;
1010

11-
use super::{Normalized, Obligation, ObligationCause, PredicateObligation, SelectionContext};
12-
pub use rustc_infer::traits::util::*;
11+
use smallvec::smallvec;
12+
use smallvec::SmallVec;
1313

1414
///////////////////////////////////////////////////////////////////////////
1515
// `TraitAliasExpander` iterator

src/librustc_typeck/astconv.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
//! The main routine here is `ast_ty_to_ty()`; each use is parameterized by an
44
//! instance of `AstConv`.
55
6-
// ignore-tidy-filelength
7-
86
use crate::collect::PlaceholderHirTyCollector;
97
use crate::middle::resolve_lifetime as rl;
108
use crate::require_c_abi_if_c_variadic;
9+
1110
use rustc_ast::ast;
1211
use rustc_ast::util::lev_distance::find_best_match_for_name;
1312
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
@@ -64,8 +63,11 @@ pub trait AstConv<'tcx> {
6463
fn get_type_parameter_bounds(&self, span: Span, def_id: DefId) -> ty::GenericPredicates<'tcx>;
6564

6665
/// Returns the lifetime to use when a lifetime is omitted (and not elided).
67-
fn re_infer(&self, param: Option<&ty::GenericParamDef>, span: Span)
68-
-> Option<ty::Region<'tcx>>;
66+
fn re_infer(
67+
&self,
68+
param: Option<&ty::GenericParamDef>,
69+
span: Span,
70+
) -> Option<ty::Region<'tcx>>;
6971

7072
/// Returns the type to use when a type is omitted.
7173
fn ty_infer(&self, param: Option<&ty::GenericParamDef>, span: Span) -> Ty<'tcx>;

0 commit comments

Comments
 (0)