Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Rollup of 7 pull requests #134499

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

Merged
merged 21 commits into from
Dec 19, 2024
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
d033809
Fix intra doc links not generated inside footnote definitions
GuillaumeGomez Dec 17, 2024
a01de76
Add regression test for #132208
GuillaumeGomez Dec 17, 2024
5980dfe
ci: remove duplicate task definition
marcoieni Dec 17, 2024
21de42b
Variants::Single: do not use invalid VariantIdx for uninhabited enums
RalfJung Dec 1, 2024
e023590
make no-variant types a dedicated Variants variant
RalfJung Dec 1, 2024
85f0138
add comment explaining why ty_and_layout_field is not used
RalfJung Dec 2, 2024
397ae3c
fix outdated comment
RalfJung Dec 7, 2024
b103347
Remove a redundant write_ty call
oli-obk Dec 12, 2024
45920d2
Remove redundant tainting. We already taint the first time we set the…
oli-obk Dec 12, 2024
661b8f5
Forbid overwriting types in typeck
oli-obk Dec 12, 2024
b0d923c
move lint_unused_mut into subfn
lcnr Dec 18, 2024
bb1a90f
reduce compiler `Assemble` complexity
onur-ozkan Dec 17, 2024
1f352ac
Use TypingEnv from MIR builder
compiler-errors Dec 19, 2024
e5e0387
Rename Scope.id to Scope.local_id, remove trivial accessor
compiler-errors Dec 19, 2024
2a43ce0
Rollup merge of #133702 - RalfJung:single-variant, r=oli-obk
jieyouxu Dec 19, 2024
aa90dbc
Rollup merge of #134427 - MarcoIeni:ci-remove-code-duplication, r=Kobzol
jieyouxu Dec 19, 2024
bd6ed18
Rollup merge of #134432 - GuillaumeGomez:intra-doc-in-footnotes, r=no…
jieyouxu Dec 19, 2024
cc3053a
Rollup merge of #134437 - onur-ozkan:improve-compiler-build, r=jieyouxu
jieyouxu Dec 19, 2024
c0b47d9
Rollup merge of #134474 - oli-obk:push-yomnkntvzlxw, r=compiler-errors
jieyouxu Dec 19, 2024
7d962ec
Rollup merge of #134477 - lcnr:move-lint-into-subfn, r=lqd
jieyouxu Dec 19, 2024
e2bc718
Rollup merge of #134491 - compiler-errors:dtor-tweaks, r=lqd
jieyouxu Dec 19, 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
Remove redundant tainting. We already taint the first time we set the…
… value
  • Loading branch information
oli-obk committed Dec 18, 2024
commit 45920d2f52e7d3025466b6207f78189d0c347d82
7 changes: 1 addition & 6 deletions 7 compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
let mut typeck = self.typeck_results.borrow_mut();
let mut node_ty = typeck.node_types_mut();
if let Some(ty) = node_ty.get(id)
&& let Err(e) = ty.error_reported()
&& ty.references_error()
{
// Do not overwrite nodes that were already marked as `{type error}`. This allows us to
// silence unnecessary errors from obligations that were set earlier than a type error
// was produced, but that is overwritten by later analysis. This happens in particular
// for `Sized` obligations introduced in gather_locals. (#117846)
self.set_tainted_by_errors(e);
return;
}

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.