Make s
pre-interned
This commit is contained in:
parent
9fef8d91b4
commit
34f38bf760
2 changed files with 2 additions and 6 deletions
|
@ -124,12 +124,7 @@ pub fn expand_deriving_rustc_encodable(
|
||||||
explicit_self: borrowed_explicit_self(),
|
explicit_self: borrowed_explicit_self(),
|
||||||
args: vec![(
|
args: vec![(
|
||||||
Ptr(Box::new(Literal(Path::new_local(typaram))), Borrowed(None, Mutability::Mut)),
|
Ptr(Box::new(Literal(Path::new_local(typaram))), Borrowed(None, Mutability::Mut)),
|
||||||
// FIXME: we could use `sym::s` here, but making `s` a static
|
sym::s,
|
||||||
// symbol changes the symbol index ordering in a way that makes
|
|
||||||
// ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.rs
|
|
||||||
// fail. The linting code should be fixed so that its output
|
|
||||||
// does not depend on the symbol index ordering.
|
|
||||||
Symbol::intern("s"),
|
|
||||||
)],
|
)],
|
||||||
ret_ty: Literal(Path::new_(
|
ret_ty: Literal(Path::new_(
|
||||||
pathvec_std!(result::Result),
|
pathvec_std!(result::Result),
|
||||||
|
|
|
@ -1062,6 +1062,7 @@ symbols! {
|
||||||
rustdoc,
|
rustdoc,
|
||||||
rustfmt,
|
rustfmt,
|
||||||
rvalue_static_promotion,
|
rvalue_static_promotion,
|
||||||
|
s,
|
||||||
sanitize,
|
sanitize,
|
||||||
sanitizer_runtime,
|
sanitizer_runtime,
|
||||||
saturating_add,
|
saturating_add,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue