Skip to content

Instantly share code, notes, and snippets.

Compiling duchess v0.1.0 (/home/nmatsakis/versioned/duchess)
error: failed to run custom build command for `duchess v0.1.0 (/home/nmatsakis/versioned/duchess)`
Caused by:
process didn't exit successfully: `/home/nmatsakis/versioned/duchess/target/debug/build/duchess-0e35cc4d34a0852b/build-script-build` (exit status: 1)
--- stdout
processing file `/home/nmatsakis/versioned/duchess/src/class_info/javap_parser.lalrpop`
/home/nmatsakis/versioned/duchess/src/class_info/javap_parser.lalrpop:140:5: 140:13 error: ambiguity detected between the terminal `r#"[a-z]*"#` and the terminal `r#"[a-zA-Z][a-zA-Z0-9]*"#`
--- stderr
Compiling duchess v0.1.0 (/home/nmatsakis/versioned/duchess)
warning: associated function `parse` is never used
--> src/class_info.rs:16:12
|
16 | pub fn parse(input: &str) -> anyhow::Result<Self> {
| ^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: function `parse_class_info` is never used
This file has been truncated, but you can view the full file.
Compiling duchess v0.1.0 (/home/nmatsakis/versioned/duchess)
error: failed to run custom build command for `duchess v0.1.0 (/home/nmatsakis/versioned/duchess)`
Caused by:
process didn't exit successfully: `/home/nmatsakis/versioned/duchess/target/debug/build/duchess-0e35cc4d34a0852b/build-script-build` (exit status: 1)
--- stdout
processing file `/home/nmatsakis/versioned/duchess/src/class_info/javap_parser.lalrpop`
/home/nmatsakis/versioned/duchess/src/class_info/javap_parser.lalrpop:31:5: 31:16: Conflict detected
when in this state:
athena! cd src/llvm-project
athena. git remote --verbose
origin https://github.com/rust-lang/llvm-project.git (fetch)
origin https://github.com/rust-lang/llvm-project.git (push)
athena. git log --format="%H %D" | head -100
593484fc1596707406b0b0b45b97feb08d2a1bfc HEAD
9a46e2810d24e36f3e744ef525ef0701479866f5
31ca69862af0cba5b545abd46351a992854effbb
0004a38c50233bc39952b8588502203b960acc8c
a040561b5d23e69a3e93c4d4e19134e011ee4402
┐rustc_ast_lowering::item::lower_crate
├─┐rustc_ast_lowering::with_hir_id_owner owner=NodeId(0)
│ ├─┐rustc_ast_lowering::index::index_hir item=Crate(Mod { spans: ModSpans { inner_span: src/test/ui/impl-trait/v2/generics-assoc-type.rs:3:1: 15:13 (#0), inject_use_span: src/test/ui/impl-trait/v2/generics-assoc-type.rs:5:1: 5:1 (#0) }, item_ids: [ItemId { def_id: DefId(0:1) }, ItemId { def_id: DefId(0:2) }, ItemId { def_id: DefId(0:3) }, ItemId { def_id: DefId(0:5) }, ItemId { def_id: DefId(0:7) }, ItemId { def_id: DefId(0:11) }] })
│ │ ├─0ms DEBUG rustc_ast_lowering::index visit_nested_item: ItemId { def_id: DefId(0:1) }
│ │ ├─0ms DEBUG rustc_ast_lowering::index visit_nested_item: ItemId { def_id: DefId(0:2) }
│ │ ├─0ms DEBUG rustc_ast_lowering::index visit_nested_item: ItemId { def_id: DefId(0:3) }
│ │ ├─0ms DEBUG rustc_ast_lowering::index visit_nested_item: ItemId { def_id: DefId(0:5) }
│ │ ├─0ms DEBUG rustc_ast_lowering::index visit_nested_item: ItemId { def_id: DefId(0:7) }
│ │ ├─0ms DEBUG rustc_ast_lowerin
Crate {
owners: [
Owner(
OwnerInfo {
nodes: OwnerNodes {
hash_including_bodies: Fingerprint(
11509814989097591284,
8029534358430629645,
),
hash_without_bodies: Fingerprint(
Crate {
owners: [
Owner(
OwnerInfo {
nodes: OwnerNodes {
hash_including_bodies: Fingerprint(
9379181034865639105,
6117811064914249914,
),
hash_without_bodies: Fingerprint(
@nikomatsakis
nikomatsakis / upcast_pattern.rs
Created November 19, 2021 11:04
Upcast pattern
trait Upcast<DynTy: ?Sized> {
fn up(&self) -> &DynTy;
}
trait UpcastA {
fn up_a<'me>(&self) -> &(dyn A + 'me)
where
Self: 'me;
}
diff --git a/src/SUMMARY.md b/src/SUMMARY.md
index 14bc771..07ad652 100644
--- a/src/SUMMARY.md
+++ b/src/SUMMARY.md
@@ -15,6 +15,10 @@
- [Stabilized](./initiatives/process/stages/stabilized.md)
- [Inactive](./initiatives/process/stages/inactive.md)
- [FAQ](./initiatives/faq.md)
+- [Lang team "how to" guide](./how_to.md)
+ - [Nominate an issue](./how_to/nominate.md)
// failure-status: 101
// rustc-env:RUST_BACKTRACE=0
// normalize-stderr-test "note: .*\n\n" -> ""
// normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
// compile-flags: --crate-type=rlib
// Regression test for https://github.com/rust-lang/rust/issues/78450
#![feature(min_type_alias_impl_trait)]