Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
123062b
pass optimization level to llvm-bitcode-linker
usamoi Feb 5, 2025
6fc1978
fixed by differentiating glob export
tapanprakasht Feb 23, 2025
afc89a1
Fixed tidy error
tapanprakasht Feb 23, 2025
5afa6a1
ssa/mono: deduplicate `type_has_metadata`
davidtwco Dec 4, 2024
a5615d3
codegen_llvm: avoid `Deref` impls w/ extern type
davidtwco Feb 4, 2025
21d41b0
trait_sel: resolve vars in host effects
davidtwco Feb 24, 2025
cede902
cleanup few unused args
klensy Feb 24, 2025
7bf6fc1
tests: add variance test for const traits
davidtwco Feb 24, 2025
0bed12e
hir_analysis: skip self type of host effect preds
davidtwco Feb 24, 2025
db6da12
tests: Add regression test for derive token invalidation (#81099)
petrochenkov Feb 24, 2025
60fc2be
run some tests on emscripten again
folkertdev Feb 24, 2025
8467a76
remove unused field from VariantDef::new and convert debug to instrument
klensy Feb 24, 2025
00e80e7
Complete the list of resources used in rustdoc output
ColinPitrat Feb 25, 2025
eaf8fc5
Update information about NanumBarunGothic
ColinPitrat Feb 25, 2025
48483ad
fix doc in library/core/src/pin.rs
xizheyin Feb 25, 2025
4bf66c5
fix #137589
jdonszelmann Feb 25, 2025
b84bb32
Construct MIR error body for global_asm correctly
compiler-errors Feb 23, 2025
f68ff69
Exclude global_asm from mir_keys
compiler-errors Feb 23, 2025
5ecef01
Rollup merge of #136576 - usamoi:pass-more-llbc, r=fmease
fmease Feb 26, 2025
775c7cf
Rollup merge of #137320 - tapanprakasht:fix-doc-version-stability, r=…
fmease Feb 26, 2025
fde042b
Rollup merge of #137502 - compiler-errors:global-asm-aint-mir-body, r…
fmease Feb 26, 2025
d0006c7
Rollup merge of #137529 - klensy:unused3, r=lcnr
fmease Feb 26, 2025
315e956
Rollup merge of #137544 - petrochenkov:deritest, r=fmease
fmease Feb 26, 2025
e18ac65
Rollup merge of #137559 - folkertdev:run-more-emscripten-tests, r=fmease
fmease Feb 26, 2025
a9f5a2a
Rollup merge of #137601 - davidtwco:deduplicate-type-has-metadata, r=…
fmease Feb 26, 2025
2213c2a
Rollup merge of #137603 - davidtwco:extern-types-no-deref, r=lcnr
fmease Feb 26, 2025
efe8d0c
Rollup merge of #137604 - davidtwco:host-effect-resolve-vars, r=compi…
fmease Feb 26, 2025
1f38e8a
Rollup merge of #137609 - ColinPitrat:master, r=GuillaumeGomez
fmease Feb 26, 2025
30ad2c6
Rollup merge of #137613 - davidtwco:const-traits-variances, r=compile…
fmease Feb 26, 2025
0f128f4
Rollup merge of #137614 - xizheyin:issue-134874, r=cuviper
fmease Feb 26, 2025
1b26ed6
Rollup merge of #137622 - jdonszelmann:fix-137589, r=compiler-errors
fmease Feb 26, 2025
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
cleanup few unused args
  • Loading branch information
klensy committed Feb 24, 2025
commit cede9029fd97bef27565269f7f251ca5d3ac2c4a
4 changes: 2 additions & 2 deletions compiler/rustc_borrowck/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ impl<'a, 'tcx> ResultsVisitor<'a, 'tcx, Borrowck<'a, 'tcx>> for MirBorrowckCtxt<
| StatementKind::StorageLive(..) => {}
// This does not affect borrowck
StatementKind::BackwardIncompatibleDropHint { place, reason: BackwardIncompatibleDropReason::Edition2024 } => {
self.check_backward_incompatible_drop(location, (**place, span), state);
self.check_backward_incompatible_drop(location, **place, state);
}
StatementKind::StorageDead(local) => {
self.access_place(
Expand Down Expand Up @@ -1174,7 +1174,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, '_, 'tcx> {
fn check_backward_incompatible_drop(
&mut self,
location: Location,
(place, place_span): (Place<'tcx>, Span),
place: Place<'tcx>,
state: &BorrowckDomain,
) {
let tcx = self.infcx.tcx;
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_monomorphize/src/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirUsedCollector<'a, 'tcx> {
/// This does not walk the MIR of the constant as that is not needed for codegen, all we need is
/// to ensure that the constant evaluates successfully and walk the result.
#[instrument(skip(self), level = "debug")]
fn visit_const_operand(&mut self, constant: &mir::ConstOperand<'tcx>, location: Location) {
fn visit_const_operand(&mut self, constant: &mir::ConstOperand<'tcx>, _location: Location) {
// No `super_constant` as we don't care about `visit_ty`/`visit_ty_const`.
let Some(val) = self.eval_constant(constant) else { return };
collect_const_value(self.tcx, val, self.used_items);
Expand Down
9 changes: 2 additions & 7 deletions compiler/rustc_resolve/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2252,7 +2252,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
#[instrument(level = "debug", skip(self, parent_scope))]
pub(crate) fn make_path_suggestion(
&mut self,
span: Span,
mut path: Vec<Segment>,
parent_scope: &ParentScope<'ra>,
) -> Option<(Vec<Segment>, Option<String>)> {
Expand Down Expand Up @@ -2480,7 +2479,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
// or `use a::{b, c, d}};`
// ^^^^^^^^^^^
let (has_nested, after_crate_name) =
find_span_immediately_after_crate_name(self.tcx.sess, module_name, import.use_span);
find_span_immediately_after_crate_name(self.tcx.sess, import.use_span);
debug!(has_nested, ?after_crate_name);

let source_map = self.tcx.sess.source_map();
Expand Down Expand Up @@ -2687,11 +2686,7 @@ fn extend_span_to_previous_binding(sess: &Session, binding_span: Span) -> Option
/// // ^^^^^^^^^^^^^^^ -- true
/// ```
#[instrument(level = "debug", skip(sess))]
fn find_span_immediately_after_crate_name(
sess: &Session,
module_name: Symbol,
use_span: Span,
) -> (bool, Span) {
fn find_span_immediately_after_crate_name(sess: &Session, use_span: Span) -> (bool, Span) {
let source_map = sess.source_map();

// Using `use issue_59764::foo::{baz, makro};` as an example throughout..
Expand Down
8 changes: 3 additions & 5 deletions compiler/rustc_resolve/src/imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -955,11 +955,9 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
} else {
None
};
let err = match self.make_path_suggestion(
span,
import.module_path.clone(),
&import.parent_scope,
) {
let err = match self
.make_path_suggestion(import.module_path.clone(), &import.parent_scope)
{
Some((suggestion, note)) => UnresolvedImportError {
span,
label: None,
Expand Down