Skip to content

Instantly share code, notes, and snippets.

View pvdrz's full-sized avatar
🐕
Working from home

Christian Poveda Ruiz pvdrz

🐕
Working from home
View GitHub Profile
------------------------------------------
stderr:
------------------------------------------
thread 'rustc' panicked at 'assertion failed: `(left == right)`
left: `Size { raw: 2 }`,
right: `Size { raw: 8 }`', src/librustc/mir/interpret/value.rs:367:17
stack backtrace:
0: std::sys_common::backtrace::print
1: std::panicking::default_hook::{{closure}}
2: std::panicking::default_hook
INFO 2019-06-28T18:11:07Z: rustc_mir::interpret::step: _3 = const "assertion failed: `(left == right)`\n left: `"
INFO 2019-06-28T18:11:07Z: rustc_mir::interpret::step: _2 = &(*_3)
INFO 2019-06-28T18:11:07Z: rustc_mir::interpret::step: _5 = const "`,\n right: `"
INFO 2019-06-28T18:11:07Z: rustc_mir::interpret::step: _4 = &(*_5)
INFO 2019-06-28T18:11:07Z: rustc_mir::interpret::step: _7 = const "`"
INFO 2019-06-28T18:11:07Z: rustc_mir::interpret::step: _6 = &(*_7)
INFO 2019-06-28T18:11:07Z: rustc_mir::interpret::step: _1 = [move _2, move _4, move _6]
INFO 2019-06-28T18:11:07Z: rustc_mir::interpret::step: _0 = move _1
INFO 2019-06-28T18:11:07Z: rustc_mir::interpret::step: return
INFO 2019-06-28T18:11:07Z: rustc_mir::interpret::eval_context: LEAVING(0) main
INFO 2019-08-26T15:42:49Z: rustc_interface::passes: sire: Both sides are unevaluated
INFO 2019-08-26T15:42:49Z: rustc_interface::passes: sire: DefIds are equal
INFO 2019-08-26T15:42:49Z: rustc_interface::passes: sire: Both sides are unevaluated
INFO 2019-08-26T15:42:49Z: rustc_interface::passes: sire: DefIds are equal
INFO 2019-08-26T15:42:49Z: rustc_interface::passes: sire: Both sides are unevaluated
INFO 2019-08-26T15:42:49Z: rustc_interface::passes: sire: Evaluation was successful: (defun DefId(0:14 ~ sat_solving[317d]::foo[0]::{{constant}}[0])[(p0 (uint 64))] (Maybe (uint 64)) (switch (const bool 0) ((const bool 0) -> (just (+ p0 p0))) (else -> nothing)))
INFO 2019-08-26T15:42:49Z: rustc_interface::passes: sire: Evaluation was successful: (defun DefId(0:15 ~ sat_solving[317d]::foo[0]::{{constant}}[1])[(p0 (uint 64))] (Maybe (uint 64)) (switch (const bool 0) ((const bool 0) -> (just (* (const (uint 64) 2) p0))) (else -> nothing)))
INFO 2019-08-26T15:42:49Z: rustc_interface::passes: sire: Both sides
This file has been truncated, but you can view the full file.
Finished release [optimized] target(s) in 0.03s
Finished release [optimized] target(s) in 0.03s
Running `target/release/cargo-miri miri setup`
A libstd for Miri is now available in `/home/christian/.cache/miri/HOST`.
Finished release [optimized] target(s) in 0.03s
Running `target/release/miri --sysroot /home/christian/.cache/miri/HOST -Zmiri-disable-isolation tests/run-pass/current_dir.rs`
[2019-10-22T15:58:04Z DEBUG miri] rustc arguments: ["target/release/miri", "-Zalways-encode-mir", "-Zmir-emit-retag", "-Zmir-opt-level=0", "--cfg=miri", "--sysroot", "/home/christian/.cache/miri/HOST", "tests/run-pass/current_dir.rs"]
[2019-10-22T15:58:04Z DEBUG miri] miri arguments: []
[INFO rustc_mir::interpret::eval_context] ENTERING(0) main
[INFO rustc_mir::interpret::eval_context] ENTERING(0) main
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: "read_option: expected 0 for None or 1 for Some"', src/librustc_metadata/rmeta/decoder.rs:225:9
stack backtrace:
0: 0x7fc9d0c10313 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h66f6e8480585dc51
1: 0x7fc9d0c45fec - core::fmt::write::heedf53e364631398
2: 0x7fc9d0c0b885 - std::io::Write::write_fmt::h7812f34d3fb40dd0
3: 0x7fc9d0be77b5 - std::panicking::default_hook::{{closure}}::hc53bde5034054f22
4: 0x7fc9d0be74c0 - std::panicking::default_hook::h3384b1cc95191773
5: 0x7fc9d1300ae9 - rustc_driver::report_ice::h51ee98aae05b572a
6: 0x7fc9d0be7fad - std::panicking::rust_panic_with_hook::h9d9bfc48fc8a3bea
7: 0x7fc9d0be7ac0 - rust_begin_unwind
# Traer la clase `date` a mi programa
from datetime import date
class Tarea:
def __init__(self, descripcion, categoria, vencimiento):
self.descripcion = descripcion
self.categoria = categoria
self.vencimiento = vencimiento
# La fecha de creacion siempre es hoy mismo
self.creacion = date.today()
from datetime import date
class Tarea:
# Inicializar los atributos del objeto
def __init__(self, descripcion, vencimiento):
self.descripcion = descripcion
self.terminada = False
self.vencimiento = vencimiento
# Marcar la tarea como terminada
@pvdrz
pvdrz / main.rs
Created March 18, 2021 20:32
traverse function calls
// This is required to be able to use the rustc crates.
#![feature(rustc_private)]
// This is only required for the `rustc_*` crates. Regular dependencies can be used without it.
extern crate rustc_driver;
extern crate rustc_hir;
extern crate rustc_interface;
extern crate rustc_middle;
use rustc_driver::{catch_with_exit_code, Callbacks, Compilation, RunCompiler};

log

This data set is composed of HTTP request logs that are small and contain many strings.

Raw Data

For operations, time per iteration; for size, bytes. Lower is better.

Serialize / deserialize speed and size

[ERROR rust_analyzer::lsp_utils] failed to run build scripts:
error: cannot find a built-in macro with name `derive_const`
--> library/core/src/macros/mod.rs:1464:5
|
1464 | / pub macro derive_const($item:item) {
1465 | | /* compiler built-in */
1466 | | }
| |_____^