Last one of the year! С наступающим)
Fixes:
* users/wpcarro: remove use-package from emacs packages (it has been built-in
for a while now)
* users/sterni: the same thing
* users/aspen: remove `coz`, forwardport `gdmap` from stable
* users/flokli: dropped corneish_zen firmware from CI
This firmware depends on a non-reproducible FOD which, when updated, causes
build failures. We have worked around this repeatedly, but it needs to be
fixed properly.
* tvix: regenerate Go protobufs
* tvix: address new clippy lints
* tvix/{castore,store,build}-go: update grpc/protobuf libraries
* tvix/eval: formatting fixes
* 3p/overlays/tvl: work around GCC 14 -Werrors
Change-Id: Ice5948ca7780192fb7d2abc6a48971fb875f03c9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12933
Reviewed-by: tazjin <tazjin@tvl.su>
Reviewed-by: sterni <sternenseemann@systemli.org>
Reviewed-by: aspen <root@gws.fyi>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
35 lines
914 B
Rust
35 lines
914 B
Rust
use std::fmt;
|
|
|
|
use syn::Path;
|
|
|
|
#[derive(Copy, Clone)]
|
|
pub struct Symbol(&'static str);
|
|
|
|
pub const NIX: Symbol = Symbol("nix");
|
|
pub const VERSION: Symbol = Symbol("version");
|
|
pub const DEFAULT: Symbol = Symbol("default");
|
|
pub const FROM: Symbol = Symbol("from");
|
|
pub const TRY_FROM: Symbol = Symbol("try_from");
|
|
pub const FROM_STR: Symbol = Symbol("from_str");
|
|
pub const INTO: Symbol = Symbol("into");
|
|
pub const TRY_INTO: Symbol = Symbol("try_into");
|
|
pub const DISPLAY: Symbol = Symbol("display");
|
|
pub const CRATE: Symbol = Symbol("crate");
|
|
|
|
impl PartialEq<Symbol> for Path {
|
|
fn eq(&self, word: &Symbol) -> bool {
|
|
self.is_ident(word.0)
|
|
}
|
|
}
|
|
|
|
impl PartialEq<Symbol> for &Path {
|
|
fn eq(&self, word: &Symbol) -> bool {
|
|
self.is_ident(word.0)
|
|
}
|
|
}
|
|
|
|
impl fmt::Display for Symbol {
|
|
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
|
formatter.write_str(self.0)
|
|
}
|
|
}
|