Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
6288a72
Delay span bug when Self resolves to DefKind::{Mod,Trait}
compiler-errors Apr 16, 2024
27374a0
Avoid unnecessary `rustc_span::DUMMY_SP` usage.
nnethercote Mar 6, 2024
e93f754
Always use `ty::` qualifier for `TyKind` enum variants.
nnethercote Mar 6, 2024
4b27cc8
Avoid lots of `hir::HirId{,Map,Set}` qualifiers.
nnethercote Mar 6, 2024
b03ae74
Rename a tiny module.
nnethercote Apr 16, 2024
81b7944
create new build step `clippy`
onur-ozkan Mar 22, 2024
8a865a0
create `Builder::msg_clippy`
onur-ozkan Mar 22, 2024
77ba3f2
support different `Kind`s in `Builder::msg_tool`
onur-ozkan Mar 22, 2024
489e5d0
for clippy, skip output handling in `run_cargo`
onur-ozkan Mar 22, 2024
bbacfe0
add simple top-level doc-comment for build_steps/clippy
onur-ozkan Mar 22, 2024
a018973
fix sysroot bug and update step message format
onur-ozkan Mar 22, 2024
5253fe4
update `mingw-check` clippy invocation
onur-ozkan Mar 22, 2024
16cf0e6
allow running clippy on most of the in-tree tools
onur-ozkan Mar 22, 2024
9a67a6c
Reinstate nnethercote to the review rotation.
nnethercote Apr 16, 2024
e480cab
Fix empty-set symbol in comments
dtolnay Apr 17, 2024
c021367
Make the comments for `ReturnDest` variants doc comments
beetrees Apr 17, 2024
45940fe
Rollup merge of #122813 - nnethercote:nicer-quals, r=compiler-errors
matthiaskrgr Apr 17, 2024
8229a34
Rollup merge of #122883 - onur-ozkan:clippy-build-step, r=albertlarsan68
matthiaskrgr Apr 17, 2024
90af17d
Rollup merge of #123997 - compiler-errors:self-res, r=fmease
matthiaskrgr Apr 17, 2024
1134f44
Rollup merge of #124045 - nnethercote:add-nnethercote-review, r=nneth…
matthiaskrgr Apr 17, 2024
d783ea0
Rollup merge of #124051 - dtolnay:emptyset, r=compiler-errors
matthiaskrgr Apr 17, 2024
854303b
Rollup merge of #124052 - beetrees:return-dest-doc-comment, r=fmease
matthiaskrgr Apr 17, 2024
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
Rename a tiny module.
So it doesn't clash with `rustc_middle::ty`.
  • Loading branch information
nnethercote committed Apr 16, 2024
commit b03ae74c84977517639449e35473fcedd6409ab3
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl<'ck, 'mir, 'tcx> TypeVisitor<TyCtxt<'tcx>> for LocalReturnTyVisitor<'ck, 'm
match t.kind() {
ty::FnPtr(_) => {}
ty::Ref(_, _, hir::Mutability::Mut) => {
self.checker.check_op(ops::ty::MutRef(self.kind));
self.checker.check_op(ops::mut_ref::MutRef(self.kind));
t.super_visit_with(self)
}
_ => t.super_visit_with(self),
Expand Down
8 changes: 4 additions & 4 deletions compiler/rustc_const_eval/src/transform/check_consts/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use rustc_infer::traits::{ImplSource, Obligation, ObligationCause};
use rustc_middle::mir::{self, CallSource};
use rustc_middle::ty::print::with_no_trimmed_paths;
use rustc_middle::ty::{
self as middle_ty, suggest_constraining_type_param, Closure, FnDef, FnPtr, GenericArgKind,
GenericArgsRef, Param, TraitRef, Ty,
self, suggest_constraining_type_param, Closure, FnDef, FnPtr, GenericArgKind, GenericArgsRef,
Param, TraitRef, Ty,
};
use rustc_middle::util::{call_kind, CallDesugaringKind, CallKind};
use rustc_session::parse::feature_err;
Expand Down Expand Up @@ -124,7 +124,7 @@ impl<'tcx> NonConstOp<'tcx> for FnCallNonConst<'tcx> {
);
}
}
middle_ty::Adt(..) => {
ty::Adt(..) => {
let obligation =
Obligation::new(tcx, ObligationCause::dummy(), param_env, trait_ref);

Expand Down Expand Up @@ -621,7 +621,7 @@ impl<'tcx> NonConstOp<'tcx> for ThreadLocalAccess {
}

/// Types that cannot appear in the signature or locals of a `const fn`.
pub mod ty {
pub mod mut_ref {
use super::*;

#[derive(Debug)]
Expand Down