Skip to content

Commit 3d5fbae

Browse files
committed
auto merge of #20944 : brson/rust/weve-met-with-a-terrible-fate-havent-we, r=brson
Closes #13871
2 parents 3d0d9bb + 740c837 commit 3d5fbae

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

src/libstd/rt/util.rs

-50
Original file line numberDiff line numberDiff line change
@@ -144,56 +144,6 @@ pub fn abort(args: fmt::Arguments) -> ! {
144144
let _ = write!(&mut w, "{}", args);
145145
let msg = str::from_utf8(&w.buf[0..w.pos]).unwrap_or("aborted");
146146
let msg = if msg.is_empty() {"aborted"} else {msg};
147-
148-
// Give some context to the message
149-
let hash = msg.bytes().fold(0, |accum, val| accum + (val as uint) );
150-
let quote = match hash % 10 {
151-
0 => "
152-
It was from the artists and poets that the pertinent answers came, and I
153-
know that panic would have broken loose had they been able to compare notes.
154-
As it was, lacking their original letters, I half suspected the compiler of
155-
having asked leading questions, or of having edited the correspondence in
156-
corroboration of what he had latently resolved to see.",
157-
1 => "
158-
There are not many persons who know what wonders are opened to them in the
159-
stories and visions of their youth; for when as children we listen and dream,
160-
we think but half-formed thoughts, and when as men we try to remember, we are
161-
dulled and prosaic with the poison of life. But some of us awake in the night
162-
with strange phantasms of enchanted hills and gardens, of fountains that sing
163-
in the sun, of golden cliffs overhanging murmuring seas, of plains that stretch
164-
down to sleeping cities of bronze and stone, and of shadowy companies of heroes
165-
that ride caparisoned white horses along the edges of thick forests; and then
166-
we know that we have looked back through the ivory gates into that world of
167-
wonder which was ours before we were wise and unhappy.",
168-
2 => "
169-
Instead of the poems I had hoped for, there came only a shuddering blackness
170-
and ineffable loneliness; and I saw at last a fearful truth which no one had
171-
ever dared to breathe before — the unwhisperable secret of secrets — The fact
172-
that this city of stone and stridor is not a sentient perpetuation of Old New
173-
York as London is of Old London and Paris of Old Paris, but that it is in fact
174-
quite dead, its sprawling body imperfectly embalmed and infested with queer
175-
animate things which have nothing to do with it as it was in life.",
176-
3 => "
177-
The ocean ate the last of the land and poured into the smoking gulf, thereby
178-
giving up all it had ever conquered. From the new-flooded lands it flowed
179-
again, uncovering death and decay; and from its ancient and immemorial bed it
180-
trickled loathsomely, uncovering nighted secrets of the years when Time was
181-
young and the gods unborn. Above the waves rose weedy remembered spires. The
182-
moon laid pale lilies of light on dead London, and Paris stood up from its damp
183-
grave to be sanctified with star-dust. Then rose spires and monoliths that were
184-
weedy but not remembered; terrible spires and monoliths of lands that men never
185-
knew were lands...",
186-
4 => "
187-
There was a night when winds from unknown spaces whirled us irresistibly into
188-
limitless vacuum beyond all thought and entity. Perceptions of the most
189-
maddeningly untransmissible sort thronged upon us; perceptions of infinity
190-
which at the time convulsed us with joy, yet which are now partly lost to my
191-
memory and partly incapable of presentation to others.",
192-
_ => "You've met with a terrible fate, haven't you?"
193-
};
194-
rterrln!("{}", "");
195-
rterrln!("{}", quote);
196-
rterrln!("{}", "");
197147
rterrln!("fatal runtime error: {}", msg);
198148
unsafe { intrinsics::abort(); }
199149
}

0 commit comments

Comments
 (0)