Skip to content

Commit b3614b4

Browse files
committed
Auto merge of rust-lang#5802 - flip1995:rustup, r=flip1995
Rustup r? @ghost changelog: none
2 parents 84cdce0 + d9bf74e commit b3614b4

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

clippy_lints/src/attrs.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,11 @@ fn check_clippy_lint_names(cx: &LateContext<'_>, ident: &str, items: &[NestedMet
421421
.iter()
422422
.map(|l| Symbol::intern(&l.name_lower()))
423423
.collect::<Vec<_>>();
424-
let sugg = find_best_match_for_name(symbols.iter(), &format!("clippy::{}", name_lower), None);
424+
let sugg = find_best_match_for_name(
425+
symbols.iter(),
426+
Symbol::intern(&format!("clippy::{}", name_lower)),
427+
None,
428+
);
425429
if lint_name.chars().any(char::is_uppercase)
426430
&& lint_store.find_lints(&format!("clippy::{}", name_lower)).is_ok()
427431
{

clippy_lints/src/consts.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,13 @@ impl<'a, 'tcx> ConstEvalLateContext<'a, 'tcx> {
332332
let result = self
333333
.lcx
334334
.tcx
335-
.const_eval_resolve(self.param_env, def_id, substs, None, None)
335+
.const_eval_resolve(
336+
self.param_env,
337+
ty::WithOptConstParam::unknown(def_id),
338+
substs,
339+
None,
340+
None,
341+
)
336342
.ok()
337343
.map(|val| rustc_middle::ty::Const::from_value(self.lcx.tcx, val, ty))?;
338344
let result = miri_to_const(&result);

0 commit comments

Comments
 (0)