This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def from_bash_env []: string -> record { $in | str replace -amr '(&&)|(\r\n)|\n|;' "\n" | lines -s | str trim | parse --regex `export [\'\"]?(?<name>[^\'\"=]+)[\'\"]?=[\'\"]?(?<value>[^\'\"\n]+)[\"\']?` | transpose -ird } | |
# command | from_bash-env | load-env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![forbid(unsafe_code)] | |
#![deny(future_incompatible)] | |
#![warn( | |
meta_variable_misuse, | |
missing_debug_implementations, | |
noop_method_call, | |
rust_2018_idioms, | |
trivial_casts, | |
unused_lifetimes, | |
unused_qualifications, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thread 'rustc' panicked at 'Found unstable fingerprints for mir_built(ea04a2c9f18d1c84-a3eaecb2025003d0): Steal { value: RwLock(RefCell { value: Some(Body { basic_blocks: BasicBlocks { basic_blocks: [BasicBlockData { statements: [StorageLive(_3), _3 = std::option::Option::<Vec<Redirect>>::None, FakeRead(ForLet(None), _3), AscribeUserType(_3, o, UserTypeProjection { base: UserType(1), projs: [] }), StorageLive(_4)], terminator: Some(Terminator { source_info: SourceInfo { span: src/lib.rs:405:33: 405:44 (#696), scope: scope[1] }, kind: goto -> bb1 }), is_cleanup: false }, BasicBlockData { statements: [], terminator: Some(Terminator { source_info: SourceInfo { span: src/lib.rs:405:33: 405:44 (#696), scope: scope[1] }, kind: falseUnwind -> [real: bb2, unwind: bb117] }), is_cleanup: false }, BasicBlockData { statements: [StorageLive(_6), StorageLive(_7), StorageLive(_8), StorageLive(_9), _9 = &mut _2, _8 = &mut (*_9)], terminator: Some(Terminator { source_info: SourceInfo { span: src/lib.rs:405:33: 405:44 (#696), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
for file in $(git diff --name-only --cached --diff-filter=d | grep '\.rs$'); do | |
rustfmt --edition 2021 $file # this will NEVER age poorly | |
git add "$file" | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![forbid(unsafe_code)] | |
#![deny(future_incompatible)] | |
#![warn( | |
missing_debug_implementations, | |
rust_2018_idioms, | |
trivial_casts, | |
unused_qualifications | |
)] | |
#![doc(test(attr(deny(rust_2018_idioms, warnings))))] | |
#![doc(test(attr(allow(unused_extern_crates, unused_variables))))] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"reason":"compiler-message", | |
"package_id":"tide 0.8.0 (path+file:///Z:/Rust-Projects/tide)", | |
"target":{ | |
"kind":[ | |
"lib" | |
], | |
"crate_types":[ | |
"lib" | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function* f() { | |
try { | |
yield 1 | |
yield 2 | |
yield 3 | |
} finally { | |
yield* f() | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function* f() { | |
try { | |
yield 1 | |
yield 2 | |
yield 3 | |
} finally { | |
yield* f() | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function* f() { | |
try { | |
yield 1 | |
yield 2 | |
yield 3 | |
} finally { | |
yield 4 | |
yield 5 | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function* f() { | |
try { | |
yield Promise.resolve(1) | |
yield Promise.resolve(2) | |
yield Promise.resolve(3) | |
} finally { | |
console.log('inside finally') | |
// yield Promise.resolve(4) | |
console.log('about to reject from finally') | |
yield new Promise((res, rej) => { |
NewerOlder