Skip to content

Rollup of 7 pull requests #113357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 29 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
594cd84
`TypeParameterDefinition` always require a `DefId`
lcnr Jul 4, 2023
2d5d56b
Add feature and attribute definition
fee1-dead Jun 30, 2023
1c837cb
Add effects during lowering for `~const` bounds
fee1-dead Jun 30, 2023
8eb3e0b
enforce context effects in typeck
fee1-dead Jun 30, 2023
0b095a6
allow host param to be lowercase
fee1-dead Jun 30, 2023
30b21b7
add test
fee1-dead Jun 30, 2023
58c105a
include `host_effect_index` in `Generics`
fee1-dead Jul 4, 2023
25fc6c1
add fixme
fee1-dead Jul 4, 2023
d8f959a
Remove an AFIT test that isn't an AFIT test
compiler-errors Jul 4, 2023
388339f
Mark more hanging new-solver tests
compiler-errors Jul 4, 2023
51d7111
Normalize opaques during codegen in new solver
compiler-errors Jul 4, 2023
d2a1803
Winnow specializing impls
compiler-errors Jul 4, 2023
d6b82ff
Remove a redundant argument
oli-obk Jul 4, 2023
97d831d
Show which type was not specialized on query cycle misuse
oli-obk Jul 4, 2023
9cacfae
Fix some tests to *only* test their main issue and not have secondary…
oli-obk Jul 4, 2023
66ae999
Remove redundant `delay_span_bug`
oli-obk Jul 4, 2023
9e98feb
Add some extra information to opaque type cycle errors
oli-obk Jul 4, 2023
8ac3ffe
move `ConstKind` to typeir and move inherent impls to `Const`
BoxyUwU Jul 4, 2023
62174bf
Deal with fallout
BoxyUwU Jul 4, 2023
4169d0f
Narrow trait `CoverageInfoBuilderMethods` down to just one method
Zalathar Jul 5, 2023
9c430d3
Remove trait `CoverageInfoMethods`, since non-LLVM backends don't nee…
Zalathar Jul 5, 2023
cb570d6
Move `coverageinfo::ffi` and `coverageinfo::map` out of SSA
Zalathar Jul 5, 2023
9b87a8c
Rollup merge of #113210 - fee1-dead-contrib:effects-mvp, r=oli-obk
Dylan-DPC Jul 5, 2023
b73344f
Rollup merge of #113319 - lcnr:type-param-def-def-id, r=compiler-errors
Dylan-DPC Jul 5, 2023
3b4b215
Rollup merge of #113320 - oli-obk:eval_obligation_query, r=petrochenk…
Dylan-DPC Jul 5, 2023
f106202
Rollup merge of #113321 - BoxyUwU:move_constkind_to_typeir, r=oli-obk
Dylan-DPC Jul 5, 2023
0d238c2
Rollup merge of #113335 - compiler-errors:reveal-opaques-in-new-solve…
Dylan-DPC Jul 5, 2023
d18731f
Rollup merge of #113337 - compiler-errors:next-solver-winnow-speciali…
Dylan-DPC Jul 5, 2023
e1c2844
Rollup merge of #113355 - Zalathar:ssa, r=oli-obk
Dylan-DPC Jul 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
allow host param to be lowercase
  • Loading branch information
fee1-dead committed Jul 4, 2023
commit 0b095a60d27921a3af0e9f1ac0d1d15b75dad0ef
4 changes: 4 additions & 0 deletions compiler/rustc_lint/src/nonstandard_style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,10 @@ impl<'tcx> LateLintPass<'tcx> for NonUpperCaseGlobals {

fn check_generic_param(&mut self, cx: &LateContext<'_>, param: &hir::GenericParam<'_>) {
if let GenericParamKind::Const { .. } = param.kind {
// `rustc_host` params are explicitly allowed to be lowercase.
if cx.tcx.has_attr(param.def_id, sym::rustc_host) {
return;
}
NonUpperCaseGlobals::check_upper_case(cx, "const parameter", &param.name.ident());
}
}
Expand Down