- briansmith:
- Confusion about &String coercing to &str:
- Thought this was because of AsRef, but now thinks is probably because of Deref.
- &'static str is immutable, but String is mutable.
- Similar to C++; not in a good way.
- Confusion about &String coercing to &str:
- DanielKeep:
- capacity == 0 && len != 0 to indicate contents are static.
- rkruppe:
- Very common speed bump on the learning curve, but it goes much, much
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Calculates numbers that add up to a given sum with a given number of digits." /> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
This file contains 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
class MapItem { | |
constructor() { | |
this.numbered = new Map(); | |
this.matchers = []; | |
} | |
setBase(value) { | |
if (value === undefined) | |
throw new Error("setBase called without a base"); | |
if (this.base) |
This file contains 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
//! A vector type that allows storing small values directly on the stack. | |
#![feature(untagged_unions)] | |
use std::iter::FromIterator; | |
use std::ptr::drop_in_place; | |
use std::ops::Deref; | |
use std::fmt; | |
pub struct SmallVec8<T> { |
This file contains 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
1 Chunk #12: 8388608 bytes total, used 1959664, wasted 6428944 | |
1 Chunk #5: 65536 bytes total, used 2432, wasted 63104 | |
1 Chunk #5: 65536 bytes total, used 7184, wasted 58352 | |
1 Chunk #5: 65536 bytes total, used 10072, wasted 55464 | |
1 Chunk #5: 65536 bytes total, used 14240, wasted 51296 | |
1 Chunk #5: 65536 bytes total, used 19688, wasted 45848 | |
1 Chunk #5: 65536 bytes total, used 24352, wasted 41184 | |
4 Chunk #4: 32768 bytes total, used 256, wasted 32512 | |
1 Chunk #4: 32768 bytes total, used 400, wasted 32368 | |
1 Chunk #4: 32768 bytes total, used 1176, wasted 31592 |
This file contains 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
Checks a package to catch common mistakes and improve your Rust code. | |
Usage: | |
cargo clippy [options] [--] [<opts>...] | |
Common options: | |
-h, --help Print this message | |
--features Features to compile for the package | |
-V, --version Print version info and exit |
The Rust infra team will manage, as of now:
- Making sure the pull request queue is continuing to test and merge.
- including: Travis, Appveyor, Homu
- Highfive
- perf.rust-lang.org (currently down, work to bring it up is in progress)
- Rust's Central Station
- This runs homu, highfive, etc.
- Crates.io
This file contains 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
extern crate serde; | |
#[macro_use] | |
extern crate serde_derive; | |
extern crate futures; | |
extern crate percent_encoding; | |
extern crate reqwest; | |
extern crate serde_json; | |
extern crate tokio_core; | |
extern crate url; |
4661 root regressions
- yup-hyper-mock-3.12.0: a log vs. b log (106 dependent crates)
- libimaginteraction-0.8.0: a log vs. b log (34 dependent crates)
- libimaginteraction-0.6.4: a log vs. b log (29 dependent crates)
- al-sys-0.3.3: a log vs. [b
4661 root regressions
- yup-hyper-mock-3.12.0: a log vs. b log (106 dependent crates)
- libimaginteraction-0.8.0: a log vs. b log (34 dependent crates)
- libimaginteraction-0.6.4: a log vs. b log (29 dependent crates)
- al-sys-0.3.3: a log vs. [b
OlderNewer