2019-10-29 03:15:51 -05:00
|
|
|
[package]
|
2022-04-29 09:29:24 -05:00
|
|
|
name = "hir-expand"
|
2020-08-13 09:26:29 -05:00
|
|
|
version = "0.0.0"
|
2020-08-24 06:06:30 -05:00
|
|
|
description = "TBD"
|
2023-02-13 05:55:14 -06:00
|
|
|
|
|
|
|
authors.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
license.workspace = true
|
|
|
|
rust-version.workspace = true
|
2019-10-29 03:15:51 -05:00
|
|
|
|
2019-11-17 09:35:05 -06:00
|
|
|
[lib]
|
|
|
|
doctest = false
|
|
|
|
|
2019-10-29 03:15:51 -05:00
|
|
|
[dependencies]
|
fix: avoid pathological macro expansions
Today, rust-analyzer (and rustc, and bat, and IntelliJ) fail badly on
some kinds of maliciously constructed code, like a deep sequence of
nested parenthesis.
"Who writes 100k nested parenthesis" you'd ask?
Well, in a language with macros, a run-away macro expansion might do
that (see the added tests)! Such expansion can be broad, rather than
deep, so it bypasses recursion check at the macro-expansion layer, but
triggers deep recursion in parser.
In the ideal world, the parser would just handle deeply nested structs
gracefully. We'll get there some day, but at the moment, let's try to be
simple, and just avoid expanding macros with unbalanced parenthesis in
the first place.
closes #9358
2021-08-09 08:06:49 -05:00
|
|
|
cov-mark = "2.0.0-pre.1"
|
2023-11-16 14:27:35 -06:00
|
|
|
tracing.workspace = true
|
|
|
|
either.workspace = true
|
2022-03-22 11:36:41 -05:00
|
|
|
rustc-hash = "1.1.0"
|
2023-07-17 08:49:15 -05:00
|
|
|
la-arena.workspace = true
|
2023-11-16 14:27:35 -06:00
|
|
|
itertools.workspace = true
|
2023-07-17 08:49:15 -05:00
|
|
|
hashbrown.workspace = true
|
2023-02-20 02:14:12 -06:00
|
|
|
smallvec.workspace = true
|
2023-06-05 04:04:23 -05:00
|
|
|
triomphe.workspace = true
|
2019-10-29 06:55:39 -05:00
|
|
|
|
2023-02-13 05:55:14 -06:00
|
|
|
# local deps
|
|
|
|
stdx.workspace = true
|
|
|
|
intern.workspace = true
|
|
|
|
base-db.workspace = true
|
|
|
|
cfg.workspace = true
|
|
|
|
syntax.workspace = true
|
|
|
|
profile.workspace = true
|
|
|
|
tt.workspace = true
|
|
|
|
mbe.workspace = true
|
|
|
|
limit.workspace = true
|
2022-02-07 13:30:28 -06:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-07-19 06:00:45 -05:00
|
|
|
expect-test = "1.4.0"
|