about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authoroli-obk <github6541940@oli-obk.de>2014-11-12 16:21:03 +0100
committerOliver Schneider <oliver.schneider@kit.edu>2014-11-17 15:08:25 +0100
commit70bf4f72efc2f005e7cfc94b74bd946439272ca6 (patch)
treea67ad498f0ab0a834fee054f958e180b694beed0 /src/rustllvm/RustWrapper.cpp
parent0047dbe59c41b951d34ce6324f3a8c0e15d523e9 (diff)
downloadrust-70bf4f72efc2f005e7cfc94b74bd946439272ca6.tar.gz
rust-70bf4f72efc2f005e7cfc94b74bd946439272ca6.zip
libgraphviz: Id::new returns Result<Id, ()> instead of panicking on error
creating a new Id object requires the format to match a subset of `ID` format defined by the DOT language. When the format did not match, the function called assert. This was not mentioned in the docs or the spec. I made the failure explicit by returning an Result<Id, ()>.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions