Skip to content

Commit 07762a1

Browse files
Samy KacimiAlexander Regueiro
authored andcommitted
begin debug! message with a lowercase
1 parent f895ef8 commit 07762a1

File tree

32 files changed

+65
-65
lines changed

32 files changed

+65
-65
lines changed

src/librustc/infer/lexical_region_resolve/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
873873
constraints.retain(|constraint| {
874874
let (edge_changed, retain) = body(constraint);
875875
if edge_changed {
876-
debug!("Updated due to constraint {:?}", constraint);
876+
debug!("updated due to constraint {:?}", constraint);
877877
changed = true;
878878
}
879879
retain

src/librustc/infer/region_constraints/leak_check.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ impl<'tcx> RegionConstraintCollector<'tcx> {
7878
}
7979

8080
return Err(if overly_polymorphic {
81-
debug!("Overly polymorphic!");
81+
debug!("overly polymorphic!");
8282
TypeError::RegionsOverlyPolymorphic(placeholder.name, tainted_region)
8383
} else {
84-
debug!("Not as polymorphic!");
84+
debug!("not as polymorphic!");
8585
TypeError::RegionsInsufficientlyPolymorphic(placeholder.name, tainted_region)
8686
});
8787
}

src/librustc/middle/mem_categorization.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ impl<'a, 'tcx> MemCategorizationContext<'a, 'tcx> {
10691069
let deref_ty = match base_cmt_ty.builtin_deref(true) {
10701070
Some(mt) => mt.ty,
10711071
None => {
1072-
debug!("Explicit deref of non-derefable type: {:?}", base_cmt_ty);
1072+
debug!("explicit deref of non-derefable type: {:?}", base_cmt_ty);
10731073
return Err(());
10741074
}
10751075
};
@@ -1392,7 +1392,7 @@ impl<'a, 'tcx> MemCategorizationContext<'a, 'tcx> {
13921392
let element_ty = match cmt.ty.builtin_index() {
13931393
Some(ty) => ty,
13941394
None => {
1395-
debug!("Explicit index of non-indexable type {:?}", cmt);
1395+
debug!("explicit index of non-indexable type {:?}", cmt);
13961396
return Err(());
13971397
}
13981398
};

src/librustc/middle/resolve_lifetime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ impl<'a, 'tcx> LifetimeContext<'a, 'tcx> {
16151615
}
16161616
}
16171617
Some(LifetimeUseSet::Many) => {
1618-
debug!("Not one use lifetime");
1618+
debug!("not one use lifetime");
16191619
}
16201620
None => {
16211621
let hir_id = self.tcx.hir().as_local_hir_id(def_id).unwrap();

src/librustc_codegen_llvm/asm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn inline_asm_call(
146146
unsafe {
147147
// Ask LLVM to verify that the constraints are well-formed.
148148
let constraints_ok = llvm::LLVMRustInlineAsmVerify(fty, cons.as_ptr());
149-
debug!("Constraint verification result: {:?}", constraints_ok);
149+
debug!("constraint verification result: {:?}", constraints_ok);
150150
if constraints_ok {
151151
let v = llvm::LLVMRustInlineAsm(
152152
fty,

src/librustc_codegen_llvm/builder.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
215215
funclet: Option<&Funclet<'ll>>,
216216
) -> &'ll Value {
217217

218-
debug!("Invoke {:?} with args ({:?})",
218+
debug!("invoke {:?} with args ({:?})",
219219
llfn,
220220
args);
221221

@@ -1035,7 +1035,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
10351035
funclet: Option<&Funclet<'ll>>,
10361036
) -> &'ll Value {
10371037

1038-
debug!("Call {:?} with args ({:?})",
1038+
debug!("call {:?} with args ({:?})",
10391039
llfn,
10401040
args);
10411041

@@ -1238,7 +1238,7 @@ impl Builder<'a, 'll, 'tcx> {
12381238
if dest_ptr_ty == stored_ptr_ty {
12391239
ptr
12401240
} else {
1241-
debug!("Type mismatch in store. \
1241+
debug!("type mismatch in store. \
12421242
Expected {:?}, got {:?}; inserting bitcast",
12431243
dest_ptr_ty, stored_ptr_ty);
12441244
self.bitcast(ptr, stored_ptr_ty)
@@ -1274,7 +1274,7 @@ impl Builder<'a, 'll, 'tcx> {
12741274
.map(|(i, (expected_ty, &actual_val))| {
12751275
let actual_ty = self.val_ty(actual_val);
12761276
if expected_ty != actual_ty {
1277-
debug!("Type mismatch in function call of {:?}. \
1277+
debug!("type mismatch in function call of {:?}. \
12781278
Expected {:?} for param {}, got {:?}; injecting bitcast",
12791279
llfn, expected_ty, i, actual_ty);
12801280
self.bitcast(actual_val, expected_ty)

src/librustc_data_structures/flock.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,14 @@ cfg_if! {
238238
.write(true);
239239
}
240240

241-
debug!("Attempting to open lock file `{}`", p.display());
241+
debug!("attempting to open lock file `{}`", p.display());
242242
let file = match open_options.open(p) {
243243
Ok(file) => {
244-
debug!("Lock file opened successfully");
244+
debug!("lock file opened successfully");
245245
file
246246
}
247247
Err(err) => {
248-
debug!("Error opening lock file: {}", err);
248+
debug!("error opening lock file: {}", err);
249249
return Err(err)
250250
}
251251
};
@@ -262,7 +262,7 @@ cfg_if! {
262262
dwFlags |= LOCKFILE_EXCLUSIVE_LOCK;
263263
}
264264

265-
debug!("Attempting to acquire lock on lock file `{}`",
265+
debug!("attempting to acquire lock on lock file `{}`",
266266
p.display());
267267
LockFileEx(file.as_raw_handle(),
268268
dwFlags,
@@ -273,10 +273,10 @@ cfg_if! {
273273
};
274274
if ret == 0 {
275275
let err = io::Error::last_os_error();
276-
debug!("Failed acquiring file lock: {}", err);
276+
debug!("failed acquiring file lock: {}", err);
277277
Err(err)
278278
} else {
279-
debug!("Successfully acquired lock.");
279+
debug!("successfully acquired lock.");
280280
Ok(Lock { _file: file })
281281
}
282282
}

src/librustc_incremental/persist/fs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ pub fn garbage_collect_session_directories(sess: &Session) -> io::Result<()> {
693693
let timestamp = match extract_timestamp_from_session_dir(lock_file_name) {
694694
Ok(timestamp) => timestamp,
695695
Err(()) => {
696-
debug!("Found lock-file with malformed timestamp: {}",
696+
debug!("found lock-file with malformed timestamp: {}",
697697
crate_directory.join(&lock_file_name).display());
698698
// Ignore it
699699
continue
@@ -746,7 +746,7 @@ pub fn garbage_collect_session_directories(sess: &Session) -> io::Result<()> {
746746
let timestamp = match extract_timestamp_from_session_dir(directory_name) {
747747
Ok(timestamp) => timestamp,
748748
Err(()) => {
749-
debug!("Found session-dir with malformed timestamp: {}",
749+
debug!("found session-dir with malformed timestamp: {}",
750750
crate_directory.join(directory_name).display());
751751
// Ignore it
752752
continue

src/librustc_lint/unused.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnusedAttributes {
316316

317317
let name = attr.name_or_empty();
318318
if !attr::is_used(attr) {
319-
debug!("Emitting warning for: {:?}", attr);
319+
debug!("emitting warning for: {:?}", attr);
320320
cx.span_lint(UNUSED_ATTRIBUTES, attr.span, "unused attribute");
321321
// Is it a builtin attribute that must be used at the crate level?
322322
let known_crate = attr_info.map(|&&(_, ty, ..)| {

src/librustc_mir/build/matches/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
14651465
.map(|b| GuardFrameLocal::new(b.var_id, b.binding_mode))
14661466
.collect(),
14671467
};
1468-
debug!("Entering guard building context: {:?}", guard_frame);
1468+
debug!("entering guard building context: {:?}", guard_frame);
14691469
self.guard_context.push(guard_frame);
14701470

14711471
let re_erased = tcx.lifetimes.re_erased;

0 commit comments

Comments
 (0)