mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
chore: fix some comments
Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
parent
779d9eee2e
commit
680de15ec3
4 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ macro_rules! define_symbols {
|
|||
(@WITH_NAME: $($alias:ident = $value:literal,)* @PLAIN: $($name:ident,)*) => {
|
||||
// Ideally we would be emitting `const` here, but then we no longer have stable addresses
|
||||
// which is what we are relying on for equality! In the future if consts can refer to
|
||||
// statics we should swap these for `const`s and have the the string literal being pointed
|
||||
// statics we should swap these for `const`s and have the string literal being pointed
|
||||
// to be statics to refer to such that their address is stable.
|
||||
$(
|
||||
pub static $name: Symbol = Symbol { repr: TaggedArcPtr::non_arc(&stringify!($name)) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue