Skip to content

Instantly share code, notes, and snippets.

#![feature(async_fn_in_trait, async_fn_in_dyn_trait, dyn_star)]
#![allow(incomplete_features)]
trait MyTrait {
async fn foo(&self, n: usize) -> i32;
fn bar(&self) -> i32;
}
impl MyTrait for i32 {
async fn foo(&self, n: usize) -> i32 {

Keybase proof

I hereby claim:

  • I am eholk on github.
  • I am eholk (https://keybase.io/eholk) on keybase.
  • I have a public key ASCh2NxFVE0fCspG0abbfjgzICMGKwLU3L8lnqzC4sL7nQo

To claim this, I am signing this object:

[BUILD] y.rs
[BUILD] rustc_codegen_cranelift
Compiling rustc_codegen_cranelift v0.1.0 (/home/ericholk/repo/rust/compiler/rustc_codegen_cranelift)
error[E0463]: can't find crate for `jobserver`
--> src/lib.rs:7:1
|
7 | extern crate jobserver;
| ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
error[E0463]: can't find crate for `rustc_middle`
// MIR for `foo::{closure#0}` before StateTransform
fn foo::{closure#0}(_1: [static generator@src/test/ui/generator/addassign-yield.rs:19:14: 27:6], _2: ()) -> ()
yields ()
{
let mut _0: (); // return place in scope 0 at src/test/ui/generator/addassign-yield.rs:19:24: 19:24
let _3: &mut i32; // in scope 0 at src/test/ui/generator/addassign-yield.rs:20:13: 20:14
let mut _4: i32; // in scope 0 at src/test/ui/generator/addassign-yield.rs:20:22: 20:23
let mut _5: i32; // in scope 0 at src/test/ui/generator/addassign-yield.rs:24:14: 26:10
let mut _6: std::string::String; // in scope 0 at src/test/ui/generator/addassign-yield.rs:24:20: 24:33
poll overhead # threads/unicycle/20
time: [1.9589 ms 1.9647 ms 1.9702 ms]
change: [-3.4648% -2.9964% -2.5063%] (p = 0.00 < 0.05)
Performance has improved.
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) high mild
2 (2.00%) high severe
Benchmarking poll overhead # threads/unicycle/21: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 10.0s, enable flat sampling, or reduce sample count to 40.
poll overhead # threads/unicycle/21
poll overhead # futures/unicycle/10
time: [20.841 us 20.973 us 21.115 us]
change: [-3.1684% -1.1057% +0.5065%] (p = 0.27 > 0.05)
No change in performance detected.
Found 6 outliers among 100 measurements (6.00%)
4 (4.00%) high mild
2 (2.00%) high severe
poll overhead # futures/unicycle/100
time: [31.908 us 32.081 us 32.257 us]
change: [-2.5544% -1.5640% -0.5130%] (p = 0.00 < 0.05)
┐rustc_typeck::expr_use_visitor::consume_body body=Body { params: [], value: Expr { hir_id: HirId { owner: DefId(0:9 ~ issue_57017[360b]::main), local_id: 17 }, kind: Match(Expr { hir_id: HirId { owner: DefId(0:9 ~ issue_57017[360b]::main), local_id: 12 }, kind: Call(Expr { hir_id: HirId { owner: DefId(0:9 ~ issue_57017[360b]::main), local_id: 8 }, kind: Path(Resolved(None, Path { span: src/test/ui/generator/issue-57017.rs:18:27: 18:33 (#0), res: Def(Fn, DefId(0:6 ~ issue_57017[360b]::status)), segments: [PathSegment { ident: status#0, hir_id: Some(HirId { owner: DefId(0:9 ~ issue_57017[360b]::main), local_id: 7 }), res: Some(Err), args: None, infer_args: true }] })), span: src/test/ui/generator/issue-57017.rs:18:27: 18:33 (#0) }, [Expr { hir_id: HirId { owner: DefId(0:9 ~ issue_57017[360b]::main), local_id: 11 }, kind: AddrOf(Ref, Not, Expr { hir_id: HirId { owner: DefId(0:9 ~ issue_57017[360b]::main), local_id: 10 }, kind: Path(Resolved(None, Path { span: src/test/ui/generator/issue-57017.rs:18:35: 18:41 (#
failures:
---- bad_config::bad_target_links_overrides stdout ----
thread 'bad_config::bad_target_links_overrides' panicked at 'failed to remove "C:\\Users\\ericholk\\repo\\cargo\\target\\tmp\\cit\\t46": Os { code: 5, kind: PermissionDenied, message: "Access is denied." }', crates\cargo-test-support\src\paths.rs:145:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- bench::lib_bin_same_name stdout ----
thread 'bench::lib_bin_same_name' panicked at 'failed to remove "C:\\Users\\ericholk\\repo\\cargo\\target\\tmp\\cit\\t149": Os { code: 5, kind: PermissionDenied, message: "Access is denied." }', crates\cargo-test-support\src\paths.rs:145:17
---- freshness::cargo_env_changes stdout ----
error: internal compiler error: compiler\rustc_middle\src\ty\impls_ty.rs:97:17: StableHasher: unexpected region '_#8r
thread 'rustc' panicked at 'Box<dyn Any>', compiler\rustc_errors\src\lib.rs:1169:9
stack backtrace:
0: std::panicking::begin_panic<rustc_errors::ExplicitBug>
at .\library\std\src\panicking.rs:525
1: std::panic::panic_any<rustc_errors::ExplicitBug>
at .\library\std\src\panic.rs:57
2: rustc_errors::HandlerInner::bug
at .\compiler\rustc_errors\src\lib.rs:1169
// beginning a Binaryen API trace
#include <math.h>
#include <map>
#include "src/binaryen-c.h"
int main() {
std::map<size_t, BinaryenFunctionTypeRef> functionTypes;
std::map<size_t, BinaryenExpressionRef> expressions;
std::map<size_t, BinaryenFunctionRef> functions;
std::map<size_t, RelooperBlockRef> relooperBlocks;
BinaryenModuleRef the_module = NULL;