id
stringlengths
20
30
source
stringclasses
1 value
chunk_index
int64
0
520k
token_count
int32
154
512
content
stringlengths
185
57.5k
rust_dataset_chunk_2100
rust_dataset.txt
2,100
512
land - Window not being rescaled when changing DPR of the current monitor on Wayland - Crash in some cases when pointer isn't presented upon startup on Wayland - IME not working on Wayland - Crash on startup on GNOME since its 3.37.90 version on Wayland - Touchpad scrolling scrolled less than it should on macOS/Wayland...
rust_dataset_chunk_2101
rust_dataset.txt
2,101
512
- Mouse bindings for additional buttons need to be specified as a number not a string - Don't hide cursor on modifier press with `mouse.hide_when_typing` enabled - `Shift + Backspace` now sends `^?` instead of `^H` - Default color scheme is now `Tomorrow Night` with the bright colors of `Tomorrow Night Bright` - Set IU...
rust_dataset_chunk_2102
rust_dataset.txt
2,102
512
- Tabstops not being reset with `reset` - Fallback to `LC_CTYPE=UTF-8` on macOS without valid system locale - Resize lag on launch under some X11 wms - Increased input latency due to vsync behavior on X11 - Emoji colors blending with terminal background - Fix escapes prematurely terminated by terminators in unicode gly...
rust_dataset_chunk_2103
rust_dataset.txt
2,103
512
- Stack overflow when printing shader creation error - Underline position for bitmap fonts - Selection rotating outside of scrolling region - Throughput performance problems caused by excessive font metric queries - Unicode throughput performance on Linux/BSD - Resize of bitmap fonts - Crash when using bitmap font with...
rust_dataset_chunk_2104
rust_dataset.txt
2,104
512
WINIT_HIDPI_FACTOR`, to ignore `Xft.dpi` and scale based on screen dimensions - `Minimize` key binding action, bound to `cmd + m` on macOS ### Changed - On Windows, the ConPTY backend will now be used by default if available - The `enable_experimental_conpty_backend` config option has been replaced with `winpty_backe...
rust_dataset_chunk_2105
rust_dataset.txt
2,105
512
`ReceiveChar` key binding action to insert the key's text character - New CLI flag `--hold` for keeping Alacritty opened after its child process exits - Escape sequence to save and restore window title from stack - Alternate scroll escape sequence (`CSI ? 1007 h` / `CSI ? 1007 l`) - Print name of launch command if Ala...
rust_dataset_chunk_2106
rust_dataset.txt
2,106
512
launching an invisible window on Windows - Alacritty turning transparent when opening another window on macOS with chunkwm - Startup mode `Maximized` having no effect on Windows - Inserting Emojis using `Super+.` or compose sequences on Windows - Change mouse cursor depending on mode with Wayland - Hide mouse cursor w...
rust_dataset_chunk_2107
rust_dataset.txt
2,107
512
` - Config group `debug` with the options `debug.log_level`, `debug.print_events` and `debug.ref_test` - Select until next matching bracket when double-clicking a bracket - Added foreground/background escape code request sequences - Escape sequences now support 1, 3, and 4 digit hex colors ### Changed - On Window...
rust_dataset_chunk_2108
rust_dataset.txt
2,108
512
- Minor performance issues with underline and strikeout checks - Rare bug which would extend underline and strikeout beyond the end of line - Cursors not spanning two lines when over double-width characters - Incorrect cursor dimensions if the font offset isn't `0` ## Version 0.3.0 ### Packaging - On Linux, the .de...
rust_dataset_chunk_2109
rust_dataset.txt
2,109
512
escapes (like Alt) - Fixes increase/decrease font-size keybindings on international keyboards - On Wayland, the `--title` flag will set the Window title now - Parsing issues with URLs starting in the first or ending in the last column - URLs stopping at double-width characters - Fix `start_maximized` option on X11 - E...
rust_dataset_chunk_2110
rust_dataset.txt
2,110
512
0.2.6 ### Added - New `alt_send_esc` option for controlling if alt key should send escape sequences ### Changed - All options in the configuration file are now optional ### Fixed - Replaced `Command` with `Super` in the Linux and Windows config documentation - Prevent semantic and line selection from starting wi...
rust_dataset_chunk_2111
rust_dataset.txt
2,111
512
Removal of extra characters (like `,`) at the end of URLs has been improved - Single quotes (`'`) are removed from URLs when there is no matching opening quote - Precompiled binaries now work with macOS versions before 10.13 (10.11 and above) ## Version 0.2.4 ### Added - Option for evenly spreading extra padding ar...
rust_dataset_chunk_2112
rust_dataset.txt
2,112
512
focused_hollow_cursor` to `cursor.unfocused_hollow` - Moved `hide_cursor_when_typing` to `mouse.hide_when_typing` - Mouse bindings now ignore additional modifiers - Extra padding is now spread evenly around the terminal grid - DEB file installs to `usr/bin` instead of `usr/local/bin` ### Fixed - Fixed erroneous resul...
rust_dataset_chunk_2113
rust_dataset.txt
2,113
512
for copying selected text to the system clipboard - New terminfo entry, `alacritty-direct`, that advertises 24-bit color support - Add support for CSI sequences Cursor Next Line (`\e[nE`) and Cursor Previous Line (`\e[nF`) ### Changed - Inverse/Selection color is now modelled after XTerm/VTE instead of URxvt to impr...
rust_dataset_chunk_2114
rust_dataset.txt
2,114
512
bindings now support keyboard modifiers (shift/ctrl/alt/super) - Add support for the bright foreground color - Support for setting foreground, background colors in one escape sequence ### Changed - Multiple key/mouse bindings for a single key will now all be executed instead of picking one and ignoring the rest - ...
rust_dataset_chunk_2115
rust_dataset.txt
2,115
512
Pull Requests All patches have to be sent on GitHub as [pull requests](https://github.com/alacritty/alacritty/pulls). If you are looking for a place to start contributing to Alacritty, take a look at the [help wanted](https://github.com/alacritty/alacritty/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) and...
rust_dataset_chunk_2116
rust_dataset.txt
2,116
512
it's advised to perform these tests on the latest Rust stable release. Alacritty mainly uses the [vtebench](https://github.com/alacritty/vtebench) tool for testing Alacritty's performance. Instructions on how to use it can be found in its [README](https://github.com/alacritty/vtebench/blob/master/README.md). Latency...
rust_dataset_chunk_2117
rust_dataset.txt
2,117
512
branches completely separate without merging releases back into master. The exact steps for an exemplary `0.2.0` release might look like this: 1. Initially, the version on the latest master is `0.2.0-dev` 2. A new `v0.2` branch is created for the release 3. In the branch, the version is bumped to `0.2.0-rc1` ...
rust_dataset_chunk_2118
rust_dataset.txt
2,118
512
the changelog is updated to include all fixes 5. Follow Steps 4-13 of the regular release's example 6. The release's changelog is ported back to master, removing fixes from the `0.2.3` release The `alacritty_terminal` crate is released in synchronization with `alacritty`, keeping the `-dev` and `-rcX` version suffi...
rust_dataset_chunk_2119
rust_dataset.txt
2,119
512
at the configuration file to change the various movements. ### Selection One useful feature of vi mode is the ability to make selections and copy text to the clipboard. By default you can start a selection using <kbd>v</kbd> and copy it using <kbd>y</kbd>. All selection modes that are available with the mouse can be...
rust_dataset_chunk_2120
rust_dataset.txt
2,120
512
mode will then trigger the hint. Hints can be configured in the `hints` and `colors.hints` sections in the Alacritty configuration file. ## Selection expansion After making a selection, you can use the right mouse button to expand it. Double-clicking will expand the selection semantically, while triple-clicking wil...
rust_dataset_chunk_2121
rust_dataset.txt
2,121
512
](#opensuse) 6. [Slackware](#slackware) 7. [Void Linux](#void-linux) 8. [FreeBSD](#freebsd) 9. [OpenBSD](#openbsd) 10. [Solus](#solus) 11. [NixOS/Nixpkgs](#nixosnixpkgs) 12. [Gentoo](#gentoo) 13. [GNU Guix](#gnu-guix) 14. [Alpine Linux](#alpine-lin...
rust_dataset_chunk_2122
rust_dataset.txt
2,122
512
missing, please open an issue. ```sh apt install cmake g++ pkg-config libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3 ``` #### Arch Linux On Arch Linux, you need a few extra libraries to build Alacritty. Here's a `pacman` command that should install all of them. If something is still found to be miss...
rust_dataset_chunk_2123
rust_dataset.txt
2,123
512
libxcb-devel pkg-config python3 ``` #### FreeBSD On FreeBSD, you need a few extra libraries to build Alacritty. Here's a `pkg` command that should install all of them. If something is still found to be missing, please open an issue. ```sh pkg install cmake freetype2 fontconfig pkgconf python3 ``` #### OpenBSD On ...
rust_dataset_chunk_2124
rust_dataset.txt
2,124
512
open an issue. ```sh sudo apk add cmake pkgconf freetype-dev fontconfig-dev python3 libxcb-dev ``` #### Windows On windows you will need to have the `{architecture}-pc-windows-msvc` toolchain installed as well as [Clang 3.9 or greater](http://releases.llvm.org/download.html). #### Other If you build Alacritty on ...
rust_dataset_chunk_2125
rust_dataset.txt
2,125
512
for Alacritty: ```sh sudo cp target/release/alacritty /usr/local/bin # or anywhere else in $PATH sudo cp extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg sudo desktop-file-install extra/linux/Alacritty.desktop sudo update-desktop-database ``` If you are having problems with Alacritty's logo, you can re...
rust_dataset_chunk_2126
rust_dataset.txt
2,126
512
DOTDIR:-~}/.zshrc ``` Then copy the completion file to this directory: ```sh cp extra/completions/_alacritty ${ZDOTDIR:-~}/.zsh_functions/_alacritty ``` #### Bash To install the completions for bash, you can `source` the `extra/completions/alacritty.bash` file in your `~/.bashrc` file. If you do not plan to delete...
rust_dataset_chunk_2127
rust_dataset.txt
2,127
512
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited t...
rust_dataset_chunk_2128
rust_dataset.txt
2,128
512
copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a per...
rust_dataset_chunk_2129
rust_dataset.txt
2,129
512
documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your o...
rust_dataset_chunk_2130
rust_dataset.txt
2,130
512
damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and a...
rust_dataset_chunk_2131
rust_dataset.txt
2,131
512
deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this...
rust_dataset_chunk_2132
rust_dataset.txt
2,132
512
web.libera.chat/gamja/?channels=#alacritty ## Features You can find an overview over the features available in Alacritty [here](./docs/features.md). ## Further information - [Announcing Alacritty, a GPU-Accelerated Terminal Emulator](https://jwilm.io/blog/announcing-alacritty/) January 6, 2017 - [A talk about Alacr...
rust_dataset_chunk_2133
rust_dataset.txt
2,133
512
it really the fastest terminal emulator?_** Benchmarking terminal emulators is complicated. Alacritty uses [vtebench](https://github.com/alacritty/vtebench) to quantify terminal emulator throughput and manages to consistently score better than the competition using it. If you have found an example where this is not t...
rust_dataset_chunk_2134
rust_dataset.txt
2,134
512
::fs; use std::io::ErrorKind; use std::iter; use std::path::Path; use std::process::{self, Command, Stdio}; use std::str; fn main() { if cfg!(feature = "std") { println!("cargo:rerun-if-changed=src/nightly.rs"); let error_generic_member_access; let consider_rustc_bootstrap; if comp...
rust_dataset_chunk_2135
rust_dataset.txt
2,135
512
return; }; if rustc >= 80 { println!("cargo:rustc-check-cfg=cfg(anyhow_build_probe)"); println!("cargo:rustc-check-cfg=cfg(anyhow_nightly_testing)"); println!("cargo:rustc-check-cfg=cfg(anyhow_no_clippy_format_args)"); println!("cargo:rustc-check-cfg=cfg(anyhow_no_core_error)")...
rust_dataset_chunk_2136
rust_dataset.txt
2,136
512
let mut rustc = rustc_wrapper .into_iter() .chain(rustc_workspace_wrapper) .chain(iter::once(rustc)); let mut cmd = Command::new(rustc.next().unwrap()); cmd.args(rustc); if !rustc_bootstrap { cmd.env_remove("RUSTC_BOOTSTRAP"); } cmd.stderr(Stdio::null()) ...
rust_dataset_chunk_2137
rust_dataset.txt
2,137
512
} fn rustc_minor_version() -> Option<u32> { let rustc = cargo_env_var("RUSTC"); let output = Command::new(rustc).arg("--version").output().ok()?; let version = str::from_utf8(&output.stdout).ok()?; let mut pieces = version.split('.'); if pieces.next() != Some("rustc 1") { return None; }...
rust_dataset_chunk_2138
rust_dataset.txt
2,138
512
Chain<'a> { state: ChainState<'a>, } #[derive(Clone)] pub(crate) enum ChainState<'a> { Linked { next: Option<&'a (dyn StdError + 'static)>, }, #[cfg(any(feature = "std", not(anyhow_no_core_error)))] Buffered { rest: vec::IntoIter<&'a (dyn StdError + 'static)>, }, } impl<'a> Ch...
rust_dataset_chunk_2139
rust_dataset.txt
2,139
512
} #[cfg(any(feature = "std", not(anyhow_no_core_error)))] impl Default for Chain<'_> { fn default() -> Self { Chain { state: ChainState::Buffered { rest: Vec::new().into_iter(), }, } } } --- FILE: anyhow/src/context.rs --- use crate::error::ContextError...
rust_dataset_chunk_2140
rust_dataset.txt
2,140
512
.ext_context(context())), } } } /// ``` /// # type T = (); /// # /// use anyhow::{Context, Result}; /// /// fn maybe_get() -> Option<T> { /// # const IGNORE: &str = stringify! { /// ... /// # }; /// # unimplemented!() /// } /// /// fn demo() -> Result<()> { /// let t = maybe_get().conte...
rust_dataset_chunk_2141
rust_dataset.txt
2,141
512
: &mut Request<'a>) { nightly::provide(&self.error, request); } } impl<C> StdError for ContextError<C, Error> where C: Display, { fn source(&self) -> Option<&(dyn StdError + 'static)> { Some(unsafe { crate::ErrorImpl::error(self.error.inner.by_ref()) }) } #[cfg(error_generic_member...
rust_dataset_chunk_2142
rust_dataset.txt
2,142
512
{ bytes: [MaybeUninit<u8>; 40], written: usize, } impl Buf { fn new() -> Self { Buf { bytes: [MaybeUninit::uninit(); 40], written: 0, } } fn as_str(&self) -> &str { unsafe { str::from_utf8_unchecked(slice::from_raw_parts( ...
rust_dataset_chunk_2143
rust_dataset.txt
2,143
512
$(,)?) => { $crate::__fancy_ensure!($($lhs)+, $op, $($rhs)+) }; // low precedence control flow constructs (0 $stack:tt ($($bail:tt)*) $fuel:tt $parse:tt $dup:tt return $($rest:tt)*) => { $crate::__fallback_ensure!($($bail)*) }; (0 $stack:tt ($($bail:tt)*) $fuel:tt $parse:tt $dup:...
rust_dataset_chunk_2144
rust_dataset.txt
2,144
512
*) {($($buf:tt)*) $($parse:tt)*} ($neg:tt $($dup:tt)*) - $($rest:tt)*) => { $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $neg) $($parse)*} ($($rest)*) $($rest)*) }; (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($let:tt $($dup:tt)*) let $($rest:tt)*) => { ...
rust_dataset_chunk_2145
rust_dataset.txt
2,145
512
tt)*) $($parse:tt)*} ($and:tt $raw:tt $const:tt $($dup:tt)*) &raw const $($rest:tt)*) => { $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $and $raw $const) $($parse)*} ($($rest)*) $($rest)*) }; (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $($dup:tt)*) & $(...
rust_dataset_chunk_2146
rust_dataset.txt
2,146
512
$bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($andand:tt $($dup:tt)*) && $($rest:tt)*) => { $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $andand) $($parse)*} ($($rest)*) $($rest)*) }; // control flow constructs (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($par...
rust_dataset_chunk_2147
rust_dataset.txt
2,147
512
($($buf:tt)*) $($parse:tt)*} ($brace:tt $($dup:tt)*) {$($block:tt)*} $($rest:tt)*) => { $crate::__parse_ensure!(cond $stack $bail ($($fuel)*) {($($buf)* $brace) $($parse)*} ($($rest)*) $($rest)*) }; (cond $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($else:tt $if:tt $($dup:tt)*) els...
rust_dataset_chunk_2148
rust_dataset.txt
2,148
512
:tt)*] $($rest:tt)*) => { $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $bracket) $($parse)*} ($($rest)*) $($rest)*) }; (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($brace:tt $($dup:tt)*) {$($block:tt)*} $($rest:tt)*) => { $crate::__parse_ensure!(atom ...
rust_dataset_chunk_2149
rust_dataset.txt
2,149
512
tt)*) $($parse:tt)*} ($unsafe:tt $block:tt $($dup:tt)*) unsafe {$($body:tt)*} $($rest:tt)*) => { $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $unsafe $block) $($parse)*} ($($rest)*) $($rest)*) }; (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($const:tt $block:t...
rust_dataset_chunk_2150
rust_dataset.txt
2,150
512
)* $ident) $($parse)*} ($($rest)*) $($rest)*) }; (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($langle:tt $($dup:tt)*) < $($rest:tt)*) => { $crate::__parse_ensure!(type (qpath (epath (atom $stack))) $bail ($($fuel)*) {($($buf)* $langle) $($parse)*} ($($rest)*) $($rest)*) }; ...
rust_dataset_chunk_2151
rust_dataset.txt
2,151
512
$colons $larrow) $($parse)*} ($($dup)*) $($dup)*) }; (epath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $ident:tt $($dup:tt)*) :: $i:ident $($rest:tt)*) => { $crate::__parse_ensure!(epath $stack $bail ($($fuel)*) {($($buf)* $colons $ident) $($parse)*} ($($rest)*) $($re...
rust_dataset_chunk_2152
rust_dataset.txt
2,152
512
$($rest:tt)*) => { $crate::__parse_ensure!($pop (split $stack) $bail ($($fuel)*) $parse $dup $($rest)*) }; (epath ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) $parse:tt $dup:tt $($rest:tt)*) => { $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) $parse $dup $($rest)*) }; // tra...
rust_dataset_chunk_2153
rust_dataset.txt
2,153
512
$($rest)*) }; (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($dot:tt $ident:tt $colons:tt $langle:tt $($dup:tt)*) . $i:ident :: < $($rest:tt)*) => { $crate::__parse_ensure!(generic (atom $stack) $bail ($($fuel)*) {($($buf)* $dot $ident $colons $langle) $($parse)*} ($($rest)*) ...
rust_dataset_chunk_2154
rust_dataset.txt
2,154
512
)*) . $i:ident $($rest:tt)*) => { $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $dot $field) $($parse)*} ($($rest)*) $($rest)*) }; (atom $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt . - $($rest:tt)*) => { $crate::__fallback_ensure!($($bail)*)...
rust_dataset_chunk_2155
rust_dataset.txt
2,155
512
ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $paren) $($parse)*} ($($rest)*) $($rest)*) }; (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($star:tt $const:tt $($dup:tt)*) *const $($rest:tt)*) => { $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $star $const)...
rust_dataset_chunk_2156
rust_dataset.txt
2,156
512
)*) => { $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $and $lifetime) $($parse)*} ($($rest)*) $($rest)*) }; (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $($dup:tt)*) & $($rest:tt)*) => { $crate::__parse_ensure!(type $stack $bail ($($fuel)*)...
rust_dataset_chunk_2157
rust_dataset.txt
2,157
512
*) => { $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $and) $($parse)*} ($($rest)*) $($rest)*) }; (type $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt unsafe extern - $($rest:tt)*) => { $crate::__fallback_ensure!($($bail)*) }; (type $s...
rust_dataset_chunk_2158
rust_dataset.txt
2,158
512
tt)*) $($parse:tt)*} ($fn:tt $paren:tt $arrow:tt $($dup:tt)*) fn ($($args:tt)*) -> $($rest:tt)*) => { $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $fn $paren $arrow) $($parse)*} ($($rest)*) $($rest)*) }; (type ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:t...
rust_dataset_chunk_2159
rust_dataset.txt
2,159
512
(~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($never:tt $($dup:tt)*) ! $($rest:tt)*) => { $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $never) $($parse)*} ($($rest)*) $($rest)*) }; (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($for:tt $langle:tt $($dup:tt...
rust_dataset_chunk_2160
rust_dataset.txt
2,160
512
bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($langle:tt $($dup:tt)*) < $($rest:tt)*) => { $crate::__parse_ensure!(generic (tpath $stack) $bail ($($fuel)*) {($($buf)* $langle) $($parse)*} ($($rest)*) $($rest)*) }; (tpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($langle...
rust_dataset_chunk_2161
rust_dataset.txt
2,161
512
$($parse:tt)*} ($colons:tt $langle:tt $($dup:tt)*) :: << $($rest:tt)*) => { $crate::__parse_ensure!(type (qpath (tpath (arglist (tpath $stack)))) $bail ($($fuel)*) {($($buf)* $colons $langle) $($parse)*} ($($rest)*) $($rest)*) }; (tpath $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:...
rust_dataset_chunk_2162
rust_dataset.txt
2,162
512
{($($buf:tt)*) $($parse:tt)*} ($paren:tt $($dup:tt)*) ($($args:tt)*) $($rest:tt)*) => { $crate::__parse_ensure!(object $stack $bail ($($fuel)*) {($($buf)* $paren) $($parse)*} ($($rest)*) $($rest)*) }; (tpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $paren:tt $arrow:...
rust_dataset_chunk_2163
rust_dataset.txt
2,163
512
fuel)*) {($($buf)* $bang $args) $($parse)*} ($($rest)*) $($rest)*) }; (tpath ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bang:tt $args:tt $($dup:tt)*) ! {$($mac:tt)*} $($rest:tt)*) => { $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $bang $args) $($...
rust_dataset_chunk_2164
rust_dataset.txt
2,164
512
$crate::__parse_ensure!(type (qpath $stack) $bail ($($fuel)*) {($($buf)* $as) $($parse)*} ($($rest)*) $($rest)*) }; // trait objects (object (arglist $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($plus:tt $colons:tt $ident:tt $($dup:tt)*) + :: $i:ident $($rest:tt)*) => { ...
rust_dataset_chunk_2165
rust_dataset.txt
2,165
512
pop $stack $bail ($($fuel)*) {($($buf)* $rangle) $($parse)*} ($($rest)*) $($rest)*) }; (generic ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($rangle:tt $($dup:tt)*) > $($rest:tt)*) => { $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $rangle) $($parse)...
rust_dataset_chunk_2166
rust_dataset.txt
2,166
512
:tt)*) $lit:literal $($rest:tt)*) => { $crate::__parse_ensure!(arglist $stack $bail ($($fuel)*) {($($buf)* $literal) $($parse)*} ($($rest)*) $($rest)*) }; (generic $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($brace:tt $($dup:tt)*) {$($block:tt)*} $($rest:tt)*) => { $crate:...
rust_dataset_chunk_2167
rust_dataset.txt
2,167
512
($($buf)* $comma) $($parse)*} ($($rest)*) $($rest)*) }; (arglist (split ($pop:ident $stack:tt)) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($rangle:tt $($dup:tt)*) >> $($rest:tt)*) => { $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)*) $rangle $($parse)*} ($($rest)*) $($rest...
rust_dataset_chunk_2168
rust_dataset.txt
2,168
512
) $($parse)*} ($($rest)*) $($rest)*) }; (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($in:tt $($dup:tt)*) in $($rest:tt)*) => { $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $in) $($parse)*} ($($rest)*) $($rest)*) }; (pat $stack:tt $bail:tt (~$($fuel:tt...
rust_dataset_chunk_2169
rust_dataset.txt
2,169
512
$($rest:tt)*) => { $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $neg) $($parse)*} ($($dup)*) $($dup)*) }; (pat $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt - $($rest:tt)*) => { $crate::__fallback_ensure!($($bail)*) }; (pat $stack:tt...
rust_dataset_chunk_2170
rust_dataset.txt
2,170
512
(~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($andand:tt $($dup:tt)*) && $($rest:tt)*) => { $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $andand) $($parse)*} ($($rest)*) $($rest)*) }; (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($paren:tt $($dup:tt)*) ($($...
rust_dataset_chunk_2171
rust_dataset.txt
2,171
512
*) $($parse:tt)*} ($colons:tt $ident:tt $($dup:tt)*) :: $i:ident $($rest:tt)*) => { $crate::__parse_ensure!(epath (pat $stack) $bail ($($fuel)*) {($($buf)* $colons $ident) $($parse)*} ($($rest)*) $($rest)*) }; (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($ident:tt $($dup:tt)*)...
rust_dataset_chunk_2172
rust_dataset.txt
2,172
512
)*} ($le:tt $($dup:tt)*) <= $($rest:tt)*) => { $crate::__parse_ensure!(0 () $bail ($($fuel)*) {() $($parse)* ($($buf)*) $le} ($($rest)*) $($rest)*) }; (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)+) $($parse:tt)*} ($le:tt $($dup:tt)*) <= $($rest:tt)*) => { $crate::__parse_ensure!(0 $sta...
rust_dataset_chunk_2173
rust_dataset.txt
2,173
512
buf)* $ne) $($parse)*} ($($rest)*) $($rest)*) }; (atom () $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($ge:tt $($dup:tt)*) >= $($rest:tt)*) => { $crate::__parse_ensure!(0 () $bail ($($fuel)*) {() $($parse)* ($($buf)*) $ge} ($($rest)*) $($rest)*) }; (atom $stack:tt $bail:tt (~$($fuel...
rust_dataset_chunk_2174
rust_dataset.txt
2,174
512
) $($parse:tt)*} ($gt:tt $($dup:tt)*) > $($rest:tt)*) => { $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $gt) $($parse)*} ($($rest)*) $($rest)*) }; // high precedence binary operators (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($add:tt $($dup:tt)*) + $($...
rust_dataset_chunk_2175
rust_dataset.txt
2,175
512
parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $rem) $($parse)*} ($($rest)*) $($rest)*) }; (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bitxor:tt $($dup:tt)*) ^ $($rest:tt)*) => { $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $bitxor) $($parse)*} ($($res...
rust_dataset_chunk_2176
rust_dataset.txt
2,176
512
rest)*) $($rest)*) }; // low precedence binary operators (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $($dup:tt)*) && $($rest:tt)*) => { $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $and) $($parse)*} ($($rest)*) $($rest)*) }; ...
rust_dataset_chunk_2177
rust_dataset.txt
2,177
512
$($parse)*} ($($rest)*) $($rest)*) }; (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($muleq:tt $($dup:tt)*) *= $($rest:tt)*) => { $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $muleq) $($parse)*} ($($rest)*) $($rest)*) }; (atom ($($stack:tt...
rust_dataset_chunk_2178
rust_dataset.txt
2,178
512
fuel)*) {($($buf)* $bitandeq) $($parse)*} ($($rest)*) $($rest)*) }; (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bitoreq:tt $($dup:tt)*) |= $($rest:tt)*) => { $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $bitoreq) $($parse)*} ($($rest)*) $($rest)...
rust_dataset_chunk_2179
rust_dataset.txt
2,179
512
$crate::__private::stringify!($op), " ", $crate::__private::stringify!($rhs), "`", ), )); } } } }; } #[doc(hidden)] #[macro...
rust_dataset_chunk_2180
rust_dataset.txt
2,180
512
to ensure that a backtrace exists. #[cfg(any(feature = "std", not(anyhow_no_core_error)))] #[cold] #[must_use] pub fn new<E>(error: E) -> Self where E: StdError + Send + Sync + 'static, { let backtrace = backtrace_if_absent!(&error); Error::construct_from_std(error, back...
rust_dataset_chunk_2181
rust_dataset.txt
2,181
512
op with other error libraries. /// /// # Example /// /// Here is a skeleton of a library that provides its own error abstraction. /// The pair of `From` impls provide bidirectional support for `?` /// conversion between `Report` and `anyhow::Error`. /// /// ``` /// use std::error::Er...
rust_dataset_chunk_2182
rust_dataset.txt
2,182
512
std", not(anyhow_no_core_error)))] #[cold] pub(crate) fn construct_from_std<E>(error: E, backtrace: Option<Backtrace>) -> Self where E: StdError + Send + Sync + 'static, { let vtable = &ErrorVTable { object_drop: object_drop::<E>, object_ref: object_ref::<E>, ...
rust_dataset_chunk_2183
rust_dataset.txt
2,183
512
; let error: DisplayError<M> = DisplayError(message); let vtable = &ErrorVTable { object_drop: object_drop::<DisplayError<M>>, object_ref: object_ref::<DisplayError<M>>, #[cfg(any(feature = "std", not(anyhow_no_core_error)))] object_boxed: object_boxed::<D...
rust_dataset_chunk_2184
rust_dataset.txt
2,184
512
(anyhow_no_core_error)))] #[cold] pub(crate) fn construct_from_boxed( error: Box<dyn StdError + Send + Sync>, backtrace: Option<Backtrace>, ) -> Self { use crate::wrapper::BoxedError; let error = BoxedError(error); let vtable = &ErrorVTable { object_drop: ...
rust_dataset_chunk_2185
rust_dataset.txt
2,185
512
the // caller rather than a builtin fat pointer vtable. let inner = Own::new(inner).cast::<ErrorImpl>(); Error { inner } } /// Wrap the error value with additional context. /// /// For attaching context to a `Result` as it is propagated, the /// [`Context`][crate::Context] ...
rust_dataset_chunk_2186
rust_dataset.txt
2,186
512
where C: Display + Send + Sync + 'static, { let error: ContextError<C, Error> = ContextError { context, error: self, }; let vtable = &ErrorVTable { object_drop: object_drop::<ContextError<C, Error>>, object_ref: object_ref::<Contex...
rust_dataset_chunk_2187
rust_dataset.txt
2,187
512
is enabled, and will use the `backtrace` crate as /// the underlying backtrace implementation. The return type of this /// function on old compilers is `&(impl Debug + Display)`. /// /// ```toml /// [dependencies] /// anyhow = { version = "1.0", features = ["backtrace"] } /// ``` #[cfg(...
rust_dataset_chunk_2188
rust_dataset.txt
2,188
512
see here]. /// /// [see here]: crate::Context#effect-on-downcasting pub fn is<E>(&self) -> bool where E: Display + Debug + Send + Sync + 'static, { self.downcast_ref::<E>().is_some() } /// Attempt to downcast the error object to a concrete type. pub fn downcast<E>(mut se...
rust_dataset_chunk_2189
rust_dataset.txt
2,189
512
error was caused by redaction, then return a tombstone instead /// // of the content. /// match root_cause.downcast_ref::<DataStoreError>() { /// Some(DataStoreError::Censored(_)) => Ok(Poll::Ready(REDACTED_CONTENT)), /// None => Err(error), /// } /// # ; /// ``` pub fn downcast...
rust_dataset_chunk_2190
rust_dataset.txt
2,190
512
_member_access), doc = "# _ = stringify! {")] /// #![feature(error_generic_member_access)] /// /// use anyhow::anyhow; /// use std::backtrace::Backtrace; /// use thiserror::Error; /// /// #[derive(Error, Debug)] /// #[error("...")] /// struct MyError; /// /// let anyhow_error...
rust_dataset_chunk_2191
rust_dataset.txt
2,191
512
/// struct MyError; /// /// let anyhow_error = anyhow!(MyError); /// println!("{}", anyhow_error.backtrace()); // has Backtrace /// assert!(anyhow_error.downcast_ref::<MyError>().is_some()); // can downcast /// /// let boxed_dyn_error = anyhow_error.reallocate_into_boxed_dyn_error_without_bac...
rust_dataset_chunk_2192
rust_dataset.txt
2,192
512
) -> Self { let backtrace = backtrace_if_absent!(&error); Error::construct_from_std(error, backtrace) } } #[cfg(any(feature = "std", not(anyhow_no_core_error)))] impl Deref for Error { type Target = dyn StdError + Send + Sync + 'static; fn deref(&self) -> &Self::Target { unsafe { E...
rust_dataset_chunk_2193
rust_dataset.txt
2,193
512
<ErrorImpl>) { // Cast back to ErrorImpl<E> so that the allocator receives the correct // Layout to deallocate the Box's memory. let unerased_own = e.cast::<ErrorImpl<E>>(); drop(unsafe { unerased_own.boxed() }); } // Safety: requires layout of *e to match ErrorImpl<E>. unsafe fn object_drop_front<E>(e...
rust_dataset_chunk_2194
rust_dataset.txt
2,194
512
let unerased_own = e.cast::<ErrorImpl<E>>(); Box::new(unsafe { unerased_own.boxed() }._object) } // Safety: requires layout of *e to match ErrorImpl<E>. unsafe fn object_downcast<E>(e: Ref<ErrorImpl>, target: TypeId) -> Option<Ref<()>> where E: 'static, { if TypeId::of::<E>() == target { // Caller...
rust_dataset_chunk_2195
rust_dataset.txt
2,195
512
how_no_core_error)))] unsafe fn context_drop_rest<C, E>(e: Own<ErrorImpl>, target: TypeId) where C: 'static, E: 'static, { // Called after downcasting by value to either the C or the E and doing a // ptr::read to take ownership of that value. if TypeId::of::<C>() == target { let unerased_own...
rust_dataset_chunk_2196
rust_dataset.txt
2,196
512
erased_own.boxed() }); } else { let unerased_own = e.cast::<ErrorImpl<ContextError<C, ManuallyDrop<Error>>>>(); let unerased = unsafe { unerased_own.boxed() }; // Read the Own<ErrorImpl> from the next error. let inner = unerased._object.error.inner; drop(unerased); le...
rust_dataset_chunk_2197
rust_dataset.txt
2,197
512
) struct ContextError<C, E> { pub context: C, pub error: E, } impl<E> ErrorImpl<E> { fn erase(&self) -> Ref<ErrorImpl> { // Erase the concrete type of E but preserve the vtable in self.vtable // for manipulating the resulting thin pointer. This is analogous to an // unsize coercion....
rust_dataset_chunk_2198
rust_dataset.txt
2,198
512
) unsafe fn chain(this: Ref<Self>) -> Chain { Chain::new(unsafe { Self::error(this) }) } } impl<E> StdError for ErrorImpl<E> where E: StdError, { fn source(&self) -> Option<&(dyn StdError + 'static)> { unsafe { ErrorImpl::error(self.erase()).source() } } #[cfg(error_generic_member_...
rust_dataset_chunk_2199
rust_dataset.txt
2,199
512
} } impl UnwindSafe for Error {} impl RefUnwindSafe for Error {} --- FILE: anyhow/src/fmt.rs --- use crate::chain::Chain; use crate::error::ErrorImpl; use crate::ptr::Ref; use core::fmt::{self, Debug, Write}; impl ErrorImpl { pub(crate) unsafe fn display(this: Ref<Self>, f: &mut fmt::Formatter) -> fmt::Result ...