Skip to content
rust logo

Rust

Rust is a systems programming language created by Mozilla. It is similar to C++, but is designed for improved memory safety without sacrificing performance.

Here are 12,388 public repositories matching this topic...

pnkfelix
pnkfelix commented Oct 17, 2019

Pre-1.0 Rust used to support writing code like:

match x {
    y @ z => { ... }
}

match a {
    b @ Some(c) => { ... }
}

PR #16053 disabled the ability to write such code. More precisely, it disabled the ability to introduce any kind of binding in subpattern P in the context of any binding-pattern ident @ P

The reason we did this was because it was too hard to h

nixpulvis
nixpulvis commented Apr 11, 2019

Currently, a triple click will select the single complete line underneath the cursor. However, now that we have reflow, a single logical "line" can span many grid lines. A logical line is the content the text printed to the terminal thinks is a line, a grid line is a row in Alacritty's grid. Triple clicking today will miss parts of logical lines.

Other terminals (tested Termite and Urxvt) selec

bat
clarfon
clarfon commented Sep 21, 2019

I've been trying to export most of my dotfile-type configs to system packages I can install. A lot of programs offer the option for both a system and a user config (e.g. git reads from /etc/gitconfig, then ~/.gitconfig) although currently, bat reads just one file. It'd be nice if we could do something similar for bat as well, loading both /etc/bat/config and ~/.config/bat/config.

jdm
jdm commented Oct 18, 2019

The member methods of CanvasState were largely extracted from CanvasRenderingContext2D, where they used to be members of the generated CanvasRenderContext2DMethods trait. Now that they are handwritten, it's confusing to have them keep the same naming pattern as generated code. We should rename them so GetImageData becomes get_image_data (for example).

We should also extract CanvasState into its

jean-airoldie
jean-airoldie commented Jun 6, 2019

Here is some general documentation improvement suggestion regarding flatbuffers. This is what I remember struggling with (from the top of my head). Also some point might be a little bit opinionated.

Some of the points were taken from #5387.

  • Regarding the builder:
    • The fact that its kinda like an arena allocator used for serialization.
    • The concept of offsets, what do they repre
jackpot51
jackpot51 commented Nov 4, 2016

For every scheme a fully running kernel has, the following functions need to be documented, if implemented. In addition, the Scheme and SchemeMut traits should be documented with usage and the default operation.

Documentation should include usage, what access restrictions there are, what paths and dup arguments are valid, and what errors may be returned.

Path Operations

  • open
kbd
kbd commented May 13, 2019

As discussed in this bat issue, the behavior of fd's -X flag is different from the behavior of fd | xargs. My initial impression upon reading the docs was that -X's behavior would be equivalent to piping to xargs, and I was surprised when that wasn't the case.

Shell session for reference:

$ for i in a b c d; do echo $i > $i.t
jkaye2012
jkaye2012 commented Oct 12, 2019

Thanks for the fantastic library!

I have been reading through documentation and examples to learn about Rocket. One thing that confused me is the use of macro_use, extern crate, and serde_derive, none of which I believe are necessary any more (or at least they do not appear to be in my testing). For example, the tera_template example currently begins with:

#[macro_use] extern 
mattgodbolt
mattgodbolt commented Jun 23, 2019

Consider https://gcc.godbolt.org/z/O4aVOC - this fails with a linker error: undefined reference to std::filesystem::__cxx11::directory_iterator::operator*() const'`

It was pointed out on discord that if the executable comes first, the link succeeds, i.e. this is a link order issue.

Specifically:

/opt/compiler-explorer/gcc-8.3.0/bin/g++ -g -o /tmp/output.s -masm=intel -fdiagnostics
You can’t perform that action at this time.