mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-31 23:57:30 +00:00
Let's try testing for "is not quadratic" condition
This commit is contained in:
parent
00cdbceb9d
commit
e012efca27
3 changed files with 100 additions and 1 deletions
|
@ -8,7 +8,10 @@ use crate::project_root;
|
|||
|
||||
pub fn big_struct() -> String {
|
||||
let n = 1_000;
|
||||
big_struct_n(n)
|
||||
}
|
||||
|
||||
pub fn big_struct_n(n: u32) -> String {
|
||||
let mut buf = "pub struct RegisterBlock {".to_string();
|
||||
for i in 0..n {
|
||||
format_to!(buf, " /// Doc comment for {}.\n", i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue