about summary refs log tree commit diff
path: root/compiler/rustc_borrowck/src/def_use.rs
AgeCommit message (Collapse)AuthorLines
2025-04-13Visit place in BackwardIncompatibleDropHint statementMichael Goulet-0/+3
2024-08-27Rollup merge of #126013 - nnethercote:unreachable_pub, r=UrgauMatthias Krüger-2/+2
Add `#[warn(unreachable_pub)]` to a bunch of compiler crates By default `unreachable_pub` identifies things that need not be `pub` and tells you to make them `pub(crate)`. But sometimes those things don't need any kind of visibility. So they way I did these was to remove the visibility entirely for each thing the lint identifies, and then add `pub(crate)` back in everywhere the compiler said it was necessary. (Or occasionally `pub(super)` when context suggested that was appropriate.) Tedious, but results in more `pub` removal. There are plenty more crates to do but this seems like enough for a first PR. r? `@compiler-errors`
2024-08-18rename AddressOf -> RawBorrow inside the compilerRalf Jung-2/+2
2024-08-16Add `warn(unreachable_pub)` to `rustc_borrowck`.Nicholas Nethercote-2/+2
2024-04-29Remove `extern crate rustc_middle` from numerous crates.Nicholas Nethercote-0/+1
2024-02-06Invert diagnostic lints.Nicholas Nethercote-2/+0
That is, change `diagnostic_outside_of_impl` and `untranslatable_diagnostic` from `allow` to `deny`, because more than half of the compiler has be converted to use translated diagnostics. This commit removes more `deny` attributes than it adds `allow` attributes, which proves that this change is warranted.
2023-11-08rename `BorrowKind::Shallow` to `Fake`lcnr-1/+1
also adds some comments
2023-10-20s/generator/coroutine/Oli Scherer-1/+1
2023-05-29unique borrows are mutating useslcnr-1/+0
2023-05-10Make `NonUseContext::AscribeUserTy` carry `ty::Variance`Obei Sideg-1/+1
2023-04-29Make PlaceMention a non-mutating use.Camille GILLOT-1/+1
2023-04-21Evaluate place expression in `PlaceMention`.Camille GILLOT-3/+5
2023-03-09Document borrowck behaviour.Camille GILLOT-1/+3
2023-03-09Introduce a no-op PlaceMention statement for `let _ =`.Camille GILLOT-1/+1
2022-11-09lint auto passAndyJado-0/+2
Revert "lint auto pass" This reverts commit e58e4466384924c491a932d3f18ef50ffa5a5065.
2022-04-11Add new `MutatatingUseContext`s for deinit and `SetDiscriminant`Jakob Degen-0/+4
2022-01-12Remove deprecated LLVM-style inline assemblyTomasz Miąsko-3/+0
2021-12-03Add initial AST and MIR support for unwinding from inline assemblyAmanieu d'Antras-1/+2
2021-09-07Move rustc_mir::borrow_check to new crate rustc_borrowck.Camille GILLOT-0/+78