File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
src/tools/rust-analyzer/crates Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ impl SourceToDefCtx<'_, '_> {
281
281
let ( body, source_map) = self . db . body_with_source_map ( container) ;
282
282
let src = src. cloned ( ) . map ( ast:: Pat :: from) ;
283
283
let pat_id = source_map. node_pat ( src. as_ref ( ) ) ?;
284
- // the pattern could resolve to a constant, verify that that is not the case
284
+ // the pattern could resolve to a constant, verify that this is not the case
285
285
if let crate :: Pat :: Bind { id, .. } = body[ pat_id] {
286
286
Some ( ( container, id) )
287
287
} else {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ macro_rules! define_symbols {
15
15
( @WITH_NAME : $( $alias: ident = $value: literal, ) * @PLAIN : $( $name: ident, ) * ) => {
16
16
// Ideally we would be emitting `const` here, but then we no longer have stable addresses
17
17
// which is what we are relying on for equality! In the future if consts can refer to
18
- // statics we should swap these for `const`s and have the the string literal being pointed
18
+ // statics we should swap these for `const`s and have the string literal being pointed
19
19
// to be statics to refer to such that their address is stable.
20
20
$(
21
21
pub static $name: Symbol = Symbol { repr: TaggedArcPtr :: non_arc( & stringify!( $name) ) } ;
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ impl flags::Scip {
142
142
let mut symbol_roles = Default :: default ( ) ;
143
143
144
144
if let Some ( def) = token. definition {
145
- // if the the range of the def and the range of the token are the same, this must be the definition.
145
+ // if the range of the def and the range of the token are the same, this must be the definition.
146
146
// they also must be in the same file. See https://github.com/rust-lang/rust-analyzer/pull/17988
147
147
if def. file_id == file_id && def. range == text_range {
148
148
symbol_roles |= scip_types:: SymbolRole :: Definition as i32 ;
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ pub struct SyntaxContextData {
81
81
/// Invariant: Only [`SyntaxContextId::ROOT`] has a [`None`] outer expansion.
82
82
// FIXME: The None case needs to encode the context crate id. We can encode that as the MSB of
83
83
// MacroCallId is reserved anyways so we can do bit tagging here just fine.
84
- // The bigger issue is that that will cause interning to now create completely separate chains
84
+ // The bigger issue is that this will cause interning to now create completely separate chains
85
85
// per crate. Though that is likely not a problem as `MacroCallId`s are already crate calling dependent.
86
86
pub outer_expn : Option < MacroCallId > ,
87
87
pub outer_transparency : Transparency ,
You can’t perform that action at this time.
0 commit comments