You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In commit 956bc77 I had to disable one of the rope tests. The purpose of that commit was to fix up a bug in the way operator [] works on strings. In particular it used to let you index up to and including the trailing null; now it considers access to the null byte an index overrun and fails.
I tried to figure out exactly what was going on in the rope code for quite a while, and tried adjusting a number of obvious-looking things, but to no avail. I'm not really good with boundary-case arithmetic (are any of us?) and the rope module is a maze of such arithmetic.
Sharper minds requested to find the bug. Meanwhile I marked the rope test in question (char_at1) as ignored. The others seem to work.
Activity
catamorphism commentedon Apr 19, 2012
Paging @Yoric
Yoric commentedon Apr 22, 2012
I'll take a look.
msullivan commentedon Jul 2, 2013
There is some discussion on IRC that maybe we should just pitch the rope code as it exists now.
Aatch commentedon Jul 3, 2013
@msullivan agreed. The code is pretty outdated and the work required to modernize it would probably be similar to the work needed to just re-write it.
When I was looking through it, it seemed to be doing some very strange things that I don't think are even close to being safe, so there's that too.
Auto merge of rust-lang#2236 - RalfJung:rustup, r=RalfJung
Merge pull request rust-lang#2236 from rust-lang/rustc-pull
Source map returns a result
Merge rust-lang#3489
Merge pull request rust-lang#2236 from folkertdev/main