-
Doc-only changes:
./x.py doc --stage=0 src/libstd
-
libstd-only changes:
./x.py check --stage=0 src/libstd
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
#!/bin/bash | |
set -e | |
if [ -z "$RUSTC" ]; then | |
RUSTC=rustc | |
fi | |
crate="$1" |
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
creating socketpair | |
fds: 3 4 | |
encoded cmsgs into 40 byte buf: | |
18 00 00 00 01 00 00 00 02 00 00 00 a7 2c 00 00 e8 03 00 00 e8 03 00 00 10 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 | |
re-decode msgs without going through socket: | |
raw control buffer size: 40 bytes | |
cmsg 1: | |
cmsg lvl: 1 (SOL_SOCKET = 1) | |
cmsg type: 2 (SCM_RIGHTS = 1, SCM_CREDENTIALS = 2) | |
cmsg len: 24 (for 1 int = 16, for ucred = 24) |
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 env_logger; | |
extern crate log; | |
use std::env; | |
fn main() { | |
// By default, log all `info!` messages and higher, in all modules and crates. | |
// Can be overridden by specifying the `RUST_LOG` environment variable. | |
if env::var_os("RUST_LOG").is_none() { | |
env_logger::Builder::from_default_env() |
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
#!/bin/bash | |
set -e | |
if [[ $# -ne 1 ]]; then | |
echo "usage: ramfs-chroot <ramfs_image>" | |
exit 1 | |
fi | |
RAMFS=$1 |
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
<html> | |
<head> | |
<title>Cargo Build Timings — rustc-main 0.0.0</title> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
html { | |
font-family: sans-serif; | |
} |
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
//! NRVO on acyclic CFGs. | |
use crate::transform::{MirPass, MirSource}; | |
use rustc_middle::mir::visit::Visitor; | |
use rustc_middle::mir::{ | |
read_only, Body, BodyAndCache, Constant, Local, LocalKind, Location, Operand, Place, Rvalue, | |
StatementKind, Statement, | |
}; | |
use rustc_middle::ty::TyCtxt; | |
use rustc_index::vec::IndexVec; |
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
// MIR for `basics` after Nrvo | |
fn basics(_1: (f32,)) -> f32 { | |
let mut _0: f32; // return place in scope 0 at /home/jonas/dev/rust/src/test/ui/consts/const_let_eq_float.rs:11:34: 11:37 | |
let _2: f32; // in scope 0 at /home/jonas/dev/rust/src/test/ui/consts/const_let_eq_float.rs:11:18: 11:19 | |
let mut _4: f32; // in scope 0 at /home/jonas/dev/rust/src/test/ui/consts/const_let_eq_float.rs:14:9: 14:10 | |
let mut _6: f32; // in scope 0 at /home/jonas/dev/rust/src/test/ui/consts/const_let_eq_float.rs:17:18: 17:19 | |
let mut _8: f32; // in scope 0 at /home/jonas/dev/rust/src/test/ui/consts/const_let_eq_float.rs:20:22: 20:23 | |
let mut _9: f32; // in scope 0 at /home/jonas/dev/rust/src/test/ui/consts/const_let_eq_float.rs:21:9: 21:10 | |
scope 1 { |
First, run sudo modprobe usbmon
.
Now Wireshark should show usbmon0-N
capture devices.
They correspond to USB buses (see lsusb
), so select the one on which the target device is attached.
Now filter out the right device on the bus by writing a filter.
usb.src
and usb.dst
are the packet's source and destination address, one of which will always be "host".
OlderNewer