about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-10-17 18:18:55 +0200
committerGitHub <noreply@github.com>2021-10-17 18:18:55 +0200
commit59dc2187adebcbe6fca9073b5410c51c64915f95 (patch)
treedaffe2d01cd3dee5df22ffa1330f94bb7ff8ec25 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent6f53ddfa74ac3c10ceb63ad4a7a9c95e55853c87 (diff)
parentf14e8dd4e719bd29c6f559ffffa9a17317f4af1e (diff)
downloadrust-59dc2187adebcbe6fca9073b5410c51c64915f95.tar.gz
rust-59dc2187adebcbe6fca9073b5410c51c64915f95.zip
Rollup merge of #89738 - eddyb:extern-crate-recursion, r=nagisa
ty::pretty: prevent infinite recursion for `extern crate` paths.

Fixes #55779, fixes #87932.

This fix is based on `@estebank's` idea in https://github.com/rust-lang/rust/issues/55779#issuecomment-614758510 - but instead of trying to get `try_print_visible_def_path_recur`'s cycle detection to work in this case, this PR "just" disables the "visible path" feature when printing the path to an `extern crate`, so that the old recursion chain of `try_print_visible_def_path -> print_def_path -> try_print_visible_def_path`, is now impossible.

Both tests have been confirmed to crash `rustc` because of a stack overflow, without the fix.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions