profile
viewpoint

95th/defaults 1

A better Default derive macro.

95th/jsmn-rs 1

Rust impl of Jasmine JSON parser (https://github.com/zserge/jsmn)

95th/aho-corasick 0

A fast implementation of Aho-Corasick in Rust.

95th/alloc-wg 0

Attempt of collection several proposals of the allocators-wg

95th/arrow 0

Apache Arrow is a cross-language development platform for in-memory data. It specifies a standardized language-independent columnar memory format for flat and hierarchical data, organized for efficient analytic operations on modern hardware. It also provides computational libraries and zero-copy streaming messaging and interprocess communication. Languages currently supported include C, C++, Java, JavaScript, Python, and Ruby.

95th/ben 0

A minimalistic Bencode parser

95th/bip-rs 0

BitTorrent Infrastructure Project In Rust

Pull request review commenttokio-rs/tokio

tokio: Add back poll_* for udp

 impl UdpSocket {             .await     } +    /// Attempts to receive a single datagram message on the socket from the remote+    /// address to which it is `connect`ed.+    ///+    /// The [`connect`] method will connect this socket to a remote address. The future+    /// will resolve to an error if the socket is not connected..+    ///+    /// # Return value+    ///+    /// The function returns:+    ///+    /// * `Poll::Pending` if the socket is not ready to read+    /// * `Poll::Ready(Ok(n))` `n` is the number of bytes read.+    /// * `Poll::Ready(Err(e))` if an error is encountered.+    ///+    /// # Errors+    ///+    /// This function may encounter any standard I/O error except `WouldBlock`.+    ///+    /// [`connect`]: method@Self::connect+    pub fn poll_recv(&self, cx: &mut Context<'_>, buf: &mut [u8]) -> Poll<io::Result<usize>> {

Shouldn't buf be the new ReadBuf here?

leshow

comment created time in 14 hours

PullRequestReviewEvent
PullRequestReviewEvent

startedquinn-rs/quinn

started time in 17 hours

push event95th/btrs

Gurwinder Singh

commit sha 93b200359f7dc37cb0fbb3326cf0e417c61714b9

Update deps

view details

push time in a day

push event95th/btrs

Gurwinder Singh

commit sha 51f873a9a979313cfb483bdec3f54ef658d2c8ca

Update utp crate

view details

push time in a day

push event95th/btrs

Gurwinder Singh

commit sha 22e868bbce949921ede3b5fd23718731954727a6

Upgrade tokio to 0.3

view details

push time in a day

push event95th/justc

Gurwinder Singh

commit sha f2cb0422ed0970957d60edba46c49d7fa2bd0996

Add if condition constraint

view details

push time in a day

push event95th/justc

Gurwinder Singh

commit sha 428fec12d83abbbe6e8943c17e422fcc57f8c846

Stable constraint order using Btree set

view details

push time in a day

push event95th/justc

Gurwinder Singh

commit sha 4a50723419fd83d3940d089ceb3bc363e6c10f84

Refactor

view details

push time in a day

push event95th/justc

Gurwinder Singh

commit sha 1714576fb3f5c9c1aca52e78ae36cc729551eb00

Rename Subst

view details

push time in a day

push event95th/justc

Gurwinder Singh

commit sha cfd7f8fabe2d56cf6d1fd7199dd908513e374e05

Error handling in Annotate

view details

Gurwinder Singh

commit sha 047cb69ec4c2fe4f71174e830253c367b0e4bf84

Use span in Unify

view details

push time in a day

push event95th/justc

Gurwinder Singh

commit sha 6865a68c45c07b5c96729cb01b9284fc1912863b

Use symbol table

view details

push time in 2 days

push event95th/justc

Gurwinder Singh

commit sha 8ad19eb159804a25df8e88916f1d32324c741cc2

Use type annotations

view details

push time in 3 days

push event95th/justc

Gurwinder Singh

commit sha 312894e206c94720e10d7ee5a292de17ae903c7b

Add hindley milner type inference

view details

push time in 3 days

push event95th/justc

Gurwinder Singh

commit sha 39d865003985ba6ca57c72e42d329f6bec3c72a4

Type check last stmt in block

view details

push time in 8 days

push event95th/justc

Gurwinder Singh

commit sha 0dfa659cc5fffa8e107a49e75b6f8e737740fdb1

use symbol table

view details

push time in 10 days

issue commentmicrosoft/WSL

WSL vEthernet adapter shows up as disconnected after the latest Windows 10 update (10.0.20197.1000)

Just upgraded to 20231 and can confirm that this issue is fixed. Thank you.

peteykun

comment created time in 10 days

push event95th/assign

Gurwinder Singh

commit sha f0455a5b7fca73d45738727cec23bfa0c93b8628

Bug fixes

view details

push time in 11 days

push event95th/assign

Gurwinder Singh

commit sha f50d22e9f71e92be19470699f5adeef3cb82083d

Print more debug info

view details

push time in 12 days

push event95th/assign

Gurwinder Singh

commit sha 09ff677f9eac517c2c39f547fda8b8dfed09f054

Rewrite impl

view details

push time in 12 days

push event95th/assign

Gurwinder Singh

commit sha bc2440eab314e5f5d0eb6225487ee32680db396e

Revert failed assignments fully

view details

push time in 13 days

push event95th/assign

Gurwinder Singh

commit sha 91468da2e3413542019ac81b2a98b11ea748f806

Bug fix

view details

push time in 13 days

push event95th/assign

Gurwinder Singh

commit sha 33d0757a817f0de4c6778fae679ff3c6a22bce54

Maximization as parameter

view details

push time in 13 days

push event95th/pyret

Gurwinder Singh

commit sha 4e2ec5cb971a86d55820a1222e646f3fb75fca0c

Update

view details

push time in 15 days

push event95th/assign

Gurwinder Singh

commit sha b73ba529a99893212bb55139c34898a74d987391

tests

view details

push time in 16 days

push event95th/assign

Gurwinder Singh

commit sha abd580ec54efb35b4fad63343d2f0e13aeb5fee5

Fix solution bug

view details

push time in 16 days

push event95th/assign

Gurwinder Singh

commit sha d9f574eb2ed326040bf335c1184bed07a7d7d339

Refactor

view details

push time in 17 days

push event95th/assign

Gurwinder Singh

commit sha 06dd7aecbae9656bf439d46ad78a51f947429065

Bug fixes, style

view details

push time in 17 days

create barnch95th/assign

branch : master

created branch time in 17 days

created repository95th/assign

created time in 17 days

startedStoryyeller/cubiml-demo

started time in 21 days

startedmicrosoft/onefuzz

started time in a month

issue commentrust-lang/rust

borrowed value does not live long enough in closure

Running below gives error:

fn main() {
    let c = |v| {};
    x(c);
    y(c);
    for _ in 0..1 {
        let s = ();
        c(&s);
    }
}

fn x<F>(_: F) where for<'a> F: FnMut(&'a ()) {}
fn y<'a, F>(_: F) where F: FnMut(&'a ()) {}

gives:

error[E0308]: mismatched types
 --> src/main.rs:3:5
  |
3 |     x(c);
  |     ^ one type is more general than the other
  |
  = note: expected type `std::ops::FnOnce<(&'a (),)>`
             found type `std::ops::FnOnce<(&(),)>`

but running below gives no error:

fn main() {
    let c = |v: &()| {};
    x(c);
    y(c);
    for _ in 0..1 {
        let s = ();
        c(&s);
    }
}

fn x<F>(_: F) where for<'a> F: FnMut(&'a ()) {}
fn y<'a, F>(_: F) where F: FnMut(&'a ()) {}

Seems like an inference problem.

95th

comment created time in a month

issue commentrust-lang/rust

borrowed value does not live long enough in closure

Minimized a bit:

fn main() {
    let c = |v| {};
    for _ in 0..1 {
        let s = ();
        c(&s);
    }
}
95th

comment created time in a month

push event95th/pyret

Gurwinder Singh

commit sha 973b181cc5ea4aaf5dc62eba364b0eea3b1c45de

If expr

view details

push time in a month

issue openedrust-lang/rust

borrowed value does not live long enough in closure

From Stackoverflow:

https://stackoverflow.com/questions/63856055/borrow-checker-complains-for-closure-inside-loop-if-type-not-provided-explicitly

I tried this code:

fn f1(v: &str) {
}

fn main() {
    let c = |v| f1(v);
    for _ in 0..1 {
        let s = String::new();
        c(&s);
    }
}

I expected to see this happen: Code compiles

Instead, this happened: Got below error:

   |
10 |         c(&s);
   |         - ^^ borrowed value does not live long enough
   |         |
   |         borrow later used here
11 |     }
   |     - `s` dropped here while still borrowed

But if I add explicit type to closure, code compiles let c = |v: &str| f1(v);

Meta

<!-- If you're using the stable version of the compiler, you should also check if the bug also exists in the beta or nightly versions. -->

rustc --version --verbose:

cargo 1.46.0 (149022b1d 2020-07-17)
release: 1.46.0
commit-hash: 149022b1d8f382e69c1616f6a46b69ebf59e2dea
commit-date: 2020-07-17

<!-- Include a backtrace in the code block by setting RUST_BACKTRACE=1 in your environment. E.g. RUST_BACKTRACE=1 cargo build. --> <details><summary>Backtrace</summary>

created time in a month

push event95th/pyret

Gurwinder Singh

commit sha 264fea450e86c817ee98ac1a41d2847fb6e780bf

Booleans

view details

push time in a month

push event95th/pyret

Gurwinder Singh

commit sha c0621acda955fce3d2fca4638e8aebad64cc815e

Grouping

view details

push time in a month

push event95th/pyret

Gurwinder Singh

commit sha b0763d414d82a4730d096f8a3abf57d282a35ad1

Parse unary negation

view details

push time in a month

push event95th/pyret

Gurwinder Singh

commit sha 9af943c9d49a8e41427fa36c45923c11e7408959

Small eval

view details

push time in a month

push event95th/pyret

Gurwinder Singh

commit sha bec0b942fc84b7c8afc2ad420d8d364b75f7c956

Cleanup

view details

push time in a month

push event95th/pyret

Gurwinder Singh

commit sha 2a1acc5c9015ca8cabb3dc8b8b0f1421f444bca8

fix eat_while

view details

push time in a month

pull request commentrust-lang/rust

Rename IsJoint -> Spacing

This helps so much in the readability. Thanks

matklad

comment created time in a month

push event95th/pyret

Gurwinder Singh

commit sha 24e1c3daf67c67bc83db8202d02bed35d72c2a9b

arith parse

view details

push time in a month

create barnch95th/pyret

branch : master

created branch time in a month

created repository95th/pyret

created time in a month

fork 95th/pyret-lang

The Pyret language.

fork in a month

startedbrownplt/pyret-lang

started time in a month

push event95th/justc

Gurwinder Singh

commit sha f665cdf0346aa77c5d990ee8ac6110ffacaad0ad

Bug fix

view details

push time in a month

push event95th/justc

Gurwinder Singh

commit sha 474f77ba85434f5442cb237bb9892933667f3934

infer more

view details

push time in a month

push event95th/justc

Gurwinder Singh

commit sha 808cc4cd4879d241aa2af9c0fade689112807efd

Include float in known types

view details

push time in a month

push event95th/justc

Gurwinder Singh

commit sha 9cce6ab59ae83bee253ea105b745cc8a8daa85d2

Type check

view details

push time in a month

push event95th/arith

Gurwinder Singh

commit sha 0eccd0a90bd3f16cf83bd4752a97b984ca29328f

Update ty printing

view details

push time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 14e0823f8636a85d6ae36e98b6d7c43001f8e2e5

Type context

view details

push time in 2 months

push event95th/zx

Gurwinder Singh

commit sha 230310b0875046ec69422e9e9c3466b336a31b02

Update

view details

push time in 2 months

push event95th/zx

Gurwinder Singh

commit sha 2e036b0d6663fab023284789f46ac61ca2e5ff01

Update

view details

push time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 42fbe57f95eefccee47c1fef05ec4047015af5da

Parse lambda

view details

push time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 7c6b85c22b18ee896cded0e69f91c69ec824b35a

Use usize for typeid

view details

push time in 2 months

create barnch95th/zx

branch : master

created branch time in 2 months

created repository95th/zx

created time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 2c36b5e130cc6a4c46273b66a7beeff7317ab6c5

Big step eval

view details

push time in 2 months

startedzesterer/tao

started time in 2 months

fork 95th/tao

A statically-typed functional programming language

fork in 2 months

fork 95th/types-and-programming-languages

Exercises from Benjamin Pierce's "Types and Programming Languages" textbook + extras!

fork in 2 months

startedlazear/types-and-programming-languages

started time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 6c1e1b9fc9ecb6bd902ae23d3435a780509b31db

Better error handling

view details

push time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 717d1ed8689568c03a4af4fdedb06d10354cf7a3

Add nat

view details

Gurwinder Singh

commit sha 62e4167831060f80d22614bd2f6fd7c2159c2830

Clean up

view details

push time in 2 months

push event95th/arith

Gurwinder Singh

commit sha b6f0df1c083d42fade7f66fb3d048eb2b287ae82

Use parser with Eval

view details

push time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 20d77161cb900277da074e70ae6c7d03e40146ed

Use Symbol

view details

push time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 5c9f54029c2bd970fe0f850ab1d3a7e897aa827d

Parse

view details

push time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 2c7a3057b5d0344a8241c808070e20a074dc848f

Begin parser

view details

push time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 7170d90a6e7b61b153ecb7f14c9e333dfdf4817c

Debug info

view details

push time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 38136b6094dcd4b9033fd1890544b54ad3036280

Use Quit macro

view details

push time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 85a0390027c484ca49d64a801e6ac55632bfadb8

lexer

view details

push time in 2 months

issue commentrust-analyzer/rust-analyzer

Error on import: `bad ws edit: []`

MCVE:

use token::TokenKind::*;

fn token(kind: TokenKind) {  // <-- try control + '.' to auto import `TokenKind`
    todo!()
}

mod token {
    pub enum TokenKind {}
}
95th

comment created time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 61eb14c749780e7b5cc91ec6fe19bc2d0b70ccda

Rename stuff

view details

push time in 2 months

push event95th/arith

Gurwinder Singh

commit sha 9fc0745426d06703788836c8fedbb8d7b7a91980

Type check

view details

push time in 2 months

push event95th/arith

Gurwinder Singh

commit sha a5b0eba4fa8855fef57cba0043285686684d33e5

Shortnames

view details

push time in 2 months

create barnch95th/arith

branch : master

created branch time in 2 months

created repository95th/arith

created time in 2 months

startedbevyengine/bevy

started time in 2 months

push event95th/justc

Gurwinder Singh

commit sha c624af2d54609ced9f36bd9ee4d865643791c448

Tests

view details

push time in 2 months

push event95th/btrs

Gurwinder Singh

commit sha 611aca83fea83e6ee58ac4d0520c9e5bca867653

Update btrs

view details

push time in 2 months

push event95th/ben

Gurwinder Singh

commit sha a7fbd620dfe72198d6a5901eacb328f845ec0d16

0.2.0

view details

push time in 2 months

push event95th/ben

Gurwinder Singh

commit sha 9df1772281966c36015b974e561b5f7b8585ace2

Copy over changes from btrs

view details

push time in 2 months

PublicEvent

issue closedrust-analyzer/rust-analyzer

Setting ENV variables for rust-analyzer with VS Code

I am using VS Code to view rust compiler codebase and I get below errors saying the env variables are not defined.

I tried setting them without success from WSL2 terminal from where I launch the VS code instance. I also tried runnableEnv which perhaps only work for Run/Debug/Test scenarios.

Untitled

Is there a way to set environment variables for rust-analyzer itself?

closed time in 2 months

95th

issue commentrust-analyzer/rust-analyzer

Setting ENV variables for rust-analyzer with VS Code

Found:

https://rustc-dev-guide.rust-lang.org/building/suggested.html#configuring-rust-analyzer-for-rustc

95th

comment created time in 2 months

PR opened rust-lang/rustc-dev-guide

fix type in example

Because the below explanation says that function type is fn(u32) -> u32

+1 -1

0 comment

1 changed file

pr created time in 2 months

push event95th/rustc-dev-guide

Gurwinder Singh

commit sha 22d12ea5d934c85058255c47f960691afc63b99a

fix type in example Because the below explanation says that function type is `fn(u32) -> u32`

view details

push time in 2 months

fork 95th/rustc-dev-guide

A guide to how rustc works and how to contribute to it.

https://rustc-dev-guide.rust-lang.org

fork in 2 months

issue openedrust-analyzer/rust-analyzer

Setting ENV variables for rust-analyzer with VS Code

I am using VS Code to view rust compiler codebase and I get below errors saying the env variables are not defined.

I tried setting them without success from WSL2 terminal from where I launch the VS code instance. I also tried runnableEnv which perhaps only work for Run/Debug/Test scenarios.

Untitled

Is there a way to set environment variables for rust-analyzer itself?

created time in 2 months

Pull request review commentswc-project/swc

Improve ux for rust users

 use crate::{     pos::Spanned,     syntax_pos::{BytePos, Span}, };-use dashmap::{mapref::one::Ref, DashMap};-use fxhash::FxBuildHasher;+use fxhash::FxHashMap;+use std::{cell::RefCell, rc::Rc, sync::Arc};++/// Stores comment.+///+/// ## Implementation notes+///+/// Methods uses `(&self)` instead of `(&mut self)` for some reasons. Firstly,+/// this is similar to the previous api. Secondly, typescript parser requires+/// backtracking, which requires [Clone]. To avoid cloning large vectors, we+/// must use [Rc<RefCell<Comments>>]. We have two option. We may implement it in+/// the parser or in the implementation. If we decide to go with first option,+/// we should pass [Comments] to parser, and as a result we need another method+/// to take comments back. If we decide to go with second way, we can just pass+/// [&Comments] to the parser. Thirdly, `(&self)` allows multi-threaded+/// use-cases such as swc itself.+///+/// We use [Option] instead of no-op Comments implementation to avoid allocation

AFAIK Empty vec doesn't allocate.

kdy1

comment created time in 2 months

startedRustPython/RustPython

started time in 2 months

fork 95th/rust

Empowering everyone to build reliable and efficient software.

https://www.rust-lang.org

fork in 2 months

fork 95th/rust

Empowering everyone to build reliable and efficient software.

https://www.rust-lang.org

fork in 2 months

startedzesterer/broom

started time in 2 months

fork 95th/sqlx

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.

fork in 2 months

more