@@ -49,8 +49,8 @@ syntax withPosition("#help " colGt &"option" (colGt ppSpace Parser.rawIdent)?) :
4949
5050private def elabHelpOption (id : Option Ident) : CommandElabM Unit := do
5151 let id := id.map (·.raw.getId.toString false )
52- let mut decls : Lean.RBMap _ _ compare := {}
53- for (name, decl) in show Lean.RBMap .. from ← getOptionDecls do
52+ let mut decls : Std.TreeMap _ _ compare := {}
53+ for (name, decl) in show NameMap OptionDecl from ← getOptionDecls do
5454 let name := name.toString false
5555 if let some id := id then
5656 if !id.isPrefixOf name then
@@ -96,7 +96,7 @@ syntax withPosition("#help " colGt (&"attr" <|> &"attribute")
9696
9797private def elabHelpAttr (id : Option Ident) : CommandElabM Unit := do
9898 let id := id.map (·.raw.getId.toString false )
99- let mut decls : Lean.RBMap _ _ compare := {}
99+ let mut decls : Std.TreeMap _ _ compare := {}
100100 /-
101101 #adaptation_note
102102 On nightly-2024-06-21, added the `.toList` here:
@@ -179,7 +179,7 @@ syntax withPosition("#help " colGt &"cats" (colGt ppSpace Parser.rawIdent)?) : c
179179
180180private def elabHelpCats (id : Option Ident) : CommandElabM Unit := do
181181 let id := id.map (·.raw.getId.toString false )
182- let mut decls : Lean.RBMap _ _ compare := {}
182+ let mut decls : Std.TreeMap _ _ compare := {}
183183 for (name, cat) in (Parser.parserExtension.getState (← getEnv)).categories do
184184 let name := name.toString false
185185 if let some id := id then
@@ -221,8 +221,8 @@ syntax withPosition("#help " colGt &"cat" "+"? colGt ident
221221
222222private def elabHelpCat (more : Option Syntax) (catStx : Ident) (id : Option String) :
223223 CommandElabM Unit := do
224- let mut decls : Lean.RBMap _ _ compare := {}
225- let mut rest : Lean.RBMap _ _ compare := {}
224+ let mut decls : Std.TreeMap _ _ compare := {}
225+ let mut rest : Std.TreeMap _ _ compare := {}
226226 let catName := catStx.getId.eraseMacroScopes
227227 let some cat := (Parser.parserExtension.getState (← getEnv)).categories.find? catName
228228 | throwErrorAt catStx "{catStx} is not a syntax category"
@@ -236,7 +236,7 @@ private def elabHelpCat (more : Option Syntax) (catStx : Ident) (id : Option Str
236236 if !id.isPrefixOf tk then
237237 continue
238238 used := true
239- decls := decls.insert tk ((decls.findD tk #[]).push k)
239+ decls := decls.insert tk ((decls.getD tk #[]).push k)
240240 if !used && id.isNone then
241241 rest := rest.insert (k.toString false ) k
242242 let mut msg := MessageData.nil
0 commit comments