Skip to content

Instantly share code, notes, and snippets.

Niko Matsakis nikomatsakis

Block or report user

Report or block nikomatsakis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View issue-64960.rs
use std::fmt::Formatter;
use std::marker::PhantomData;
async fn foo(_: String) {
}
#[derive(Copy, Clone)]
pub struct Arguments<'a> {
// Format string pieces to print.
pieces: &'a [&'a str],
View NOTES.md
Row Self Case Stable #61207 Niko's take
1 Foo fn(self: Pin<&mut Self>, f: &u8) -> &u8 f self +
2 Foo fn(self: Pin<&mut Foo>, f: &u8) -> &u8 f self +
3 Foo<'a> fn(self: Pin<&mut Self>, f: &u8) -> &u8 f self +
4 Foo<'a> fn(self: Pin<&mut Foo>, f: &u8) -> &u8 f self +
5 Foo<'a> fn(self: Self, f: &u8) -> &u8 f f ?
6 Foo<'a> fn(self: Foo<'a>, f: &u8) -> &u8 f f ?
7 Foo<'a> fn(self: Box<Foo<'a>>, f: &u8) -> &u8 f f ?
8 Foo<'a> fn(self: Box<Foo>, f: &u8) -> &u8 X X
View magit: rust-2<versioned>.txt
Head: issue-56238-multiple-lifetimes-async-fn-region-solver implement `TypeFoldable` for `Arc`
Merge: rust-lang/master Auto merge of #61915 - Centril:rollup-oire3i8, r=Centril
Push: nikomatsakis/issue-56238-multiple-lifetimes-async-fn-region-solver implement `TypeFoldable` for `Arc`
Tag: 1.0.0-beta (54304)
Unstaged changes (2)
modified src/librustc/infer/opaque_types/mod.rs
@@ -425,6 +425,11 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
opaque_defn: &OpaqueTypeDecl<'tcx>,
opaque_type_def_id: DefId,
View foo.diff
diff --git a/src/librustc/infer/opaque_types/mod.rs b/src/librustc/infer/opaque_types/mod.rs
index 9bb782e31f2..44ac68c3eab 100644
--- a/src/librustc/infer/opaque_types/mod.rs
+++ b/src/librustc/infer/opaque_types/mod.rs
@@ -425,6 +425,11 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
opaque_defn: &OpaqueTypeDecl<'tcx>,
opaque_type_def_id: DefId,
) {
+ debug!(
+ "generate_member_constraint: definition_span = {:?}",
View Salsa In More Depth (2019.01).md

Salsa In More Depth (2019.01)

#[salsa::query_group(InputsStorage)]
pub trait MyQueryGroup {
  #[salsa::input] // `set_manifest` is auto-generated
  fn manifest(&self) -> Manifest;

  #[salsa::input] // `set_source_text` is auto-generated
  fn source_text(&self, name: String) -> String;
View fitzgen.prolog
% name(Id, TheName).
% crate(Id, Crate).
% size(Id, TheSize).
% one of:
% code(Id).
% data(Id).
% debug(Id).
% misc(Id).
% edge(Id, Id).
View rustc_phase_2_configure_and_expand-fp.csv
Test Clean BaseIncr CleanIncr PatchedIncr0
regression-31157-Check 0 10 14 12
ucd-Debug 5 5 11 N/A
inflate-Opt 0 1 8 8
regex-Check 10 11 18 21
packed-simd-Check 10 8 40 N/A
futures-Opt 1 2 5 5
tuple-stress-Opt 4 4 8 9
keccak-Debug 3 3 15 N/A
coercions-Debug 2 1 2 6
View rustc_phase_1_parse_inputs-fp.csv
Test Clean BaseIncr CleanIncr PatchedIncr0
keccak-Debug 0 0 0 N/A
ripgrep-Debug 0 0 0 0
syn-Opt 0 0 0 0
serde-Check 0 0 2 N/A
syn-Debug 0 0 0 0
deep-vector-Check 3 0 5 4
encoding-Check 3 1 2 2
piston-image-Opt 0 0 0 0
coercions-Check 8 8 10 14
View rustc_typeck-fp.csv
Test Clean BaseIncr CleanIncr PatchedIncr0
keccak-Debug 51 50 4 N/A
regression-31157-Opt 1 1 0 0
regression-31157-Check 17 32 4 2
packed-simd-Opt 62 62 12 N/A
inflate-Debug 30 24 0 0
keccak-Check 76 71 7 N/A
webrender-Opt 1 1 2 2
coercions-Opt 18 18 0 0
issue-46449-Check 7 2 0 0
View rustc_traits-fp.csv
Test Clean BaseIncr CleanIncr PatchedIncr0
syn-Check 20 19 0 2
keccak-Debug 44 42 0 N/A
syn-Opt 2 1 0 1
cargo-Opt 2 1 3 2
issue-46449-Check 10 2 0 3
deeply-nested-Check 21 13 0 N/A
issue-46449-Debug 2 2 0 1
style-servo-Debug 10 5 0 1
ucd-Debug 5 5 0 N/A
You can’t perform that action at this time.