owned this note changed 3 years ago
Published Linked with GitHub

T-compiler Meeting Agenda 2021-10-07

Tracking Issue

Announcements / MCPs/FCPs

  • New MCPs (take a look, see if you like them!)
    • No new proposals this time.
  • Old MCPs (not seconded, take a look)
    • "rustdoc is using rustc_ast_pretty, would it be possible to make it somewhat "stable"?" compiler-team#403 (last review activity: GH none, Zulip +3 months ago)
    • "CI should exercise (subset of) tests under stage 1" compiler-team#439 (last review activity: GH none, Zulip about 1 month ago)
    • "Accept pc in place of unknown and unknown in place of pc for x86_64 and i?86 targets" compiler-team#441 (last review activity: GH none, Zulip about 1 week ago)
    • "Tier 3 target proposal: x86_64-unknown-none (freestanding/bare-metal x86-64)" compiler-team#462 (last review activity: GH none, Zulip 1 week ago)
    • "Make -Z binary-dep-depinfo the default behavior" compiler-team#464 (last review activity: GH none, Zulip about 2 weeks ago)
  • Pending FCP requests (check your boxes!)
    • "Write text output files to stdout if options like -o - or --emit asm=- are provided" compiler-team#431
  • Things in FCP (make sure you're good with it)
  • Accepted MCPs
    • No new accepted proposals this time.
  • Finalized FCPs (disposition merge)
    • "Perform type inference in range pattern" rust#88090
    • "Stabilize RFC 2345: Allow panicking in constants" rust#89006

WG checkins

Our overall charter: Make it possible to write async fn in traits, as well as enabling key language features that bring async more into parity with sync:

  • Async functions in traits
    *in both static and dyn contexts
  • Async drop
    Async closures

We have identified an MVP, which aims to support async fn in traits in static contexts by desugaring to an (anonymous) associated GAT plus (on the impl side) a TAIT. We are preparing an RFC describing this MVP and talking to various folks about doing the implementation work.

  • @WG-traits by @nikomatsakis @Jack Huey (previous checkin)

    In general, work continues on GATs, TAITs, dyn upcasting, and followup for normalization under binders and incremental projection cache PRs.

    • For GATs, a few blockers remain for stabilization, found here. Feedback/thoughts request on the placement of where clauses.
    • Oli-obk continues to work on refactoring the inference for TAITs. Some diagnostic PRs have been opened that need review.
    • Dyn upcasting recently had a question come up regarding Deref impls on dyn types; specfically, these impls mimic upcasting. The current plan is to emit a future compat lint and just accept the breakage - which really just ends up without the deref impl being called.
    • There has been a bit a followup to do after #85499 landed. In particular, more eagerly normalizing opaque types resulted in a severe perf regression; this has been reverted with the only current fallout being related to TAITs. Some other issues popped up that show that there is still code that won't compile even though it should - but compiliation does get further (not emitting an ICE). Most of the remaining issues are probably blocked on lazy norm.
    • Finally, some of the changes Aaron Hill made to the way projection caching works to fix incremental bugs seems to have a perf regression. Not clear what a correct fix would look like yet.

Backport nominations

T-compiler beta / T-compiler stable

  • :beta: "2229: Consume IfLet expr" rust#89282
    • Another one for RFC 2229 that affects Rust 2021
  • :beta: "Fix unsound optimization with explicit variant discriminants" rust#89489
  • :beta: "Fix stabilization version for bindings_after_at" rust#89605
    • PR opened by @Noah Lev, not yet merged, suggests beta-backport
    • bindings_after_at was stabilized in 1.56
  • :beta: "Turn vtable_allocation() into a query" rust#89619
    • opened by @mw
    • Fixes P-critical unsoundness rust#89598
  • :stable: "Turn vtable_allocation() into a query" rust#89619
    • same as above

T-rustdoc beta / T-rustdoc stable

  • No backport nominations for T-rustdoc this time.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
/
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
/
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

PRs S-waiting-on-team

T-compiler

Oldest PRs waiting for review

T-compiler

  • "Replace dominators algorithm with simple Lengauer-Tarjan" rust#85013 (last review activity: 4 months ago)
  • "Account for incorrect impl Foo<const N: ty> {} syntax" rust#85346 (last review activity: 3 months ago)
  • "When recovering from a : in a pattern, use adequate AST pattern" rust#87160 (last review activity: 2 months ago)
  • "Mir-Opt for copying enums with large discrepancies" rust#85158 (last review activity: 2 months ago)
  • "Abort in panic_abort eh_personality" rust#86801 (last review activity: 2 months ago)

Issues of Note

Short Summary

P-critical

T-compiler

  • "VTable-related miscompilation with incremental compilation" rust#89598
    • reported by @mw, currently unassigned
    • @simulacrum comments this should probably be fixed by the next stable
    • @mw tested a fix in PR rust#89602 and checked the perf impact
  • "Internal compiler error: "entered unreachable code: we captured two identical projections"" rust#89606
    • stable-to-beta regression
    • introduced by #89208 (see comment)
    • assigned to @Wesley Wiser

T-rustdoc

  • No P-critical issues for T-rustdoc this time.

P-high regressions

P-high beta regressions

  • "no errors encountered even though delay_span_bug issued" rust#87757
    • Should be fixed by beta-backport of rust#88996 (beta-accepted)
  • "regression: cycle in MIR opts" rust#88972
  • "Trait upcasting shadows (trait object) deref coercion" rust#89190

Unassigned P-high nightly regressions

  • No unassigned P-high nightly regressions this time.

Performance logs

triage logs for 2021-10-05

A fairly busy week, with a relatively high percentage of PRs landing with regressions and improvements. The overall trajectory is fairly neutral for this week though.

Triage done by @simulacrum. Revision range: 83f147b3baf21acfc367a6da1045d212cd3957e4..25ec8273855fde2d72ae877b397e054de5300e10

5 Regressions, 5 Improvements, 5 Mixed; 1 of them in rollups, 43 comparisons made in total

Regressions

Don't anonymize bound region names during typeck #89250

  • Moderate regression in instruction counts (up to 0.6% on full builds of coercions)
  • Regression seems to be real, though no regressions in cycle counts are
    reported, so this is likely an acceptable hit.

Constify ?-operator for Result and Option #86853

  • Moderate regression in instruction counts (up to 0.5% on incr-full builds of stm32f4)
  • This is a small regression on the stm32f4 crate, due to a number of extra
    obligations that are created, presumably due to the checks for whether ?
    operators in this crate can be const. It is likely an acceptable change for
    the time being, particularly as the const-impls functionality is still in
    nascent stages and optimizations may come down the line.
  • The PR ended up temporarily reverted by
    #89450, though not due to
    performance reasons.

Fix read_to_end to not grow an exact size buffer #89165

  • Small regression in instruction counts (up to 0.7% on full builds of piston-image)
  • This regression is unclear in cause, and investigation on the PR did not lead
    to a conclusion. However, the regression is fairly small and the change is
    expected to have impacts on more I/O heavy benchmarks than rustc is.
    Syscall counts were shown to improve on the PR, including for rustc, so the
    optimization seems to work in general.

Fix unsound optimization with explicit variant discriminants #89489

  • Moderate regression in instruction counts (up to 2.3% on full builds of style-servo)
  • This is an expected regression, but is clearly justified by the fix for an
    unsound optimization. We expect to reland it with appropriate changes in the
    future.

Fix clippy lints #89405

  • Small regression in instruction counts (up to 0.4% on incr-unchanged builds of helloworld)
  • Likely to be painful to investigate changes are widely scattered across the
    codebase and in theory "no-ops".

Improvements

Note: improvements reports are trimmed down for brevity, but this week rustc-perf reports large improvements, therefore:

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

  • Restructure std::rt #89011
  • Remove visible path calculation from allowed deprecation lint #89395
  • Avoid nondeterminism in trimmed_def_paths #89408
  • Rollup of 14 pull requests #89512
  • Deriving: Include bound generic params in type parameters for where clause #89341

Mixed

Add more tracing instrumentation #89048

  • Moderate improvement in instruction counts (up to -1.6% on full builds of keccak)
  • Very large regression in instruction counts (up to 12.0% on full builds of ctfe-stress-4)
  • Regression is mitigated by
    #89363, which just barely
    missed being included in this report.

Add an intermediate representation to exhaustiveness checking #88950

  • Large improvement in instruction counts (up to -2.6% on full builds of unicode_normalization)
  • Large regression in instruction counts (up to 2.9% on full builds of match-stress-enum)
  • Code quality improvements mitigate the regressions, which are largely limited
    to a stress test.

Rollup of 6 pull requests #89435

  • Small improvement in instruction counts (up to -0.3% on incr-unchanged builds of helloworld)
  • Moderate regression in instruction counts (up to 0.8% on incr-unchanged builds of externs)
  • Unclear cause for the regression. Hasn't been investigated yet.

Rework HIR API to make invocations of the hir_crate query harder. #88880

  • Small improvement in instruction counts (up to -0.4% on incr-unchanged builds of helloworld)
  • Small regression in instruction counts (up to 0.2% on full builds of many-assoc-items)
  • Regressions are smaller than improvements. Original perf run didn't return
    regressions at all. Tagged for investigation.

resolve: Cache module loading for all foreign modules #89239

  • Small regression in instruction counts (up to 0.8% on incr-unchanged builds of tokio-webpush-simple)
  • From the PR: This corrects behaviour for macros 2.0 and avoids an ICE, so a
    0.8% regression seems acceptable.

Untriaged Pull Requests

Investigation work continues, and we're down to 22 from 28 untriaged PRs week
over week.

Nominated Issues

T-compiler

  • "On macOS, make strip="symbols" not pass any options to strip" rust#88137
    • mentioned in PR waiting-on-team
  • "Rust can't infer appropriate generics for function when it should" rust#89242
    • discussed last week
    • the general mood was to let this slip and no nothing as the sample seems to be about uncallable code, just tested on the playground
    • @Jack Huey mentioned he would discuss this with Niko on Monday
    • anything new to add?

RFC

  • No nominated RFCs for T-compiler this time.

Misc

Select a repo