Skip to content

Commit cc3af70

Browse files
committed
Rename variable
1 parent 06afafd commit cc3af70

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -687,16 +687,16 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
687687
return false;
688688
}
689689

690-
// Blacklist traits for which it would be nonsensical to suggest borrowing.
690+
// List of traits for which it would be nonsensical to suggest borrowing.
691691
// For instance, immutable references are always Copy, so suggesting to
692692
// borrow would always succeed, but it's probably not what the user wanted.
693-
let mut blacklist: Vec<_> =
693+
let mut never_suggest_borrow: Vec<_> =
694694
[LangItem::Copy, LangItem::Clone, LangItem::Unpin, LangItem::Sized]
695695
.iter()
696696
.filter_map(|lang_item| self.tcx.lang_items().require(*lang_item).ok())
697697
.collect();
698698

699-
blacklist.push(self.tcx.get_diagnostic_item(sym::send_trait).unwrap());
699+
never_suggest_borrow.push(self.tcx.get_diagnostic_item(sym::send_trait).unwrap());
700700

701701
let span = obligation.cause.span;
702702
let param_env = obligation.param_env;
@@ -799,15 +799,15 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
799799
ty::TraitRef::new(trait_ref.def_id, imm_substs),
800800
trait_ref,
801801
false,
802-
&blacklist[..],
802+
&never_suggest_borrow[..],
803803
) {
804804
return true;
805805
} else {
806806
return try_borrowing(
807807
ty::TraitRef::new(trait_ref.def_id, mut_substs),
808808
trait_ref,
809809
true,
810-
&blacklist[..],
810+
&never_suggest_borrow[..],
811811
);
812812
}
813813
} else {

library/core/src/marker.rs

-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ use crate::hash::Hasher;
3131
/// [ub]: ../../reference/behavior-considered-undefined.html
3232
#[stable(feature = "rust1", since = "1.0.0")]
3333
#[cfg_attr(not(test), rustc_diagnostic_item = "send_trait")]
34-
<<<<<<< HEAD
35-
#[lang = "send"]
36-
=======
37-
>>>>>>> Remove lang items Send, UnwindSafe and RefUnwindSafe
3834
#[rustc_on_unimplemented(
3935
message = "`{Self}` cannot be sent between threads safely",
4036
label = "`{Self}` cannot be sent between threads safely"

0 commit comments

Comments
 (0)